aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/tests/src
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-09-15 08:28:24 +0200
committerselsta <selsta@sent.at>2021-09-16 10:44:25 +0200
commit4afd9a7a9e08d9e181f91086f2d9d7ae4eb8af0d (patch)
treed3fe526ebcee30d16179d26a48e585de8aa1a6f5 /contrib/epee/tests/src
parentMerge pull request #7899 (diff)
downloadmonero-4afd9a7a9e08d9e181f91086f2d9d7ae4eb8af0d.tar.xz
cmake: set required C/C++ standard to 11
Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
Diffstat (limited to 'contrib/epee/tests/src')
-rw-r--r--contrib/epee/tests/src/CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/epee/tests/src/CMakeLists.txt b/contrib/epee/tests/src/CMakeLists.txt
index 0c42f87ca..e724b53f4 100644
--- a/contrib/epee/tests/src/CMakeLists.txt
+++ b/contrib/epee/tests/src/CMakeLists.txt
@@ -1,6 +1,13 @@
cmake_minimum_required(VERSION 3.5)
+set(CMAKE_C_STANDARD 11)
+set(CMAKE_C_STANDARD_REQUIRED ON)
+set(CMAKE_C_EXTENSIONS OFF)
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS OFF)
+
set(Boost_USE_MULTITHREADED ON)
include_directories(.)
@@ -14,8 +21,8 @@ IF (MSVC)
include_directories(SYSTEM platform/msvc)
ELSE()
# set stuff for other systems
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -Wall")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wno-reorder")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-reorder")
ENDIF()