summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/opentrack-load-user-settings.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/opentrack-load-user-settings.cmake b/cmake/opentrack-load-user-settings.cmake
index bcb37383..ede46d7c 100644
--- a/cmake/opentrack-load-user-settings.cmake
+++ b/cmake/opentrack-load-user-settings.cmake
@@ -8,12 +8,17 @@ if(".${__sdk_username}" STREQUAL ".")
set(__sdk_username "(I-have-no-name)")
endif()
+if(WIN32)
+ set(__sdk_os "windows")
+else()
+ set(__sdk_os "$ENV{OSTYPE}")
+endif()
+
include(CMakeDetermineCCompiler)
include(CMakeDetermineCXXCompiler)
-set(__sdk_paths_filename "${CMAKE_SOURCE_DIR}/sdk-paths-${__sdk_username}@${CMAKE_CXX_COMPILER_ID}.cmake")
+set(__sdk_paths_filename "${CMAKE_SOURCE_DIR}/sdk-paths-${__sdk_username}@${CMAKE_CXX_COMPILER_ID}-${__sdk_os}.cmake")
if(EXISTS "${__sdk_paths_filename}")
include("${__sdk_paths_filename}")
endif()
-