[geos-commits] r4135 - trunk
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed Dec 16 21:41:49 PST 2015
Author: strk
Date: 2015-12-16 21:41:48 -0800 (Wed, 16 Dec 2015)
New Revision: 4135
Modified:
trunk/CMakeLists.txt
Log:
Fix cmake build with Visual Studio 2015
Patch by Stefan Hacker <stefan.hacker at ptvgroup.com>
Closes https://github.com/libgeos/libgeos/pull/49
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt 2015-12-14 17:25:41 UTC (rev 4134)
+++ trunk/CMakeLists.txt 2015-12-17 05:41:48 UTC (rev 4135)
@@ -122,7 +122,7 @@
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
string(REGEX REPLACE "/W[0-9]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- if(MSVC80 OR MSVC90 OR MSVC10 OR MSVC11 OR MSVC12 OR MSVC13)
+ if(NOT (MSVC_VERSION LESS 1400)) # Visual Studio 2005 or later
# Option is to enable the /MP switch for Visual Studio 2005 or later
option(GEOS_MSVC_ENABLE_MP
More information about the geos-commits
mailing list