mirror of
https://github.com/boostorg/parser.git
synced 2026-01-19 04:22:13 +00:00
remove commented-out cmake
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user