--- yoshimi-1.2.0/src/CMakeLists.txt.orig 2014-05-19 22:46:20.125375737 +0100
+++ yoshimi-1.2.0/src/CMakeLists.txt 2014-05-19 22:46:30.197539167 +0100
@@ -28,6 +28,7 @@
# relative paths break some scripts(?)
set (CMAKE_SKIP_RULE_DEPENDENCY OFF)
# Rebuild objects if rules have changed, even if source hasn't.
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
message (STATUS "Building Yoshimi version ${YOSHIMI_VERSION} for ${CMAKE_SYSTEM_NAME}")
@@ -64,18 +65,18 @@
set (FifoDirectory /dev/shm CACHE STRING "Directory for fifos")
set (BuildOptions_x86_64AMD
- "-O3 -march=athlon64 -m64 -Wall -ffast-math -fno-finite-math-only -fomit-frame-pointer"
+ ${CMAKE_C_FLAGS}
CACHE STRING "X86_64 compiler options"
)
set (BuildOptions_X86_64Core2
- "-O3 -march=core2 -m64 -Wall -ffast-math -fno-finite-math-only -fomit-frame-pointer"
+ ${CMAKE_C_FLAGS}
CACHE STRING "X86_64 compiler options"
)
set (BuildOptionsBasic
- "-O3 -msse -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer"
- CACHE STRING "basic X86 complier options"
+ ${CMAKE_C_FLAGS}
+ CACHE STRING "basic X86 complier options"
)
set (BuildOptionsDebug