We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cf2ec0 commit 7e6d7a8Copy full SHA for 7e6d7a8
1 file changed
cmake/pystringConfig.cmake.in
@@ -1,7 +1,8 @@
1
@PACKAGE_INIT@
2
3
-include("${CMAKE_CURRENT_LIST_DIR}/pystringTargets.cmake")
4
-
5
-check_required_components(pystring pystring_header_only)
6
-EOF
+# Prevent double-definition errors
+if(NOT TARGET pystring::pystring AND NOT TARGET pystring::pystring_header_only)
+ include("${CMAKE_CURRENT_LIST_DIR}/pystringTargets.cmake")
+endif()
7
8
+check_required_components(pystring)
0 commit comments