Skip to content

Commit

Permalink
Accomodate imports without REQUIRED as well
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyanon committed Sep 9, 2024
1 parent d8c519c commit e3c89a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake-init/templates/common/cmake/install-config.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% if pm %}include(CMakeFindDependencyMacro)
find_dependency({% if c %}json-c{% else %}fmt{% end %})

{% end %}include("${CMAKE_CURRENT_LIST_DIR}/{= name =}Targets.cmake")
if({% if c %}json-c{% else %}fmt{% end %}_FOUND)
{% end %}include("${CMAKE_CURRENT_LIST_DIR}/{= name =}Targets.cmake"){% if pm %}
endif(){% end %}

0 comments on commit e3c89a1

Please sign in to comment.