diff options
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() |