really get the env vars

develop
Myk Taylor 2020-08-08 23:55:24 -07:00
parent b0cb40c5ea
commit 51794d91ed
1 changed files with 5 additions and 5 deletions

@ -21,12 +21,12 @@ ide_folder(clsocket "Depends")
# assemble environment args to pass on to dependency projects # assemble environment args to pass on to dependency projects
get_cmake_property(vars CACHE_VARIABLES) get_cmake_property(vars CACHE_VARIABLES)
foreach(var ${vars}) foreach(var ${vars})
get_property(currentHelpString CACHE "${var}" PROPERTY HELPSTRING) if(var MATCHES "^CMAKE_" AND NOT var MATCHES "^CMAKE_CACHE" AND NOT var MATCHES "^CMAKE_HOME" AND NOT var MATCHES "^CMAKE_PROJECT")
if("${currentHelpString}" MATCHES "No help, variable specified on the command line." OR "${currentHelpString}" STREQUAL "") message("${var} = [${${var}}]")
message("${var} = [${${var}}] -- ${currentHelpString}") # uncomment to see the variables being processed list(APPEND CL_ARGS "-D${var}=${${var}}")
list(APPEND CL_ARGS "-D${var}=${${var}}") endif()
endif()
endforeach() endforeach()
message("final CL_ARGS = ${CL_ARGS}")
set(LIBEXPAT_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/libexpat) set(LIBEXPAT_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/libexpat)
ExternalProject_Add(libexpat_project ExternalProject_Add(libexpat_project