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
commit 334a0f3e2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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