From e48e60e81721554b651e7e11ba12851c4528b6b9 Mon Sep 17 00:00:00 2001 From: likepeng Date: Mon, 30 Sep 2024 00:39:34 +0800 Subject: [PATCH] remove install deps --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbc87b7..2eb22f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,6 @@ project(myframe VERSION 0.9.4) ### option option(MYFRAME_USE_CV "Using conditional variables for thread communication" ON) -option(MYFRAME_INSTALL_DEPS "Install deps" OFF) option(MYFRAME_GENERATE_EXAMPLE "Generate example library" ON) option(MYFRAME_GENERATE_TEST "Generate test executable program" ON) @@ -72,15 +71,6 @@ install(PROGRAMS install(DIRECTORY templates DESTINATION .) install(DIRECTORY DESTINATION ${MYFRAME_LOG_DIR}) install(DIRECTORY DESTINATION ${MYFRAME_SERVICE_DIR}) -if (MYFRAME_INSTALL_DEPS) - if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.21") - install(IMPORTED_RUNTIME_ARTIFACTS jsoncpp_lib) - install(IMPORTED_RUNTIME_ARTIFACTS glog::glog) - install(IMPORTED_RUNTIME_ARTIFACTS gflags) - else() - message(WARNING "Can not install deps lib, cmake version ${CMAKE_VERSION} < 3.21") - endif() -endif() ### package include(Packing)