Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX optimize CMakeList.txt #4557

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions src/lib/serviceRoutinesV2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
Loading