aboutsummaryrefslogtreecommitdiff
path: root/dep/CMakeLists.txt
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2017-10-31 01:29:51 +0100
committerNaios <naios-dev@live.de>2017-12-20 04:04:27 +0100
commitff35262a3ac804db7a941f29040e4b299a7cb7c4 (patch)
treefe05ea8b57ab71056a6e800a00213fbab8a066c7 /dep/CMakeLists.txt
parentaf7352118b6e7306a8d8a28934ee62f27886808e (diff)
Build: Use interface targets for inheriting flags and definitions
* Remove the usage of global flags and definitions set through the CMAKE_CXX_FLAGS variable. * Use cmake target compile features for setting the CXX standard automatically. * Make C++14 globally available in the project * Closes #21033 (cherry picked from commit e60c1f84a7e13577a82046b02b214f9466d20a7c)
Diffstat (limited to 'dep/CMakeLists.txt')
-rw-r--r--dep/CMakeLists.txt8
1 files changed, 0 insertions, 8 deletions
diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt
index a3f95cb221e..6e3434ef777 100644
--- a/dep/CMakeLists.txt
+++ b/dep/CMakeLists.txt
@@ -8,14 +8,6 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- string(REGEX REPLACE "/W[0-4] " "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- string(REGEX REPLACE "/W[0-4] " "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- add_definitions(/W0)
-else()
- add_definitions(-w)
-endif()
-
add_subdirectory(threads)
if(SERVERS OR TOOLS)