Remove non standard option DEBUG and use CMAKE_BUILD_TYPE instead. Bug 772879
This commit is contained in:
parent
d6ad54bac2
commit
b54a1484bc
3 changed files with 7 additions and 11 deletions
|
|
@ -54,13 +54,17 @@ set(ARCHIVE_BASE_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
|
|||
set(ARCHIVE_FULL_NAME ${ARCHIVE_BASE_NAME}.tar.xz)
|
||||
set(ARCHIVE_DEBUILD_FULL_NAME ${CMAKE_PROJECT_NAME}_${VERSION}.orig.tar.xz)
|
||||
|
||||
option(DEBUG "Build for debugging." OFF)
|
||||
if (NOT CMAKE_BUILD_TYPE)
|
||||
#default build is -O2 -g
|
||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
|
||||
endif()
|
||||
|
||||
option(ICON_UPDATE "Run gtk-update-icon-cache after the install." ON)
|
||||
option(DESKTOP_UPDATE "Run update-desktop-database after the install." ON)
|
||||
option(DESKTOP_VALIDATE "Check generated desktop file for errors during build." ON)
|
||||
option(TRANSLATE_HELP "Generate and install translated help documentation." ON)
|
||||
|
||||
if (DEBUG)
|
||||
IF(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
message(STATUS "Debug build")
|
||||
endif ()
|
||||
|
||||
|
|
|
|||
2
configure
vendored
2
configure
vendored
|
|
@ -83,7 +83,7 @@ do
|
|||
--disable-silent-rules | --disable-static ) ;;
|
||||
|
||||
--debug)
|
||||
CMDLINE="${CMDLINE} -DDEBUG=ON"
|
||||
CMDLINE="${CMDLINE} -DCMAKE_BUILD_TYPE=Debug"
|
||||
;;
|
||||
|
||||
--disable-fatal-warnings)
|
||||
|
|
|
|||
|
|
@ -540,16 +540,8 @@ set(CFLAGS
|
|||
-DISO_CODE_639_XML=\"${ISO_CODE_639_XML}\"
|
||||
-DISO_CODE_3166_XML=\"${ISO_CODE_3166_XML}\"
|
||||
-DGCR_API_SUBJECT_TO_CHANGE
|
||||
-g
|
||||
)
|
||||
|
||||
if (NOT DEBUG)
|
||||
set(CFLAGS
|
||||
${CFLAGS}
|
||||
-O2
|
||||
)
|
||||
endif ()
|
||||
|
||||
if (REF_TRACKING)
|
||||
message(STATUS "Reference tracking: ON")
|
||||
set(EXTRA_VALA_OPTIONS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue