You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
523 B
20 lines
523 B
7 years ago
|
# Find a home in which to build.
|
||
|
if(NOT DEFINED HOME)
|
||
|
if(DEFINED ENV{CTEST_REAL_HOME})
|
||
|
set(HOME "$ENV{CTEST_REAL_HOME}")
|
||
|
else()
|
||
|
set(HOME "$ENV{HOME}")
|
||
|
endif()
|
||
|
|
||
|
if(NOT HOME AND WIN32)
|
||
|
# Try for USERPROFILE as HOME equivalent:
|
||
|
string(REPLACE "\\" "/" HOME "$ENV{USERPROFILE}")
|
||
|
|
||
|
# But just use root of SystemDrive if USERPROFILE contains any spaces:
|
||
|
# (Default on XP and earlier...)
|
||
|
if(HOME MATCHES " ")
|
||
|
string(REPLACE "\\" "/" HOME "$ENV{SystemDrive}")
|
||
|
endif()
|
||
|
endif()
|
||
|
endif()
|