Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from frederikvannoote/feature/noAllWarningsForV…
Browse files Browse the repository at this point in the history
…isualStudio

It is very hard to solve all warnings Visual Studio is generating. Le…
  • Loading branch information
frederikvannoote authored Feb 10, 2017
2 parents ba3d620 + f26d51d commit 2dd971f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CommonConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}/local-exports)

# Compiler flags
# --------------
add_definitions(-Wall -fvisibility=hidden)
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# not using Visual Studio C++
add_definitions(-Wall -fvisibility=hidden)
endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

Expand Down

0 comments on commit 2dd971f

Please sign in to comment.