From 0b488c1232308c843e11da48bed63e6d82145781 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 10 Jul 2023 13:04:26 +0200 Subject: [PATCH] kernel: Actually use config.cmake Looks like file(EXISTS) needs a full path. --- kernel/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index ee7b5320..cc3d5c82 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -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()