svn commit: r547860 - in head/math/flann: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Sep 6 17:59:17 UTC 2020
Author: pkubaj
Date: Sun Sep 6 17:59:16 2020
New Revision: 547860
URL: https://svnweb.freebsd.org/changeset/ports/547860
Log:
math/flann: fix build on GCC architectures
Last addition to files/patch-src_cpp_CMakeLists.txt breaks build.
Also require newer GCC.
PR: 249152
Approved by: yuri (maintainer)
Modified:
head/math/flann/Makefile
head/math/flann/files/patch-src_cpp_CMakeLists.txt
Modified: head/math/flann/Makefile
==============================================================================
--- head/math/flann/Makefile Sun Sep 6 17:52:25 2020 (r547859)
+++ head/math/flann/Makefile Sun Sep 6 17:59:16 2020 (r547860)
@@ -15,7 +15,7 @@ LIB_DEPENDS= libhdf5.so:science/hdf5 \
liblz4.so:archivers/liblz4 \
libsz.so:science/szip
-USES= cmake localbase:ldflags pkgconfig
+USES= cmake compiler:c++11-lang localbase:ldflags pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= mariusmuja
USE_LDCONFIG= yes
Modified: head/math/flann/files/patch-src_cpp_CMakeLists.txt
==============================================================================
--- head/math/flann/files/patch-src_cpp_CMakeLists.txt Sun Sep 6 17:52:25 2020 (r547859)
+++ head/math/flann/files/patch-src_cpp_CMakeLists.txt Sun Sep 6 17:59:16 2020 (r547860)
@@ -1,6 +1,6 @@
--- src/cpp/CMakeLists.txt.orig 2019-04-07 03:21:23 UTC
+++ src/cpp/CMakeLists.txt
-@@ -25,11 +25,11 @@ if (BUILD_CUDA_LIB)
+@@ -25,6 +25,6 @@ if (BUILD_CUDA_LIB)
else()
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};" )
endif()
@@ -8,9 +8,3 @@
+ cuda_add_library(flann_cuda_s SHARED ${CU_SOURCES})
set_property(TARGET flann_cuda_s PROPERTY COMPILE_DEFINITIONS FLANN_STATIC)
endif()
-
--if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_COMPILER_IS_GNUCC)
-+if(CMAKE_SYSTEM_NAME MATCHES "Linux|FreeBSD|DragonFly" AND CMAKE_COMPILER_IS_GNUCC)
- add_library(flann_cpp SHARED "")
- set_target_properties(flann_cpp PROPERTIES LINKER_LANGUAGE CXX)
- target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive)
More information about the svn-ports-head
mailing list