Skip to content

Commit e3c89a1

Browse files
committed
Accomodate imports without REQUIRED as well
1 parent d8c519c commit e3c89a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{% if pm %}include(CMakeFindDependencyMacro)
22
find_dependency({% if c %}json-c{% else %}fmt{% end %})
33

4-
{% end %}include("${CMAKE_CURRENT_LIST_DIR}/{= name =}Targets.cmake")
4+
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

Comments
 (0)