diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-12 05:53:14 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-12 05:53:14 +0200 |
commit | a7d28fff0008a4cb503f3d7c35c8ab3faab66ea9 (patch) | |
tree | d0f9f64a794c36fa2a5705b11fdab12088ce229b /CMakeLists.txt | |
parent | aae112ae02b415483ac03c59629dc9290bd833cf (diff) |
cmake: reduce userconfig noisiness
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ab4405cf..0f83051b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,11 +79,13 @@ macro(fm_load_userconfig) endif() sets(FILEPATH FLOORMAT_USERCONFIG "${CMAKE_CURRENT_SOURCE_DIR}/userconfig-$ENV{USER}@${CMAKE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_ID}.cmake") endif() - if(EXISTS "${FLOORMAT_USERCONFIG}") - message(STATUS "Loading user config '${FLOORMAT_USERCONFIG}'") - include("${FLOORMAT_USERCONFIG}" NO_POLICY_SCOPE) - else() - message(STATUS "Can't find user config '${FLOORMAT_USERCONFIG}'") + if(NOT FLOORMAT_USERCONFIG STREQUAL "") + if(EXISTS "${FLOORMAT_USERCONFIG}") + #message(STATUS "Loading user config '${FLOORMAT_USERCONFIG}'") + include("${FLOORMAT_USERCONFIG}" NO_POLICY_SCOPE) + else() + message(STATUS "Can't find user config '${FLOORMAT_USERCONFIG}'") + endif() endif() endmacro() |