kernel: Actually use config.cmake

Looks like file(EXISTS) needs a full path.
This commit is contained in:
apio 2023-07-10 13:04:26 +02:00
parent b920ffee42
commit 0b488c1232
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -105,7 +105,8 @@ if(MOON_DEBUG)
include(debug.cmake)
endif()
if(EXISTS config.cmake)
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/config.cmake)
message(STATUS "Using custom config.cmake file")
include(config.cmake)
endif()