From 967d8d3b482cc642a1c13d7bb7a1608393b5266f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Ecorchard?= Date: Fri, 3 Apr 2015 09:21:40 +0200 Subject: [PATCH] Configure in build space --- sm/CMakeLists.txt | 1 + sm/lib/json-c/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sm/CMakeLists.txt b/sm/CMakeLists.txt index 19b99510..2f7cdd59 100644 --- a/sm/CMakeLists.txt +++ b/sm/CMakeLists.txt @@ -3,6 +3,7 @@ PROJECT (CSM C CXX) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/lib) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) cmake_minimum_required(VERSION 2.4) set(csm_link_flags "-L.") diff --git a/sm/lib/json-c/CMakeLists.txt b/sm/lib/json-c/CMakeLists.txt index a75dad61..a4dbc989 100644 --- a/sm/lib/json-c/CMakeLists.txt +++ b/sm/lib/json-c/CMakeLists.txt @@ -24,6 +24,7 @@ TARGET_LINK_LIBRARIES(test2 json-c) FILE(GLOB json_headers "*.h") +SET(json_headers ${json_headers} ${CMAKE_BINARY_DIR}/config.h) INSTALL(FILES ${json_headers} DESTINATION include/json-c) @@ -78,4 +79,4 @@ MY_CHECK_FUNCTION_EXISTS(vprintf HAVE_VPRINTF) MY_CHECK_FUNCTION_EXISTS(vsnprintf HAVE_VSNPRINTF) MY_CHECK_FUNCTION_EXISTS(vsyslog HAVE_VSYSLOG) -CONFIGURE_FILE(config.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/config.h) +CONFIGURE_FILE(config.h.cmake ${CMAKE_BINARY_DIR}/config.h)