Skip to content

Commit e55abd6

Browse files
committed
build: utilize CDeps in FindCheckWarning.cmake
Signed-off-by: Alfi Maulana <[email protected]>
1 parent ec770b6 commit e55abd6

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

cmake/FindCheckWarning.cmake

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
include(CPM)
2-
cpmaddpackage(gh:threeal/CheckWarning.cmake@${CheckWarning_FIND_VERSION})
1+
find_package(CDeps 0.1.0 REQUIRED)
32

4-
include(FindPackageHandleStandardArgs)
5-
find_package_handle_standard_args(CheckWarning REQUIRED_VARS CheckWarning.cmake_ADDED)
3+
cdeps_download_package(
4+
CheckWarning github.com/threeal/CheckWarning.cmake
5+
v${CheckWarning_FIND_VERSION})
6+
7+
cdeps_build_package(CheckWarning)
8+
cdeps_install_package(CheckWarning)
9+
10+
include(CMakeFindDependencyMacro)
11+
find_dependency(CheckWarning ${CheckWarning_FIND_VERSION} CONFIG
12+
PATHS ${CheckWarning_INSTALL_DIR}/lib/cmake NO_DEFAULT_PATH)

0 commit comments

Comments
 (0)