diff --git a/CMakeLists.txt b/CMakeLists.txt index e62dc100..d2e6cd25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,20 +40,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) set(CXX_STD 17 CACHE STRING "Set to 14, 17, etc., to enable C++14, C++17, etc.") message("-- Using -std=c++${CXX_STD}") - -# the following code will fail for clang-cl as it returns Clang but requires MSVC style -# if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") -# add_definitions(-Wall) -# if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") -# add_definitions(-Wall) -# elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") -# add_definitions(-Wall) -# elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") -# add_definitions(/W3) -# add_compile_options(/Zc:__cplusplus) -# endif () -# -# # to just check the different frontend flavours we could use the following code if (CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC") get_filename_component(CNAME "${CMAKE_CXX_COMPILER}" NAME)