-Wno-c++11-extensions is a clang-specific option.

GCC doesn't have it, so don't enable it unless we specifically
know that clang is the compiler.
This commit is contained in:
Jakob Petsovits 2015-07-14 17:47:21 -04:00
parent 1d2727ad25
commit d138104c85
1 changed files with 2 additions and 5 deletions

View File

@ -312,18 +312,15 @@ if (MSVC)
#$(SolutionDir)<toolset>msvc,<variant>release:<linkflags>/OPT:ICF=5
#$(SolutionDir)<toolset>msvc,<variant>release:<linkflags>/OPT:REF
else()
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions(-Wno-c++11-extensions)
add_definitions(-fcolor-diagnostics)
endif()
add_definitions(-D_FILE_OFFSET_BITS=64)
add_definitions(-DBOOST_EXCEPTION_DISABLE)
add_definitions(-DBOOST_ASIO_ENABLE_CANCELIO)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions(-fcolor-diagnostics)
endif()
if (tcmalloc)
target_link_libraries(torrent-rasterbar tcmalloc)
endif()