Skip to content

Commit 2d7d5e7

Browse files
committed
add_def
1 parent 3dc7875 commit 2d7d5e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmake/thirdparty/SetupCGNS.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ set(CGNS_ROOT ${CGNS_DIR})
99
find_package(CGNS REQUIRED)
1010

1111
get_target_property(CGNS_INCLUDE_DIRS CGNS::cgns_shared INTERFACE_INCLUDE_DIRECTORIES)
12-
message(STATUS "CGNS Include Directory: ${CGNS_INCLUDE_DIRS}")
12+
message(STATUS "CGNS Include Directory: ${CGNS_INCLUDE_DIRS}")
13+
14+
# some versions of openmpi (4.1.6 on ubuntu 24.04) lead to C++ mpi linker errors
15+
add_definitions(-DOMPI_SKIP_MPICXX)

0 commit comments

Comments
 (0)