diff --git a/Lib/CMake/kll.cmake b/Lib/CMake/kll.cmake index 5d007d2..0de02bf 100644 --- a/Lib/CMake/kll.cmake +++ b/Lib/CMake/kll.cmake @@ -71,7 +71,7 @@ if ( NOT "${DefaultMap}" STREQUAL "" ) # Check if kll file is in build directory, otherwise default to layout directory if ( EXISTS "${PROJECT_BINARY_DIR}/${MAP}.kll" ) set ( DefaultMap_Args ${DefaultMap_Args} ${MAP}.kll ) - set ( KLL_DEPENDS ${KLL_DEPENDS} ${MAP}.kll ) + set ( KLL_DEPENDS ${KLL_DEPENDS} ${PROJECT_BINARY_DIR}/${MAP}.kll ) else () set ( DefaultMap_Args ${DefaultMap_Args} ${PROJECT_SOURCE_DIR}/kll/layouts/${MAP}.kll ) set ( KLL_DEPENDS ${KLL_DEPENDS} ${PROJECT_SOURCE_DIR}/kll/layouts/${MAP}.kll ) @@ -91,7 +91,7 @@ if ( NOT "${PartialMaps}" STREQUAL "" ) # Check if kll file is in build directory, otherwise default to layout directory if ( EXISTS "${PROJECT_BINARY_DIR}/${MAP_PART}.kll" ) set ( PartialMap_Args ${PartialMap_Args} ${MAP_PART}.kll ) - set ( KLL_DEPENDS ${KLL_DEPENDS} ${MAP_PART}.kll ) + set ( KLL_DEPENDS ${KLL_DEPENDS} ${PROJECT_BINARY_DIR}/${MAP_PART}.kll ) else () set ( PartialMap_Args ${PartialMap_Args} ${PROJECT_SOURCE_DIR}/kll/layouts/${MAP_PART}.kll ) set ( KLL_DEPENDS ${KLL_DEPENDS} ${PROJECT_SOURCE_DIR}/kll/layouts/${MAP_PART}.kll )