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
2a651aa441
commit
e38f381276
@ -55,7 +55,7 @@ target_sources(
|
||||
)
|
||||
target_include_directories(
|
||||
cxxopts INTERFACE
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
include/
|
||||
)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user