summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-load-user-settings.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-load-user-settings.cmake')
-rw-r--r--cmake/opentrack-load-user-settings.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmake/opentrack-load-user-settings.cmake b/cmake/opentrack-load-user-settings.cmake
index 1baf3702..fdb63936 100644
--- a/cmake/opentrack-load-user-settings.cmake
+++ b/cmake/opentrack-load-user-settings.cmake
@@ -26,12 +26,11 @@ else()
set(__sdk_host_os "")
endif()
-set(__sdk_paths_basename "sdk-paths-${__sdk_username}@${CMAKE_CXX_COMPILER_ID}-${__sdk_host_os}${__sdk_target_os}.cmake")
-set(__sdk_paths_filename "${CMAKE_SOURCE_DIR}/${__sdk_paths_basename}")
+set(__sdk_paths_filename "${CMAKE_CURRENT_SOURCE_DIR}/sdk-paths-${__sdk_username}@${CMAKE_CXX_COMPILER_ID}-${__sdk_host_os}${__sdk_target_os}.cmake")
if(EXISTS "${__sdk_paths_filename}")
- message(STATUS "Loading user settings '${__sdk_paths_basename}'")
+ message(STATUS "Loading user settings '${__sdk_paths_filename}'")
include("${__sdk_paths_filename}")
else()
- message(STATUS "User settings file '${__sdk_paths_basename}' doesn't exist")
+ message(STATUS "User settings file '${__sdk_paths_filename}' doesn't exist")
endif()