mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
UNIFY_ENVVARS_AND_CACHE - check if var is defined to fix some warnings
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
# Create a cache entry if absent for environment variables
|
# Create a cache entry if absent for environment variables
|
||||||
macro(UNIFY_ENVVARS_AND_CACHE VAR)
|
macro(UNIFY_ENVVARS_AND_CACHE VAR)
|
||||||
if((NOT DEFINED ${VAR}) AND(NOT "$ENV{${VAR}}" STREQUAL ""))
|
if(NOT DEFINED ${VAR} AND DEFINED ENV{${VAR}} AND NOT ENV{${VAR}} STREQUAL "")
|
||||||
set(${VAR} "$ENV{${VAR}}" CACHE STRING "${VAR}" FORCE)
|
set(${VAR} "$ENV{${VAR}}" CACHE STRING "${VAR}" FORCE)
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|||||||
Reference in New Issue
Block a user