mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
only add CONFIGURE_DEPENDS if main project (#633)
- reglobbing of files is confusing, if CLI11 is used as library, as typically the files won't change
This commit is contained in:
parent
4d34311cb1
commit
2f0435f390
@ -156,7 +156,7 @@ target_include_directories(CLI11 INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOU
|
|||||||
|
|
||||||
# To see in IDE, headers must be listed for target
|
# To see in IDE, headers must be listed for target
|
||||||
set(header-patterns "${PROJECT_SOURCE_DIR}/include/CLI/*")
|
set(header-patterns "${PROJECT_SOURCE_DIR}/include/CLI/*")
|
||||||
if(NOT CMAKE_VERSION VERSION_LESS 3.12)
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND NOT CMAKE_VERSION VERSION_LESS 3.12)
|
||||||
list(INSERT header-patterns 0 CONFIGURE_DEPENDS)
|
list(INSERT header-patterns 0 CONFIGURE_DEPENDS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user