summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Demel <demel@uni-bremen.de>2019-01-01 18:57:21 +0100
committerMartin Braun <martin.braun@ettus.com>2019-01-01 19:07:49 -0800
commit7e5396b21469e3cfdc1ca3c67c969febf742b840 (patch)
tree3d453b5bd416703a04b8a1c6b6dfb28f715dd44c
parentb9740c963c427567b5e7751506b3cab93c680e4c (diff)
cmake: remove obsolete code.
GR 3.8 requires CMake 3.5.1 but it contained a workaround for CMake < 3.1 which is now obsolete. Thus, this patch removes the now obsolete workaround.
-rw-r--r--CMakeLists.txt6
1 files changed, 0 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a7a2e749e..e4d0584be4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,12 +158,6 @@ ELSE()
message(warning "C standard could not be set because compiler is not GNU, Clang or MSVC.")
ENDIF()
-# if cmake version is < 3.1, explicitly set C standard to use.
-IF(${CMAKE_VERSION} VERSION_LESS "3.1")
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c${CMAKE_C_STANDARD}")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++${CMAKE_CXX_STANDARD}")
-ENDIF()
-
########################################################################
# Environment setup
########################################################################