blob: b600ce4c0dcf53d76258647ba85abd2a0760e974 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/cmake/LIEFConfig.cmake.in b/cmake/LIEFConfig.cmake.in
index 562fda16..220208c7 100644
--- a/cmake/LIEFConfig.cmake.in
+++ b/cmake/LIEFConfig.cmake.in
@@ -76,7 +76,7 @@ macro(LIEF_load_targets lib_type)
return()
endif ()
- if("${lib_type}" STREQUAL "static")
+ if(1)
# Need to find all dependencies even if they're private when LIEF is
# compiled statically
include(CMakeFindDependencyMacro)
@@ -105,6 +105,8 @@ macro(LIEF_load_targets lib_type)
find_dependency(tl-expected)
endif()
+ find_dependency(fmt)
+ check_required_components(lief)
endif()
# Include the respective targets file
|