1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/graphics/seexpr/files/patch-CMakeLists.txt
Alexey Dokuchaev b184723ffb Do not unconditionally use SSE4.1 code: not just it makes it less portable,
it might crash on CPUs that do not support those instructions, with SIGILL.
2015-11-27 01:45:08 +00:00

20 lines
541 B
Plaintext

--- CMakeLists.txt.orig 2015-08-28 22:32:38 UTC
+++ CMakeLists.txt
@@ -46,7 +46,10 @@ ELSE(WIN32)
ADD_DEFINITIONS (-Wall -Wextra)
ADD_DEFINITIONS (-pthread)
- SET( CMAKE_CXX_FLAGS "-fPIC -msse4.1")
+ SET( CMAKE_CXX_FLAGS -fPIC )
+ IF(USE_SSE41)
+ SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1" )
+ ENDIF()
ENDIF(WIN32)
## Choose build options
@@ -99,4 +102,3 @@ ADD_SUBDIRECTORY (src/SeExpr)
ADD_SUBDIRECTORY (src/SeExprEditor)
ADD_SUBDIRECTORY (src/doc)
ADD_SUBDIRECTORY (src/demos)
-ADD_SUBDIRECTORY (src/tests)