Skip to content

Commit

Permalink
CMake bugfix for {fmt} (GEOS-DEV#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrtobin authored May 19, 2023
1 parent 5162c38 commit 414008a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/cmake/thirdparty/SetupGeosxThirdParty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -763,12 +763,7 @@ if(DEFINED FMT_DIR)

set(ENABLE_FMT ON CACHE BOOL "")

if(NOT TARGET fmt AND TARGET fmt::fmt)
set_target_properties(fmt::fmt PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(fmt ALIAS fmt::fmt)
endif()

set(thirdPartyLibs ${thirdPartyLibs} fmt)
set(thirdPartyLibs ${thirdPartyLibs} fmt::fmt )
else()
message(FATAL_ERROR "GEOSX requires {fmt}, set FMT_DIR to the {fmt} installation directory.")
endif()
Expand Down Expand Up @@ -848,8 +843,8 @@ option(GEOSX_LA_INTERFACE_${upper_LAI} "${upper_LAI} LA interface is selected" O

# find_and_register(NAME FesapiCpp
# INCLUDE_DIRECTORIES ${FESAPI_DIR}/include
# LIBRARY_DIRECTORIES ${FESAPI_DIR}/lib
# HEADER fesapi/nsDefinitions.h
# LIBRARY_DIRECTORIES ${FESAPI_DIR}/lib
# HEADER fesapi/nsDefinitions.h
# LIBRARIES FesapiCpp
# DEPENDS hdf5)

Expand Down
2 changes: 1 addition & 1 deletion src/coreComponents/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set( common_sources
initializeEnvironment.cpp
)

set( dependencyList ${parallelDeps} lvarray pugixml RAJA chai conduit::conduit fmt )
set( dependencyList ${parallelDeps} lvarray pugixml RAJA chai conduit::conduit fmt::fmt )

if ( ENABLE_MKL )
set( dependencyList ${dependencyList} mkl )
Expand Down

0 comments on commit 414008a

Please sign in to comment.