From 01417cf3900babec93eaf17abe29e7b201cca369 Mon Sep 17 00:00:00 2001 From: Mario Badr Date: Tue, 29 Nov 2016 12:04:02 -0500 Subject: [PATCH] Do not use CMAKE_SOURCE_DIR on include dirs CMAKE_SOURCE_DIR can be different depending on where add_subdirectory is called. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 259378b..62fc14e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ target_sources( ) target_include_directories( cxxopts INTERFACE - ${CMAKE_SOURCE_DIR}/include + include/ ) add_subdirectory(src)