Move CMake variables to the file where they are used
This commit is contained in:
parent
603692a1d8
commit
5324ac8c0e
@ -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 )
|
||||
|
||||
@ -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}
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user