ComradeChicken

Untitled

Oct 7th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # Configure compiler warnings
  2. if (CMAKE_CXX_COMPILER_ID MATCHES Clang OR ${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
  3. # using regular Clang or AppleClang or GCC
  4. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra -pedantic")
  5. elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
  6. # using Visual Studio C++
  7. set(CMAKE_CXX_FLAGS "/permissive- /W4 /EHsc")
  8. add_definitions("-D_CRT_SECURE_NO_WARNINGS")
  9. endif()
Advertisement
Add Comment
Please, Sign In to add comment