Skip to content

Commit

Permalink
Fix more annoying compiler warnings on MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed May 5, 2015
1 parent 21566f5 commit ba9adbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
# DEALINGS IN THE SOFTWARE.
#

# On MSVC remove /W3, as we are replacing it with /W4
if(MSVC)
string(REPLACE "/W3" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CORRADE_CXX_FLAGS}")

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

add_subdirectory(Corrade)
2 changes: 0 additions & 2 deletions src/Corrade/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# DEALINGS IN THE SOFTWARE.
#

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CORRADE_CXX_FLAGS}")

if(NOT BUILD_STATIC)
set(SHARED_OR_STATIC SHARED)
else()
Expand Down

0 comments on commit ba9adbf

Please sign in to comment.