diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-28 00:27:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-28 00:27:11 +0200 |
commit | d317b5caaf433ae12907663db3a7e60c5082a0d1 (patch) | |
tree | 072ae0fc9d90cec40e35da6f24faf9275a68ebaf /cmake | |
parent | 75ff941b20b28f520b9ad78d5df7d7ba55db4623 (diff) |
cmake: verbose load user settings
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-load-user-settings.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/opentrack-load-user-settings.cmake b/cmake/opentrack-load-user-settings.cmake index ab88d2a8..f1598ae1 100644 --- a/cmake/opentrack-load-user-settings.cmake +++ b/cmake/opentrack-load-user-settings.cmake @@ -28,8 +28,13 @@ else() set(__sdk_os_maybe_target "") endif() -set(__sdk_paths_filename "${CMAKE_SOURCE_DIR}/sdk-paths-${__sdk_username}@${CMAKE_CXX_COMPILER_ID}-${__sdk_os_maybe_target}${__sdk_os}.cmake") +set(__sdk_paths_basename "sdk-paths-${__sdk_username}@${CMAKE_CXX_COMPILER_ID}-${__sdk_os_maybe_target}${__sdk_os}.cmake") + +set(__sdk_paths_filename "${CMAKE_SOURCE_DIR}/${__sdk_paths_basename}") if(EXISTS "${__sdk_paths_filename}") + message(STATUS "Loading user settings '${__sdk_paths_basename}'") include("${__sdk_paths_filename}") +else() + message(STATUS "User settings file '${__sdk_paths_basename}' doesn't exist") endif() |