Skip to content

Commit

Permalink
CMake: improve MSVC compatibility (see Ancurio#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
cremno committed Jun 23, 2015
1 parent 2d31d08 commit 180ba8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ elseif(APPLE)
set(LIB_PATH "lib")
endif()

if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
endif()

set(CMAKE_SKIP_BUILD_RPATH TRUE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH ${BIN_RPATH})
Expand Down

0 comments on commit 180ba8a

Please sign in to comment.