25 lines
757 B
Diff
25 lines
757 B
Diff
Index: CMakeLists.txt
|
|
===================================================================
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -296,18 +296,7 @@ IF(SUPPORT_STD_FLAG)
|
|
ENDIF(SUPPORT_STD_FLAG)
|
|
|
|
# Optimization flags
|
|
-IF(NOT CMAKE_C_OPT_FLAGS)
|
|
- IF(ENABLE_OPTIMIZATION MATCHES "ON")
|
|
- SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing")
|
|
- ELSE(ENABLE_OPTIMIZATION MATCHES "ON")
|
|
- SET(CMAKE_C_OPT_FLAGS "-g -O2 -fstrict-aliasing")
|
|
- ENDIF(ENABLE_OPTIMIZATION MATCHES "ON")
|
|
-ENDIF(NOT CMAKE_C_OPT_FLAGS)
|
|
-
|
|
-IF(ENABLE_DEBUG MATCHES "ON")
|
|
- SET(CMAKE_BUILD_TYPE "Debug")
|
|
- SET(WITH_DEBUG 1)
|
|
-ENDIF(ENABLE_DEBUG MATCHES "ON")
|
|
+SET(CMAKE_C_OPT_FLAGS "-fstrict-aliasing")
|
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_OPT_FLAGS} ${CMAKE_C_FLAGS} ${CMAKE_C_WARN_FLAGS}")
|
|
|