MARK_AS_ADVANCED(CMAKE_GCC_AR CMAKE_GCC_RANLIB)
ENDIF()
IF(CMAKE_GCC_AR AND CMAKE_GCC_RANLIB)
- SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing -flto")
+ SET(CMAKE_C_OPT_FLAGS "-g -O3 -fstrict-aliasing -flto")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
SET(CMAKE_C_ARCHIVE_CREATE "${CMAKE_GCC_AR} cr <TARGET> <LINK_FLAGS> <OBJECTS>")
SET(CMAKE_C_ARCHIVE_APPEND "${CMAKE_GCC_AR} r <TARGET> <LINK_FLAGS> <OBJECTS>")
SET(CMAKE_CXX_ARCHIVE_FINISH "${CMAKE_GCC_RANLIB} <TARGET>")
ENDIF()
ELSE()
- SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing")
+ SET(CMAKE_C_OPT_FLAGS "-g -O3 -fstrict-aliasing")
ENDIF()
ELSE(ENABLE_OPTIMIZATION MATCHES "ON")
IF(DEBUG_MODE MATCHES "ON")