Do not use CMAKE_SOURCE_DIR on include dirs
CMAKE_SOURCE_DIR can be different depending on where add_subdirectory is called.
This commit is contained in:
parent
f4b2e15649
commit
01417cf390
@ -55,7 +55,7 @@ target_sources(
|
|||||||
)
|
)
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
cxxopts INTERFACE
|
cxxopts INTERFACE
|
||||||
${CMAKE_SOURCE_DIR}/include
|
include/
|
||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user