Skip to content

Commit

Permalink
Merge pull request #9 from lanl/mauneyc/fix/cmake_config
Browse files Browse the repository at this point in the history
cmake config guard for submodule mode
  • Loading branch information
Yurlungur authored Jun 21, 2022
2 parents 43ef009 + 477bcc7 commit f18bcef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports-of-callConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

@PACKAGE_INIT@

include("${CMAKE_CURRENT_LIST_DIR}/@POCLIB@Targets.cmake")
if(NOT TARGET @POCLIB@ AND NOT @POCLIB@_BINARY_DIR)
include("${CMAKE_CURRENT_LIST_DIR}/@POCLIB@Targets.cmake")
endif()

check_required_components(@POCLIB@)

0 comments on commit f18bcef

Please sign in to comment.