From 7f9207391337a42bef894e908a8aaa2e7e6307c6 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Tue, 14 Dec 2010 21:36:26 +0000 Subject: [PATCH] Use source root directory as include directory instead of ${CMAKE_BINARY_DIR}/include. With the latter, the compilation will look inside of the built include files. Therefore, if a user makes a change to an included file, it isn't reflected in the build. This change fixes that. --- fastlib/branches/fastlib-stl/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fastlib/branches/fastlib-stl/CMakeLists.txt b/fastlib/branches/fastlib-stl/CMakeLists.txt index 292e6b00c5..e21041d7cd 100644 --- a/fastlib/branches/fastlib-stl/CMakeLists.txt +++ b/fastlib/branches/fastlib-stl/CMakeLists.txt @@ -65,8 +65,7 @@ include(CMake/TargetDistclean.cmake OPTIONAL) ## Global compiler flags (dep. on platform TODO) add_definitions(-DDISABLE_DISK_MATRIX) -#include_directories( ${FASTLIB_INCLUDE_DIRS} ) -include_directories(${CMAKE_BINARY_DIR}/include/) +include_directories(${CMAKE_SOURCE_DIR}) #TODO link_directories() set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/)