From 606e5c662b583616c695b23e6b87b81588d49004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Thu, 30 May 2024 18:03:03 +0200 Subject: [PATCH] FIX optimize CMakeList.txt --- CMakeLists.txt | 18 ++++++++++++------ src/lib/serviceRoutinesV2/CMakeLists.txt | 12 ++++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0118dbef19..b28663ea95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,18 +234,24 @@ find_package (mongoc-1.0 1.24.3 EXACT) find_library (HAVE_CJEXL cjexl PATHS /usr/lib /usr/lib64 /usr/local/lib64 /usr/local/lib) if (HAVE_CJEXL) message("Using cjexl") + SET (COMMON_STATIC_LIBS + microhttpd.a + mosquitto.a + ${HAVE_CJEXL} + mongo::mongoc_static + ) else (HAVE_CJEXL) message("Not using cjexl") add_definitions(-DEXPR_BASIC) + SET (COMMON_STATIC_LIBS + microhttpd.a + mosquitto.a + mongo::mongoc_static + ) endif (HAVE_CJEXL) # Static libs common to contextBroker and unitTest binaries -SET (COMMON_STATIC_LIBS - microhttpd.a - mosquitto.a - ${HAVE_CJEXL} - mongo::mongoc_static -) + SET (DYNAMIC_LIBS curl diff --git a/src/lib/serviceRoutinesV2/CMakeLists.txt b/src/lib/serviceRoutinesV2/CMakeLists.txt index a7b3c7c89d..e32032732f 100644 --- a/src/lib/serviceRoutinesV2/CMakeLists.txt +++ b/src/lib/serviceRoutinesV2/CMakeLists.txt @@ -55,12 +55,12 @@ getRegistrations.cpp optionsGetOnly.cpp optionsGetPostOnly.cpp postRegistration.cpp -optionsGetDeleteOnly -optionsAllNotDelete -optionsGetPutOnly -optionsGetPutDeleteOnly -optionsGetDeletePatchOnly -optionsPostOnly +optionsGetDeleteOnly.cpp +optionsAllNotDelete.cpp +optionsGetPutOnly.cpp +optionsGetPutDeleteOnly.cpp +optionsGetDeletePatchOnly.cpp +optionsPostOnly.cpp serviceRoutinesCommon.cpp )