From 826ee998a4fd7e19b89427d16265d88ba7820957 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Mon, 2 Sep 2019 23:27:27 +0200 Subject: 2geom: Use sincos function if available --- src/2geom/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/2geom/CMakeLists.txt b/src/2geom/CMakeLists.txt index 3c18c4ffd..e1e708e6d 100644 --- a/src/2geom/CMakeLists.txt +++ b/src/2geom/CMakeLists.txt @@ -3,6 +3,10 @@ if (CMAKE_BUILD_TYPE MATCHES Strict) set(CMAKE_CXX_FLAGS_STRICT "${CMAKE_CXX_FLAGS_STRICT} -Wno-error=deprecated-declarations") endif() +if(HAVE_SINCOS) + add_definitions(-DHAVE_SINCOS) +endif() + set(2geom_SRC affine.cpp basic-intersection.cpp -- cgit v1.2.3