Skip to content

Commit bf07b26

Browse files
committed
build: don't clobber user/superproject c++ version
This allows a vendored libmultiprocess to inherit the c++ version from the main project
1 parent 07c917f commit bf07b26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
cmake_minimum_required(VERSION 3.8)
66

77
project("Libmultiprocess" CXX)
8-
set(CMAKE_CXX_STANDARD 17)
8+
if(NOT DEFINED CMAKE_CXX_STANDARD)
9+
set(CMAKE_CXX_STANDARD 17)
10+
endif()
911
set(CMAKE_CXX_STANDARD_REQUIRED YES)
1012

1113
include("cmake/compat_find.cmake")

0 commit comments

Comments
 (0)