Skip to content
Permalink
Browse files

fix precise build

  • Loading branch information
jef-n committed Oct 13, 2015
1 parent 0f9a08e commit f51d1fb4f3d9d07a75b58cd1393a9192f856af1c
Showing with 6 additions and 1 deletion.
  1. +5 −0 src/core/CMakeLists.txt
  2. +1 −1 src/core/geometry/qgsgeos.cpp
@@ -327,6 +327,11 @@ SET(QGIS_CORE_SRCS
geometry/qgswkbtypes.cpp
)

CHECK_CXX_SOURCE_COMPILES("#include <cmath>\nint main() { double d = std::round (0.3); return 0; }\n" HAVE_STD_ROUND)
IF(HAVE_STD_ROUND)
ADD_DEFINITIONS(-DHAVE_STD_ROUND)
ENDIF(HAVE_STD_ROUND)

FILE(GLOB JSON_HELP_FILES "${CMAKE_SOURCE_DIR}/resources/function_help/json/*")
STRING(REPLACE "$" "$$" JSON_HELP_FILES "${JSON_HELP_FILES}")
STRING(REPLACE "\(" "\\(" JSON_HELP_FILES "${JSON_HELP_FILES}")
@@ -49,7 +49,7 @@ email : marco.hugentobler at sourcepole dot com
return r; \
}

#if defined(_MSC_VER) && (_MSC_VER < 1800)
#ifndef HAVE_STD_ROUND
namespace std
{
double round( double d )

0 comments on commit f51d1fb

Please sign in to comment.
You can’t perform that action at this time.