From cdf747ebcee41b6ad42cffca1666d1799bf911db Mon Sep 17 00:00:00 2001 From: hesiod Date: Fri, 17 Oct 2014 19:04:14 +0200 Subject: [PATCH] Include current source directory When including the project from a parent directory (add_subdirectory), backward.hpp is not found by the tests because we include CMAKE_SOURCE_DIR, which is the parent's source directory. Include CMAKE_CURRENT_SOURCE_DIR instead. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d16c06..e550ccb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ endforeach() # TESTS ############################################################################### -include_directories(${CMAKE_SOURCE_DIR}) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) add_library(test_main SHARED test/_test_main.cpp)