aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-03-12 11:18:15 +0100
committerThomas White <taw@physics.org>2018-03-12 11:18:15 +0100
commitaedb6a386f99bc6cac7d1c88e04f602e74cac5e5 (patch)
treea9cec093951734b05973993d7de4cf01044e22e4
parent22a361c6c15f54c02161c8dc9a81d2f0ed2c9d8c (diff)
Put config.h in build directory
-rw-r--r--CMake/config.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMake/config.cmake b/CMake/config.cmake
index 239ba13a..53cd9b4c 100644
--- a/CMake/config.cmake
+++ b/CMake/config.cmake
@@ -20,4 +20,5 @@ endif(OpenCL_FOUND)
check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)
+configure_file(config.h.cmake.in config.h)
+include_directories(${CMAKE_CURRENT_BINARY_DIR})