Skip to content

Commit

Permalink
Changed some CMake options to apply for Microsoft Visual Studio only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Blissing committed Jul 25, 2014
1 parent 43dbeee commit 4e55ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ENDIF()
###############################################################################
# Compiler Options
################################################################################
IF(WIN32)
IF(MSVC)
# Make sure we use minimal windows.h library without min max macros
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D \"WIN32_LEAN_AND_MEAN\"")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D \"NOMINMAX\"")
Expand All @@ -89,7 +89,7 @@ IF(WIN32)
IF (WARNINGS_AS_ERRORS)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
ENDIF (WARNINGS_AS_ERRORS)
ENDIF(WIN32)
ENDIF(MSVC)

IF(UNIX)
IF(CMAKE_COMPILER_IS_GNUCC)
Expand Down

0 comments on commit 4e55ef1

Please sign in to comment.