Skip to content
Snippets Groups Projects
Commit f8fbd585 authored by Patrick Louis S Connor's avatar Patrick Louis S Connor
Browse files

passing over all variables to external prpjects

parent ed48c655
No related branches found
No related tags found
2 merge requests!34Migration,!30extend installation instructions to micromamba
......@@ -23,6 +23,7 @@ micromamba:
script:
- sh <(curl -L micro.mamba.pm/install.sh)
- source ~/.bashrc
- micromamba --version
- micromamba create -f prerequisites.yml -n DAS -y
- micromamba activate DAS
- ./install.sh
......
......@@ -15,6 +15,15 @@ set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
# Import vendored CMake modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# taken from https://stackoverflow.com/a/48555098
get_cmake_property(vars CACHE_VARIABLES)
foreach(var ${vars})
get_property(currentHelpString CACHE "${var}" PROPERTY HELPSTRING)
if("${currentHelpString}" MATCHES "No help, variable specified on the command line." OR "${currentHelpString}" STREQUAL "")
list(APPEND CL_ARGS "-D${var}=${${var}}")
endif()
endforeach()
project(Installer VERSION 1.0 LANGUAGES C) # Need a language for GNUInstallDirs
find_package(Git REQUIRED)
......@@ -96,4 +105,5 @@ ExternalProject_Add(Core
DEPENDS ${TUNFOLD_DEPENDENCY} Darwin
BINARY_DIR "${CMAKE_SOURCE_DIR}/Core.build"
INSTALL_DIR "${CMAKE_INSTALL_PREFIX}"
CMAKE_ARGS ${CL_ARGS}
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment