Blob Blame History Raw
--- yoshimi-1.5.7/src/CMakeLists.txt	2018-03-21 17:30:00.000000000 +0000
+++ yoshimi-1.5.7.new/src/CMakeLists.txt	2018-03-28 22:05:21.292620746 +0100
@@ -47,6 +47,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}")
 
@@ -97,12 +98,12 @@
 )
 
 set (BuildOptions_X86_64AMD
-    "-O3 -march=athlon64 -m64 -Wall -msse -msse2 -mfpmath=sse -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 -msse -msse2 -mfpmath=sse -ffast-math -fno-finite-math-only -fomit-frame-pointer"
+    ${CMAKE_C_FLAGS} 
   CACHE STRING "X86_64 compiler options"
 )