Skip to content

Commit

Permalink
fix(FAM): cmake LibUUID issue on some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
mcakircali committed Nov 12, 2024
1 parent 95413af commit 354715b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindLibUUID.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ find_package_handle_standard_args(LibUUID REQUIRED_VARS
LIB_UUID_LIBRARY
LIB_UUID_INCLUDE_DIR)

if (LIB_UUID_FOUND)
if (LibUUID_FOUND)
set(LIB_UUID_LIBRARIES ${LIB_UUID_LIBRARY})
set(LIB_UUID_INCLUDE_DIRS ${LIB_UUID_INCLUDE_DIR})
if(NOT TARGET LibUUID)
add_library(LibUUID UNKOWN IMPORTED)
add_library(LibUUID UNKNOWN IMPORTED)
set_target_properties(LibUUID PROPERTIES
IMPORTED_LOCATION "${LIB_UUID_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${LIB_UUID_INCLUDE_DIR}"
Expand Down
2 changes: 2 additions & 0 deletions src/eckit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@ ecbuild_add_library(
"${RADOS_INCLUDE_DIRS}"
"${OPENSSL_INCLUDE_DIR}"
"${AIO_INCLUDE_DIRS}"
"${LIB_UUID_INCLUDE_DIRS}"

PRIVATE_LIBS
"${SNAPPY_LIBRARIES}"
Expand All @@ -978,6 +979,7 @@ ecbuild_add_library(
"${CURL_LIBRARIES}"
"${AIO_LIBRARIES}"
"${RADOS_LIBRARIES}"
"${LIB_UUID_LIBRARIES}"
$<${HAVE_OPENFAM}:OpenFAM::openfam>

PUBLIC_LIBS
Expand Down

0 comments on commit 354715b

Please sign in to comment.