Skip to content

Commit

Permalink
only add CONFIGURE_DEPENDS if main project (#633)
Browse files Browse the repository at this point in the history
- reglobbing of files is confusing, if CLI11 is used as library, as typically the files won't change
  • Loading branch information
BenjaminBeichler authored Aug 11, 2021
1 parent 4d34311 commit 2f0435f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2f0435f

Please sign in to comment.