Cmake: Custom cmake options now read (#989)

fix: config.cmake not work.

"EXISTS" cannot use relative paths.
This commit is contained in:
Barbz
2018-08-06 15:56:30 +02:00
committed by GitHub

View File

@@ -42,7 +42,7 @@ include(src/cmake/ac_macros.cmake)
include(conf/config.cmake.dist)
# load custom configurations for cmake if exists
if(EXISTS "conf/config.cmake")
if(EXISTS "${CMAKE_SOURCE_DIR}/conf/config.cmake")
include(conf/config.cmake)
endif()