Skip to content

Commit

Permalink
Add a mechanism to not include target HighFive several times (#336)
Browse files Browse the repository at this point in the history
* Add a mechanism to not include target HighFive several times
  • Loading branch information
alkino committed Apr 28, 2020
1 parent 93a0335 commit 08b3932
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMake/HighFiveConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ function(copy_interface_properties target source)
endforeach()
endfunction()

if(TARGET HighFive)
return()
endif()

# Get HighFive targets
include("${CMAKE_CURRENT_LIST_DIR}/HighFiveTargets.cmake")

Expand Down

0 comments on commit 08b3932

Please sign in to comment.