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.
FindFixFormat.cmake
1 parent e55abd6 commit 490f7c0Copy full SHA for 490f7c0
cmake/FindFixFormat.cmake
@@ -1,7 +1,13 @@
1
-include(CPM)
2
-cpmaddpackage(gh:threeal/FixFormat.cmake@${FixFormat_FIND_VERSION})
+find_package(CDeps 0.1.0 REQUIRED)
3
4
-include(FindPackageHandleStandardArgs)
5
-find_package_handle_standard_args(FixFormat REQUIRED_VARS FixFormat.cmake_ADDED)
+cdeps_download_package(
+ FixFormat github.com/threeal/FixFormat.cmake
+ v${FixFormat_FIND_VERSION})
6
7
-list(PREPEND CMAKE_MODULE_PATH ${FixFormat_SOURCE_DIR}/cmake)
+cdeps_build_package(FixFormat)
8
+cdeps_install_package(FixFormat)
9
+
10
+# TODO: Hardcode the version because FixFormat.cmake has an inconsistent version.
11
+include(CMakeFindDependencyMacro)
12
+find_dependency(FixFormat 1.1.0 CONFIG
13
+ PATHS ${FixFormat_INSTALL_DIR}/lib/cmake NO_DEFAULT_PATH)
0 commit comments