forked from ned14/outcome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build system ported over to use quickcpplib
- Loading branch information
Showing
6 changed files
with
55 additions
and
44 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
cmake_minimum_required(VERSION 3.1 FATAL_ERROR) | ||
# If necessary bring in the quickcpplib cmake tooling | ||
list(FIND CMAKE_MODULE_PATH "quickcpplib/cmake" quickcpplib_idx) | ||
if(${quickcpplib_idx} EQUAL -1) | ||
# CMAKE_SOURCE_DIR is the very topmost parent cmake project | ||
# CMAKE_CURRENT_SOURCE_DIR is the current cmake subproject | ||
|
||
# If there is a magic .quickcpplib_use_siblings directory above the topmost project, use sibling edition | ||
if(EXISTS "${CMAKE_SOURCE_DIR}/../.quickcpplib_use_siblings") | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/../quickcpplib/cmake") | ||
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.gitmodules") | ||
# Read in .gitmodules and look for myself | ||
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/.gitmodules" GITMODULESCONTENTS) | ||
if(GITMODULESCONTENTS MATCHES ".*\\n?\\[submodule \"([^\"]+\\/quickcpplib)\"\\]") | ||
set(quickcpplibpath "${CMAKE_MATCH_1}") | ||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${quickcpplibpath}/cmake") | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/${quickcpplibpath}/cmake") | ||
else() | ||
message(WARNING "WARNING: ${quickcpplibpath}/cmake does not exist, attempting git submodule update --init --recursive ...") | ||
include(FindGit) | ||
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" | ||
) | ||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${quickcpplibpath}/cmake") | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/${quickcpplibpath}/cmake") | ||
else() | ||
message(FATAL_ERROR "FATAL: ${quickcpplibpath}/cmake does not exist and git submodule update --init --recursive did not make it available, bailing out") | ||
endif() | ||
endif() | ||
else() | ||
message(FATAL_ERROR "FATAL: A copy of quickcpplib cannot be found, and cannot find a quickcpplib submodule in this git repository") | ||
endif() | ||
else() | ||
message(FATAL_ERROR "FATAL: A copy of quickcpplib cannot be found, and there are no git submodules to search") | ||
endif() | ||
endif() | ||
message(STATUS "CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}") |
Submodule quickcpplib
updated
2 files
+12 −8 | cmake/QuickCppLibBootstrap.cmake | |
+37 −28 | cmake/QuickCppLibUtils.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time | ||
#define BOOST_OUTCOME_PREVIOUS_COMMIT_REF 127812aee9d6cdbb53a2f889ea58c89d4fc4b4e5 | ||
#define BOOST_OUTCOME_PREVIOUS_COMMIT_DATE "2017-05-27 14:24:26 +00:00" | ||
#define BOOST_OUTCOME_PREVIOUS_COMMIT_UNIQUE 127812ae | ||
#define BOOST_OUTCOME_PREVIOUS_COMMIT_REF f3b54fae4dde722ca47b1a8bba6cf5dd3230b119 | ||
#define BOOST_OUTCOME_PREVIOUS_COMMIT_DATE "2017-06-13 23:02:50 +00:00" | ||
#define BOOST_OUTCOME_PREVIOUS_COMMIT_UNIQUE f3b54fae |
This file was deleted.
Oops, something went wrong.