mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 04:33:53 +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
|
||||
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)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user