We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
REQUIRED
1 parent d8c519c commit e3c89a1Copy full SHA for e3c89a1
cmake-init/templates/common/cmake/install-config.cmake
@@ -1,4 +1,6 @@
1
{% if pm %}include(CMakeFindDependencyMacro)
2
find_dependency({% if c %}json-c{% else %}fmt{% end %})
3
4
-{% end %}include("${CMAKE_CURRENT_LIST_DIR}/{= name =}Targets.cmake")
+if({% if c %}json-c{% else %}fmt{% end %}_FOUND)
5
+ {% end %}include("${CMAKE_CURRENT_LIST_DIR}/{= name =}Targets.cmake"){% if pm %}
6
+endif(){% end %}
0 commit comments