zynaddsubfx: don't overwrite CMAKE_BUILD_TYPE
This commit is contained in:
parent
75de6f7827
commit
4943da8510
1 changed files with 47 additions and 0 deletions
47
srcpkgs/zynaddsubfx/patches/cmake-build-type-none.patch
Normal file
47
srcpkgs/zynaddsubfx/patches/cmake-build-type-none.patch
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
Index: src/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- src/CMakeLists.txt.orig
|
||||||
|
+++ src/CMakeLists.txt
|
||||||
|
@@ -185,7 +185,6 @@ option (BuildForDebug "Include gdb debug
|
||||||
|
option (IncludeWhatYouUse "Check for useless includes" OFF)
|
||||||
|
mark_as_advanced(IncludeWhatYouUse)
|
||||||
|
|
||||||
|
-set(CMAKE_BUILD_TYPE "Release")
|
||||||
|
|
||||||
|
|
||||||
|
set (BuildOptions_x86_64AMD
|
||||||
|
@@ -321,34 +320,6 @@ if(NOT AVOID_ASM)
|
||||||
|
add_definitions(-DASM_F2I_YES)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-if (BuildForDebug)
|
||||||
|
- set (CMAKE_BUILD_TYPE "Debug")
|
||||||
|
- set (CMAKE_CXX_FLAGS_DEBUG ${BuildOptionsDebug})
|
||||||
|
- message (STATUS "Building for ${CMAKE_BUILD_TYPE}, flags: ${CMAKE_CXX_FLAGS_DEBUG}")
|
||||||
|
-else (BuildForDebug)
|
||||||
|
- set (CMAKE_BUILD_TYPE "Release")
|
||||||
|
-
|
||||||
|
- set (CMAKE_CXX_FLAGS_RELEASE ${BuildOptionsBasic})
|
||||||
|
-
|
||||||
|
- if (BuildForAMD_X86_64)
|
||||||
|
- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_x86_64AMD}")
|
||||||
|
- endif (BuildForAMD_X86_64)
|
||||||
|
-
|
||||||
|
- if (BuildForCore2_X86_64)
|
||||||
|
- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_X86_64Core2}")
|
||||||
|
- endif (BuildForCore2_X86_64)
|
||||||
|
-
|
||||||
|
- if (SUPPORT_SSE)
|
||||||
|
- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_SSE}")
|
||||||
|
- endif (SUPPORT_SSE)
|
||||||
|
-
|
||||||
|
- if (SUPPORT_NEON AND NOT NoNeonPlease)
|
||||||
|
- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${BuildOptions_NEON}")
|
||||||
|
- endif (SUPPORT_NEON AND NOT NoNeonPlease)
|
||||||
|
-
|
||||||
|
- message (STATUS "Building for ${CMAKE_BUILD_TYPE}, flags: ${CMAKE_CXX_FLAGS_RELEASE}")
|
||||||
|
-endif (BuildForDebug)
|
||||||
|
-
|
||||||
|
if(NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Windows"))
|
||||||
|
add_definitions(-fPIC)
|
||||||
|
endif()
|
Loading…
Reference in a new issue