aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2016-12-08 12:18:26 +0800
committerjbeich <jbeich@FreeBSD.org>2016-12-08 12:18:26 +0800
commitc341a0b258fdc6c77dcde1718aeec917f30ceff6 (patch)
treebb182360de1e97f9e61fc060d4d7cb51a70c0963 /graphics
parentbdf0b652f8ec307aa391756a596918059ed2f582 (diff)
downloadfreebsd-ports-gnome-c341a0b258fdc6c77dcde1718aeec917f30ceff6.tar.gz
freebsd-ports-gnome-c341a0b258fdc6c77dcde1718aeec917f30ceff6.tar.zst
freebsd-ports-gnome-c341a0b258fdc6c77dcde1718aeec917f30ceff6.zip
graphics/colmap: don't append -O1 for debug builds
Diffstat (limited to 'graphics')
-rw-r--r--graphics/colmap/files/patch-src_util_CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/colmap/files/patch-src_util_CMakeLists.txt b/graphics/colmap/files/patch-src_util_CMakeLists.txt
index c0f9bc68822e..728d789e0e1f 100644
--- a/graphics/colmap/files/patch-src_util_CMakeLists.txt
+++ b/graphics/colmap/files/patch-src_util_CMakeLists.txt
@@ -1,11 +1,12 @@
--- src/util/CMakeLists.txt.orig 2016-08-09 10:34:35 UTC
+++ src/util/CMakeLists.txt
-@@ -23,3 +23,9 @@ COLMAP_ADD_TEST(random_test random_test.
+@@ -23,3 +23,10 @@ COLMAP_ADD_TEST(random_test random_test.
COLMAP_ADD_TEST(string_test string_test.cc)
COLMAP_ADD_TEST(threading_test threading_test.cc)
COLMAP_ADD_TEST(timer_test timer_test.cc)
+
-+if(IS_CLANG AND CMAKE_SIZEOF_VOID_P EQUAL 4)
++if(IS_CLANG AND CMAKE_SIZEOF_VOID_P EQUAL 4
++ AND CMAKE_CXX_FLAGS MATCHES "-O([2-9s]|fast)")
+ # -O2 exceeds max memory on i386
+ set_source_files_properties(camera_specs.cc
+ PROPERTIES COMPILE_FLAGS "-O1")