Skip to content

Commit a3dd1d5

Browse files
authored
Add cxx_std_11 feature to PCU (#533)
std::unique_ptr was introduced in C++11 and required for the new public PCU interface.
1 parent 0d70343 commit a3dd1d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pcu/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ set(HEADERS
4141

4242
# Add the pcu library
4343
add_library(pcu ${SOURCES})
44+
target_compile_features(pcu PUBLIC cxx_std_11)
4445
# this compiler definition is needed to silence warnings caused by the openmpi CXX
4546
# bindings that are depreciated. This is needed on gcc 8 forward.
4647
# see: https://github.com/open-mpi/ompi/issues/5157

0 commit comments

Comments
 (0)