From b71547a32b9beefbe24465a5ba092d2f9b3b04e5 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 14 Jan 2014 21:45:56 +0100 Subject: Fix the build system to correctly include config.h --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 433b965..222c609 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,8 @@ include(FindEXPAT) find_package(EXPAT REQUIRED) find_package(Libidn) +# To be able to include the config.h file generated by cmake +include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories("src/") include_directories(${EXPAT_INCLUDE_DIRS}) include_directories(${ICONV_INCLUDE_DIRS}) @@ -123,4 +125,4 @@ target_link_libraries(test config logger) -configure_file(config.h.cmake src/config.h) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) \ No newline at end of file -- cgit v1.2.3