summarylogtreecommitdiffstats
path: root/cmake.patch
blob: a084ea928fec033cd393910b07060f7503742080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 139e9dc..3c12546 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,14 +43,17 @@ add_library(Warnings INTERFACE)
 target_compile_options(Warnings INTERFACE ${WARNINGS})
 
 # External dependencies
-add_subdirectory(external/fmt)
+find_package(fmt)
+find_package(yaml-cpp)
+find_package(CLI11)
+#add_subdirectory(external/fmt)
 add_subdirectory(external/abseil-cpp)
-add_subdirectory(external/CLI11)
+#add_subdirectory(external/CLI11)
 set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "Enable testing")
 set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "Enable parse tools")
 set(YAML_CPP_BUILD_CONTRIB OFF CACHE BOOL "Enable contrib stuff in library")
 set(YAML_CPP_INSTALL OFF CACHE BOOL "Enable generation of install target")
-add_subdirectory(external/yaml-cpp)
+#add_subdirectory(external/yaml-cpp)
 
 add_executable(testcode src/testcode.cpp)
 target_link_libraries(testcode PRIVATE Warnings fmt absl::strings)
@@ -62,4 +65,4 @@ add_executable(tidytest src/testmain.cpp src/patched_file.test.cpp)
 target_link_libraries(tidytest PRIVATE Warnings absl::strings absl::algorithm)
 
 add_executable(autotidy src/main.cpp src/autotidy.cpp src/manpages.cpp)
-target_link_libraries(autotidy PRIVATE Warnings fmt absl::strings CLI11 yaml-cpp)
+target_link_libraries(autotidy PRIVATE Warnings fmt absl::strings yaml-cpp)