Skip to content
Commits on Source (4)
sfcgal (1.3.7-3) UNRELEASED; urgency=medium
sfcgal (1.3.7-3) unstable; urgency=medium
[ Bas Couwenberg ]
* Bump Standards-Version to 4.4.1, no changes.
* Drop unused lintian overrides.
* Update symbols for amd64.
[ Joachim Reichel ]
* Add patch to fix FTBFS with CGAL >= 5.0 (Closes: #946229).
* Add Build-Depends: libcgal-dev (>= 5.0~).
-- Bas Couwenberg <sebastic@debian.org> Mon, 30 Sep 2019 20:01:59 +0200
-- Bas Couwenberg <sebastic@debian.org> Fri, 06 Dec 2019 06:43:24 +0100
sfcgal (1.3.7-2) unstable; urgency=medium
......
......@@ -6,7 +6,7 @@ Section: science
Priority: optional
Build-Depends: debhelper (>= 9.20160114),
cmake,
libcgal-dev (>= 4.10.1),
libcgal-dev (>= 5.0~),
libboost-all-dev,
libmpfr-dev,
libgmp-dev,
......
# Build uses -D_FORTIFY_SOURCE=2, but hardening-check reports:
# Fortify Source functions: no, only unprotected functions found!
hardening-no-fortify-functions usr/lib/*/libSFCGAL.so.*
# Source uses __FILE__ macro
file-references-package-build-path *
This diff is collapsed.
Description: Require C++14 and CGAL >= 5.0
Author: Joachim Reichel <reichel@debian.org>
Bug: https://github.com/Oslandia/SFCGAL/issues/198
Bug-Debian: https://bugs.debian.org/946229
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,8 @@
cmake_minimum_required( VERSION 2.8 )
project( SFCGAL )
+set(CMAKE_CXX_STANDARD 14)
+
set( CMAKE_DEBUG_POSTFIX "d" )
#----------------------------------------------------------------------------
@@ -51,19 +53,19 @@ endif()
# 4.3 minimal
# 4.13 recommended
-find_package( CGAL 4.3 COMPONENTS Core REQUIRED )
+find_package( CGAL COMPONENTS Core REQUIRED )
message( STATUS "CGAL ${CGAL_VERSION} found" )
include_directories( ${CMAKE_BINARY_DIR}/include )
# For CGAL versions < 4.3, we add a local directory that contains some tweaked include files from unreleased versions
# They will overwrite files from the CGAL installation
-if( "${CGAL_VERSION}" VERSION_LESS "4.3" )
- include_directories( patches/CGAL-4.2 )
-elseif( "${CGAL_VERSION}" VERSION_LESS "4.10")
- include_directories( patches/CGAL-4.3 )
- add_definitions( "-DCGAL_INTERSECTION_VERSION=1" )
-endif()
+# if( "${CGAL_VERSION}" VERSION_LESS "4.3" )
+# include_directories( patches/CGAL-4.2 )
+# elseif( "${CGAL_VERSION}" VERSION_LESS "4.10")
+# include_directories( patches/CGAL-4.3 )
+# add_definitions( "-DCGAL_INTERSECTION_VERSION=1" )
+# endif()
#-- BOOST --------------------------------------------------
option( Boost_USE_AUTO_LINK "boost use autolink" OFF )
Description: Force GMPXX as workaround for a linker error (used to be the
default for CGAL 4.x packages)
Author: Joachim Reichel <reichel@debian.org>
Bug: https://github.com/Oslandia/SFCGAL/issues/198
Bug-Debian: https://bugs.debian.org/946229
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,6 +55,7 @@ endif()
# 4.13 recommended
find_package( CGAL COMPONENTS Core REQUIRED )
message( STATUS "CGAL ${CGAL_VERSION} found" )
+add_definitions( "-DCGAL_USE_GMPXX=1" )
include_directories( ${CMAKE_BINARY_DIR}/include )
--- a/test/garden/CMakeLists.txt
+++ b/test/garden/CMakeLists.txt
@@ -7,7 +7,7 @@ set( REGRESS_NAME garden-test-SFCGAL )
add_executable( ${REGRESS_NAME} ${SFCGAL_REGRESS_GARDEN_TEST_SOURCES} )
target_link_libraries( ${REGRESS_NAME} SFCGAL)
-target_link_libraries( ${REGRESS_NAME} ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
+target_link_libraries( ${REGRESS_NAME} gmpxx ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
set_target_properties( ${REGRESS_NAME} PROPERTIES DEBUG_POSTFIX "d" )
install( TARGETS ${REGRESS_NAME} DESTINATION bin )
--- a/test/regress/convex_hull/CMakeLists.txt
+++ b/test/regress/convex_hull/CMakeLists.txt
@@ -8,7 +8,7 @@ find_package(Boost REQUIRED COMPONENTS p
target_link_libraries( ${REGRESS_NAME} SFCGAL)
-target_link_libraries( ${REGRESS_NAME} ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
+target_link_libraries( ${REGRESS_NAME} gmpxx ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
set_target_properties( ${REGRESS_NAME} PROPERTIES DEBUG_POSTFIX "d" )
install( TARGETS ${REGRESS_NAME} DESTINATION bin )
--- a/test/regress/polygon_triangulator/CMakeLists.txt
+++ b/test/regress/polygon_triangulator/CMakeLists.txt
@@ -7,7 +7,7 @@ add_executable( ${REGRESS_NAME} ${SFCGAL
find_package(Boost REQUIRED COMPONENTS program_options filesystem serialization)
target_link_libraries( ${REGRESS_NAME} SFCGAL)
-target_link_libraries( ${REGRESS_NAME} ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
+target_link_libraries( ${REGRESS_NAME} gmpxx ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
set_target_properties( ${REGRESS_NAME} PROPERTIES DEBUG_POSTFIX "d" )
--- a/test/unit/CMakeLists.txt
+++ b/test/unit/CMakeLists.txt
@@ -5,7 +5,7 @@ find_package(Boost REQUIRED COMPONENTS u
file( GLOB_RECURSE SFCGAL_UNIT_TEST_SOURCES *.cpp )
add_executable( unit-test-SFCGAL ${SFCGAL_UNIT_TEST_SOURCES} )
target_link_libraries( unit-test-SFCGAL SFCGAL)
-target_link_libraries(unit-test-SFCGAL ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
+target_link_libraries(unit-test-SFCGAL gmpxx ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES})
#include( PrecompiledHeader )
#if(PCHSupport_FOUND)
--- a/test/regress/standalone/CMakeLists.txt
+++ b/test/regress/standalone/CMakeLists.txt
@@ -4,7 +4,7 @@ add_executable( standalone-regress-test-
find_package(Boost REQUIRED COMPONENTS unit_test_framework filesystem serialization)
-target_link_libraries( standalone-regress-test-SFCGAL SFCGAL ${Boost_LIBRARIES})
+target_link_libraries( standalone-regress-test-SFCGAL SFCGAL gmpxx ${Boost_LIBRARIES})
set_target_properties( standalone-regress-test-SFCGAL PROPERTIES DEBUG_POSTFIX "d" )
install( TARGETS standalone-regress-test-SFCGAL DESTINATION bin )
no-c++98.patch
fix-ftbfs-with-cgal-5.x.patch
fix-linker-error.patch