From b5a4b4791d3cec6a594b11870f77ed94fa36cd1f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 17 Jan 2017 21:31:12 +1100 Subject: [PATCH] cmake: use CURRENT versions of directories --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea4bdfbf..db2f2c65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,11 +34,11 @@ endif() ############################################################################### -RAGEL_TARGET(json-flat json/flat.cpp.rl ${CMAKE_BINARY_DIR}/json/flat.cpp) -RAGEL_TARGET(uri uri.cpp.rl ${CMAKE_BINARY_DIR}/uri.cpp) -RAGEL_TARGET(version version.cpp.rl ${CMAKE_BINARY_DIR}/version.cpp) +RAGEL_TARGET(json-flat json/flat.cpp.rl ${CMAKE_CURRENT_BINARY_DIR}/json/flat.cpp) +RAGEL_TARGET(uri uri.cpp.rl ${CMAKE_CURRENT_BINARY_DIR}/uri.cpp) +RAGEL_TARGET(version version.cpp.rl ${CMAKE_CURRENT_BINARY_DIR}/version.cpp) -include_directories(${CMAKE_SOURCE_DIR}) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) ###############################################################################