Move CMake variables to the file where they are used

This commit is contained in:
Luis Díaz Más 2018-09-11 18:32:02 +02:00
parent 603692a1d8
commit 5324ac8c0e
2 changed files with 3 additions and 4 deletions

View File

@ -6,9 +6,6 @@ project( exiv2
include(cmake/mainSetup.cmake REQUIRED)
set( PACKAGE_BUGREPORT "http://github.com/exiv2/exiv2" )
set( PACKAGE_URL "http://www.exiv2.org" )
# options and their default values
option( BUILD_SHARED_LIBS "Build exiv2lib as a shared library" ON )
option( EXIV2_ENABLE_XMP "Build with XMP metadata support" ON )

View File

@ -21,6 +21,9 @@ set(PO_FILES bs.po
update_translations(exiv2 ${PO_FILES})
add_translations(exiv2 ${PO_FILES})
set( PACKAGE_BUGREPORT "http://github.com/exiv2/exiv2" )
set( PACKAGE_URL "http://www.exiv2.org" )
##
# execute xgettext on every file
add_custom_target( pot-update
@ -33,7 +36,6 @@ add_custom_target( pot-update
--keyword=_
--package-name=${PROJECT_NAME}
--package-version=${PROJECT_VERSION}
--copyright-holder=${PACKAGE_COPYRIGHT}
--msgid-bugs-address=${PACKAGE_BUGREPORT}
)