Permalink
Browse files

Add NOMINMAX compiler flag for MSVC

not tested!
  • Loading branch information...
ypnos committed Apr 19, 2016
1 parent ea6adbb commit 56acd5e166f654bf9e1391815e377ab09ed12812
Showing with 5 additions and 0 deletions.
  1. +5 −0 CMakeLists.txt
View
@@ -29,6 +29,11 @@ else() # [remove when bumping CMake req. to 3.1+]
endif()
##
+# disable ridiculous Microsoft min()/max() macros
+if(MSVC)
+ add_definitions(-DNOMINMAX)
+endif()
+
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

0 comments on commit 56acd5e

Please sign in to comment.