From e89aad364f7c6123fcd6c7a01fe045fe483aa593 Mon Sep 17 00:00:00 2001 From: Aiden Woodruff Date: Tue, 14 Apr 2026 12:58:56 -0400 Subject: [PATCH] Add cxx_std_11 feature to PCU std::unique_ptr was introduced in C++11 and required for the new public PCU interface. --- pcu/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pcu/CMakeLists.txt b/pcu/CMakeLists.txt index c221616c6..1d5f39624 100644 --- a/pcu/CMakeLists.txt +++ b/pcu/CMakeLists.txt @@ -41,6 +41,7 @@ set(HEADERS # Add the pcu library add_library(pcu ${SOURCES}) +target_compile_features(pcu PUBLIC cxx_std_11) # this compiler definition is needed to silence warnings caused by the openmpi CXX # bindings that are depreciated. This is needed on gcc 8 forward. # see: https://github.com/open-mpi/ompi/issues/5157