From 0c505f957603a2162084d8454831d2f2ef50ac69 Mon Sep 17 00:00:00 2001 From: Krister Joas Date: Mon, 29 Aug 2022 18:18:38 +0900 Subject: [PATCH] Run the 'mkvdate' script relative to CMAKE_CURRENT_SOURCE_DIR This fixes the limitation that the build directory has to be in the source tree and can instead be located anywhere. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7662b9c..d1e410b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -377,7 +377,7 @@ SET(MAIKO_HDRS ) ADD_CUSTOM_TARGET(gen-vdate - COMMAND ../bin/mkvdate > vdate.c + COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bin/mkvdate > vdate.c BYPRODUCTS vdate.c )