diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 19:31:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 19:31:32 +0100 |
commit | e9c4feaec08e3992e8631006d41454d02ac0e12b (patch) | |
tree | 271e3f583f94cd01fc728136b0e5609faf2e9c88 /cmake | |
parent | d86d30940acc5f79d3331e54fba515d858cfa66a (diff) |
cmake: make per-user defaults more useful
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-load-user-settings.cmake | 9 |
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() - |