mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +05:00
dont pass CMAKE_OSX_ARCHITECTURES (handled by environment variable)
This commit is contained in:
parent
86fd2983c7
commit
3c60c27e41
@ -265,7 +265,7 @@ set_vars( NETGEN_CMAKE_ARGS
|
|||||||
get_cmake_property(CACHE_VARS CACHE_VARIABLES)
|
get_cmake_property(CACHE_VARS CACHE_VARIABLES)
|
||||||
foreach(CACHE_VAR ${CACHE_VARS})
|
foreach(CACHE_VAR ${CACHE_VARS})
|
||||||
get_property(CACHE_VAR_HELPSTRING CACHE ${CACHE_VAR} PROPERTY HELPSTRING)
|
get_property(CACHE_VAR_HELPSTRING CACHE ${CACHE_VAR} PROPERTY HELPSTRING)
|
||||||
if(CACHE_VAR_HELPSTRING STREQUAL "No help, variable specified on the command line.")
|
if(CACHE_VAR_HELPSTRING STREQUAL "No help, variable specified on the command line." AND NOT CACHE_VAR STREQUAL "CMAKE_OSX_ARCHITECTURES")
|
||||||
get_property(CACHE_VAR_TYPE CACHE ${CACHE_VAR} PROPERTY TYPE)
|
get_property(CACHE_VAR_TYPE CACHE ${CACHE_VAR} PROPERTY TYPE)
|
||||||
string(REPLACE ";" "|" varvalue "${${CACHE_VAR}}" )
|
string(REPLACE ";" "|" varvalue "${${CACHE_VAR}}" )
|
||||||
set(NETGEN_CMAKE_ARGS ${NETGEN_CMAKE_ARGS};-D${CACHE_VAR}:${CACHE_VAR_TYPE}=${varvalue} CACHE INTERNAL "")
|
set(NETGEN_CMAKE_ARGS ${NETGEN_CMAKE_ARGS};-D${CACHE_VAR}:${CACHE_VAR_TYPE}=${varvalue} CACHE INTERNAL "")
|
||||||
|
Loading…
Reference in New Issue
Block a user