47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
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()
|