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.
This commit is contained in:
@@ -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/)
|
||||
|
||||
Reference in New Issue
Block a user