mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Making sure libmesh flags are included if enabled.
This commit is contained in:
parent
a03d58cb59
commit
1115485173
1 changed files with 9 additions and 1 deletions
|
|
@ -123,6 +123,11 @@ if(openmp)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if (libmesh)
|
||||
list(APPEND cxxflags ${LIBMESH_CFLAGS})
|
||||
list(APPEND ldflags ${LIBMESH_CFLAGS})
|
||||
endif()
|
||||
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
list(APPEND cxxflags -O2)
|
||||
|
|
@ -374,7 +379,7 @@ target_include_directories(libopenmc
|
|||
$<INSTALL_INTERFACE:include>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
${HDF5_INCLUDE_DIRS}
|
||||
${LIBMESH_INCLUDE_DIRECTORIES}
|
||||
${LIBMESH_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
# Set compile flags
|
||||
|
|
@ -389,6 +394,9 @@ endif()
|
|||
if (MPI_ENABLED)
|
||||
target_compile_definitions(libopenmc PUBLIC -DOPENMC_MPI)
|
||||
endif()
|
||||
if (libmesh)
|
||||
target_compile_definitions(libopenmc PUBLIC -DLIBMESH)
|
||||
endif()
|
||||
|
||||
# Set git SHA1 hash as a compile definition
|
||||
if(GIT_FOUND)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue