mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 03:55:29 +00:00
Changed INTERFACE location to CMAKE_CURRENT_SOURCE_DIR for package manager compatibility. (#298)
CMAKE_SOURCE_DIR points to the top-level CMakeLists.txt, not to the subdir CMakeLists.txt, so when cpp-peglib is included in a project, the INTERFACE/include directory points to the wrong location.
This commit is contained in:
parent
f01a5e637e
commit
50ea4b05e9
@ -18,7 +18,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
endif()
|
||||
|
||||
add_library(peglib INTERFACE)
|
||||
target_include_directories(peglib INTERFACE ${CMAKE_SOURCE_DIR})
|
||||
target_include_directories(peglib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
option(BUILD_TESTS "Build cpp-peglib tests" ON)
|
||||
option(PEGLIB_BUILD_LINT "Build cpp-peglib lint utility" OFF)
|
||||
|
Loading…
Reference in New Issue
Block a user