diff --git a/cmake/env.inc b/cmake/env.inc index 15cd5e18803aa24b1813dc99ebc9187da68d4457..356bd61442c51a9b697e375e9fe7ee7c1ad3d24b 100755 --- a/cmake/env.inc +++ b/cmake/env.inc @@ -35,8 +35,8 @@ ENDIF () # Set compiler options SET(COMMON_C_FLAGS "${COMMON_FLAGS} -std=gnu99") -SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${COMMON_FLAGS} ${DEBUG_FLAGS}") -SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${COMMON_FLAGS} ${RELEASE_FLAGS}") +SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${COMMON_C_FLAGS} ${DEBUG_FLAGS}") +SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${COMMON_C_FLAGS} ${RELEASE_FLAGS}") # Set c++ compiler options SET(COMMON_CXX_FLAGS "${COMMON_FLAGS} -std=c++11")