Skip to content

Commit

Permalink
[irods/irods#6251] use find_package for fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SwooshyCueb committed Feb 21, 2024
1 parent 2f4b265 commit 3af4977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ if (NOT DEFINED THREADS_PREFER_PTHREAD_FLAG)
endif()
find_package(Threads REQUIRED)
find_package(nlohmann_json "3.6.1" REQUIRED)
find_package(fmt "8.1.1"
HINTS "${IRODS_EXTERNALS_FULLPATH_FMT}")
find_package(CURL REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(LibXml2 REQUIRED)
Expand Down Expand Up @@ -116,9 +118,9 @@ target_link_libraries(
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_system.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_thread.so
${IRODS_EXTERNALS_FULLPATH_BOOST}/lib/libboost_filesystem.so
${IRODS_EXTERNALS_FULLPATH_FMT}/lib/libfmt.so
Threads::Threads
nlohmann_json::nlohmann_json
fmt::fmt
rt
)
target_include_directories(
Expand All @@ -127,7 +129,6 @@ target_include_directories(
${IRODS_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/s3/s3_transport/include
${IRODS_EXTERNALS_FULLPATH_BOOST}/include
${IRODS_EXTERNALS_FULLPATH_FMT}/include
${IRODS_EXTERNALS_FULLPATH_S3}/include
${IRODS_EXTERNALS_FULLPATH_SPDLOG}/include
)
Expand Down

0 comments on commit 3af4977

Please sign in to comment.