Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions pcu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ add_library(pcu ${SOURCES})
# see: https://github.com/open-mpi/ompi/issues/5157
target_compile_definitions(pcu PUBLIC OMPI_SKIP_MPICXX)

if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD"
OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "DragonFly")
target_link_libraries(pcu PRIVATE execinfo)
if(
SCOREC_PCU_LINK_EXECINFO
OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD"
OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD"
OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD"
OR CMAKE_SYSTEM_NAME STREQUAL "DragonFly"
)
target_link_libraries(pcu PRIVATE execinfo)
endif()

# Check for mallinfo, mallctl for PCU_GetMem().
Expand Down