diff options
| -rw-r--r-- | CMakeLists.txt | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d225d29d..c886146d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,15 +4,6 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") project(ouroboros C) -include(GNUInstallDirs) - -include(utils/DebugTargets) - -include(version) -include(package) - -include(compiler) - if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) if(APPLE) set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE STRING @@ -23,6 +14,15 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) endif() endif() +include(GNUInstallDirs) + +include(utils/DebugTargets) + +include(version) +include(package) + +include(compiler) + if(APPLE) set(CMAKE_MACOSX_RPATH 1) # Homebrew installs to /usr/local/include on Intel, /opt/homebrew/include on ARM @@ -46,10 +46,11 @@ if(isSystemDir STREQUAL "-1") set(CMAKE_INSTALL_RPATH "${RPATH_PREFIX}/${CMAKE_INSTALL_LIBDIR}") endif() +# Configuration options (must be loaded before dependencies) +include(config/global) + include(dependencies) -# Configuration options (must be loaded before component modules) -include(config/global) include(config/lib) include(config/ssm) include(config/irmd) |
