cmake: keep compiler definitions in one place

This commit is contained in:
Ilya Tumaykin 2016-03-21 21:45:47 +03:00
parent 29f18210b1
commit ad647d2e0a
No known key found for this signature in database
GPG Key ID: FCF6A8810E836D1C

View File

@ -54,6 +54,13 @@ add_definitions(
-Wall -Wall
) )
if (CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(
-O0
-g3
)
endif (CMAKE_BUILD_TYPE MATCHES Debug)
add_library( add_library(
${UCHARDET_LIBRARY} ${UCHARDET_LIBRARY}
${UCHARDET_SOURCES} ${UCHARDET_SOURCES}
@ -91,13 +98,6 @@ if (UCHARDET_STATIC_LIBRARY)
) )
endif (UCHARDET_STATIC_LIBRARY) endif (UCHARDET_STATIC_LIBRARY)
if (CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(
-O0
-g3
)
endif (CMAKE_BUILD_TYPE MATCHES Debug)
if (NOT WIN32) if (NOT WIN32)
install( install(
TARGETS TARGETS