Fix CMP0054 warnings with CMake 3.1

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 10 years ago
parent 1d1f9fc4fd
commit 1d8a7873c0

@ -575,113 +575,113 @@ macro( tde_add_library _arg_target )
unset( _skip_store ) unset( _skip_store )
# found one of directives: "SHARED", "STATIC", "MODULE" # found one of directives: "SHARED", "STATIC", "MODULE"
if( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" ) if( "+${_arg}" STREQUAL "+SHARED" OR "+${_arg}" STREQUAL "+STATIC" OR "+${_arg}" STREQUAL "+MODULE" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _type "${_arg}" ) set( _type "${_arg}" )
endif( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" ) endif( "+${_arg}" STREQUAL "+SHARED" OR "+${_arg}" STREQUAL "+STATIC" OR "+${_arg}" STREQUAL "+MODULE" )
# found directive "STATIC_PIC" # found directive "STATIC_PIC"
if( "${_arg}" STREQUAL "STATIC_PIC" ) if( "+${_arg}" STREQUAL "+STATIC_PIC" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _type "STATIC" ) set( _type "STATIC" )
set( _static_pic 1 ) set( _static_pic 1 )
endif( "${_arg}" STREQUAL "STATIC_PIC" ) endif( "+${_arg}" STREQUAL "+STATIC_PIC" )
# found directive "AUTOMOC" # found directive "AUTOMOC"
if( "${_arg}" STREQUAL "AUTOMOC" ) if( "+${_arg}" STREQUAL "+AUTOMOC" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _automoc 1 ) set( _automoc 1 )
endif( "${_arg}" STREQUAL "AUTOMOC" ) endif( "+${_arg}" STREQUAL "+AUTOMOC" )
# found directive "META_INCLUDES" # found directive "META_INCLUDES"
if( "${_arg}" STREQUAL "META_INCLUDES" ) if( "+${_arg}" STREQUAL "+META_INCLUDES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_meta_includes" ) set( _storage "_meta_includes" )
endif( ) endif( )
# found directive "NO_LIBTOOL_FILE" # found directive "NO_LIBTOOL_FILE"
if( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" ) if( "+${_arg}" STREQUAL "+NO_LIBTOOL_FILE" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _no_libtool_file 1 ) set( _no_libtool_file 1 )
endif( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" ) endif( "+${_arg}" STREQUAL "+NO_LIBTOOL_FILE" )
# found directive "NO_EXPORT" # found directive "NO_EXPORT"
if( "${_arg}" STREQUAL "NO_EXPORT" ) if( "+${_arg}" STREQUAL "+NO_EXPORT" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _no_export 1 ) set( _no_export 1 )
endif( "${_arg}" STREQUAL "NO_EXPORT" ) endif( "+${_arg}" STREQUAL "+NO_EXPORT" )
# found directive "VERSION" # found directive "VERSION"
if( "${_arg}" STREQUAL "VERSION" ) if( "+${_arg}" STREQUAL "+VERSION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_version" ) set( _storage "_version" )
endif( "${_arg}" STREQUAL "VERSION" ) endif( "+${_arg}" STREQUAL "+VERSION" )
# found directive "SOURCES" # found directive "SOURCES"
if( "${_arg}" STREQUAL "SOURCES" ) if( "+${_arg}" STREQUAL "+SOURCES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_sources" ) set( _storage "_sources" )
endif( "${_arg}" STREQUAL "SOURCES" ) endif( "+${_arg}" STREQUAL "+SOURCES" )
# found directive "EMBED" # found directive "EMBED"
if( "${_arg}" STREQUAL "EMBED" ) if( "+${_arg}" STREQUAL "+EMBED" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_embed" ) set( _storage "_embed" )
endif( "${_arg}" STREQUAL "EMBED" ) endif( "+${_arg}" STREQUAL "+EMBED" )
# found directive "LINK" # found directive "LINK"
if( "${_arg}" STREQUAL "LINK" ) if( "+${_arg}" STREQUAL "+LINK" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_link" ) set( _storage "_link" )
endif( "${_arg}" STREQUAL "LINK" ) endif( "+${_arg}" STREQUAL "+LINK" )
# found directive "DEPENDENCIES" # found directive "DEPENDENCIES"
if( "${_arg}" STREQUAL "DEPENDENCIES" ) if( "+${_arg}" STREQUAL "+DEPENDENCIES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_dependencies" ) set( _storage "_dependencies" )
endif( "${_arg}" STREQUAL "DEPENDENCIES" ) endif( "+${_arg}" STREQUAL "+DEPENDENCIES" )
# found directive "DESTINATION" # found directive "DESTINATION"
if( "${_arg}" STREQUAL "DESTINATION" ) if( "+${_arg}" STREQUAL "+DESTINATION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_destination" ) set( _storage "_destination" )
unset( ${_storage} ) unset( ${_storage} )
endif( "${_arg}" STREQUAL "DESTINATION" ) endif( "+${_arg}" STREQUAL "+DESTINATION" )
# metadata # metadata
if( "${_arg}" STREQUAL "DESCRIPTION" ) if( "+${_arg}" STREQUAL "+DESCRIPTION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_description" ) set( _storage "_description" )
endif( ) endif( )
if( "${_arg}" STREQUAL "LICENSE" ) if( "+${_arg}" STREQUAL "+LICENSE" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_license" ) set( _storage "_license" )
endif( ) endif( )
if( "${_arg}" STREQUAL "COPYRIGHT" ) if( "+${_arg}" STREQUAL "+COPYRIGHT" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_copyright" ) set( _storage "_copyright" )
endif( ) endif( )
if( "${_arg}" STREQUAL "AUTHORS" ) if( "+${_arg}" STREQUAL "+AUTHORS" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_authors" ) set( _storage "_authors" )
endif( ) endif( )
if( "${_arg}" STREQUAL "PRODUCT" ) if( "+${_arg}" STREQUAL "+PRODUCT" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_product" ) set( _storage "_product" )
endif( ) endif( )
if( "${_arg}" STREQUAL "ORGANIZATION" ) if( "+${_arg}" STREQUAL "+ORGANIZATION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_organization" ) set( _storage "_organization" )
endif( ) endif( )
if( "${_arg}" STREQUAL "VERSION" ) if( "+${_arg}" STREQUAL "+VERSION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_version" ) set( _storage "_version" )
endif( ) endif( )
if( "${_arg}" STREQUAL "DATETIME" ) if( "+${_arg}" STREQUAL "+DATETIME" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_datetime" ) set( _storage "_datetime" )
endif( ) endif( )
if( "${_arg}" STREQUAL "NOTES" ) if( "+${_arg}" STREQUAL "+NOTES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_notes" ) set( _storage "_notes" )
endif( ) endif( )
@ -912,82 +912,82 @@ macro( tde_add_executable _arg_target )
unset( _skip_store ) unset( _skip_store )
# found directive "AUTOMOC" # found directive "AUTOMOC"
if( "${_arg}" STREQUAL "AUTOMOC" ) if( "+${_arg}" STREQUAL "+AUTOMOC" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _automoc 1 ) set( _automoc 1 )
endif( "${_arg}" STREQUAL "AUTOMOC" ) endif( "+${_arg}" STREQUAL "+AUTOMOC" )
# found directive "META_INCLUDES" # found directive "META_INCLUDES"
if( "${_arg}" STREQUAL "META_INCLUDES" ) if( "+${_arg}" STREQUAL "+META_INCLUDES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_meta_includes" ) set( _storage "_meta_includes" )
endif( ) endif( )
# found directive "SETUID" # found directive "SETUID"
if( "${_arg}" STREQUAL "SETUID" ) if( "+${_arg}" STREQUAL "+SETUID" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _setuid 1 ) set( _setuid 1 )
endif( "${_arg}" STREQUAL "SETUID" ) endif( "+${_arg}" STREQUAL "+SETUID" )
# found directive "SOURCES" # found directive "SOURCES"
if( "${_arg}" STREQUAL "SOURCES" ) if( "+${_arg}" STREQUAL "+SOURCES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_sources" ) set( _storage "_sources" )
endif( "${_arg}" STREQUAL "SOURCES" ) endif( "+${_arg}" STREQUAL "+SOURCES" )
# found directive "LINK" # found directive "LINK"
if( "${_arg}" STREQUAL "LINK" ) if( "+${_arg}" STREQUAL "+LINK" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_link" ) set( _storage "_link" )
endif( "${_arg}" STREQUAL "LINK" ) endif( "+${_arg}" STREQUAL "+LINK" )
# found directive "DEPENDENCIES" # found directive "DEPENDENCIES"
if( "${_arg}" STREQUAL "DEPENDENCIES" ) if( "+${_arg}" STREQUAL "+DEPENDENCIES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_dependencies" ) set( _storage "_dependencies" )
endif( "${_arg}" STREQUAL "DEPENDENCIES" ) endif( "+${_arg}" STREQUAL "+DEPENDENCIES" )
# found directive "DESTINATION" # found directive "DESTINATION"
if( "${_arg}" STREQUAL "DESTINATION" ) if( "+${_arg}" STREQUAL "+DESTINATION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_destination" ) set( _storage "_destination" )
unset( ${_storage} ) unset( ${_storage} )
endif( "${_arg}" STREQUAL "DESTINATION" ) endif( "+${_arg}" STREQUAL "+DESTINATION" )
# metadata # metadata
if( "${_arg}" STREQUAL "DESCRIPTION" ) if( "+${_arg}" STREQUAL "+DESCRIPTION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_description" ) set( _storage "_description" )
endif( ) endif( )
if( "${_arg}" STREQUAL "LICENSE" ) if( "+${_arg}" STREQUAL "+LICENSE" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_license" ) set( _storage "_license" )
endif( ) endif( )
if( "${_arg}" STREQUAL "COPYRIGHT" ) if( "+${_arg}" STREQUAL "+COPYRIGHT" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_copyright" ) set( _storage "_copyright" )
endif( ) endif( )
if( "${_arg}" STREQUAL "AUTHORS" ) if( "+${_arg}" STREQUAL "+AUTHORS" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_authors" ) set( _storage "_authors" )
endif( ) endif( )
if( "${_arg}" STREQUAL "PRODUCT" ) if( "+${_arg}" STREQUAL "+PRODUCT" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_product" ) set( _storage "_product" )
endif( ) endif( )
if( "${_arg}" STREQUAL "ORGANIZATION" ) if( "+${_arg}" STREQUAL "+ORGANIZATION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_organization" ) set( _storage "_organization" )
endif( ) endif( )
if( "${_arg}" STREQUAL "VERSION" ) if( "+${_arg}" STREQUAL "+VERSION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_version" ) set( _storage "_version" )
endif( ) endif( )
if( "${_arg}" STREQUAL "DATETIME" ) if( "+${_arg}" STREQUAL "+DATETIME" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_datetime" ) set( _storage "_datetime" )
endif( ) endif( )
if( "${_arg}" STREQUAL "NOTES" ) if( "+${_arg}" STREQUAL "+NOTES" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_notes" ) set( _storage "_notes" )
endif( ) endif( )
@ -1086,31 +1086,31 @@ macro( tde_add_tdeinit_executable _target )
unset( _skip_store ) unset( _skip_store )
# found directive "EXPORT" # found directive "EXPORT"
if( "${_arg}" STREQUAL "EXPORT" ) if( "+${_arg}" STREQUAL "+EXPORT" )
set( _skip_store 1 ) set( _skip_store 1 )
unset( _export ) unset( _export )
endif( "${_arg}" STREQUAL "EXPORT" ) endif( "+${_arg}" STREQUAL "+EXPORT" )
# found directive "RUNTIME_DESTINATION" # found directive "RUNTIME_DESTINATION"
if( "${_arg}" STREQUAL "RUNTIME_DESTINATION" ) if( "+${_arg}" STREQUAL "+RUNTIME_DESTINATION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_runtime_destination" ) set( _storage "_runtime_destination" )
unset( ${_storage} ) unset( ${_storage} )
endif( "${_arg}" STREQUAL "RUNTIME_DESTINATION" ) endif( "+${_arg}" STREQUAL "+RUNTIME_DESTINATION" )
# found directive "LIBRARY_DESTINATION" # found directive "LIBRARY_DESTINATION"
if( "${_arg}" STREQUAL "LIBRARY_DESTINATION" ) if( "+${_arg}" STREQUAL "+LIBRARY_DESTINATION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_library_destination" ) set( _storage "_library_destination" )
unset( ${_storage} ) unset( ${_storage} )
endif( "${_arg}" STREQUAL "LIBRARY_DESTINATION" ) endif( "+${_arg}" STREQUAL "+LIBRARY_DESTINATION" )
# found directive "PLUGIN_DESTINATION" # found directive "PLUGIN_DESTINATION"
if( "${_arg}" STREQUAL "PLUGIN_DESTINATION" ) if( "+${_arg}" STREQUAL "+PLUGIN_DESTINATION" )
set( _skip_store 1 ) set( _skip_store 1 )
set( _storage "_plugin_destination" ) set( _storage "_plugin_destination" )
unset( ${_storage} ) unset( ${_storage} )
endif( "${_arg}" STREQUAL "PLUGIN_DESTINATION" ) endif( "+${_arg}" STREQUAL "+PLUGIN_DESTINATION" )
# storing value # storing value
if( _storage AND NOT _skip_store ) if( _storage AND NOT _skip_store )
@ -1171,28 +1171,28 @@ macro( tde_create_translation )
foreach( _arg ${ARGN} ) foreach( _arg ${ARGN} )
# found directive "FILES" # found directive "FILES"
if( "${_arg}" STREQUAL "FILES" ) if( "+${_arg}" STREQUAL "+FILES" )
unset( _srcs ) unset( _srcs )
set( _var _srcs ) set( _var _srcs )
set( _directive 1 ) set( _directive 1 )
endif( ) endif( )
# found directive "LANG" # found directive "LANG"
if( "${_arg}" STREQUAL "LANG" ) if( "+${_arg}" STREQUAL "+LANG" )
unset( _lang ) unset( _lang )
set( _var _lang ) set( _var _lang )
set( _directive 1 ) set( _directive 1 )
endif( ) endif( )
# found directive "DESTINATION" # found directive "DESTINATION"
if( "${_arg}" STREQUAL "DESTINATION" ) if( "+${_arg}" STREQUAL "+DESTINATION" )
unset( _dest ) unset( _dest )
set( _var _dest ) set( _var _dest )
set( _directive 1 ) set( _directive 1 )
endif( ) endif( )
# found directive "DESTINATION" # found directive "DESTINATION"
if( "${_arg}" STREQUAL "OUTPUT_NAME" ) if( "+${_arg}" STREQUAL "+OUTPUT_NAME" )
unset( _proj ) unset( _proj )
set( _var _out_name ) set( _var _out_name )
set( _directive 1 ) set( _directive 1 )
@ -1291,41 +1291,41 @@ macro( tde_create_handbook )
foreach( _arg ${ARGN} ) foreach( _arg ${ARGN} )
# found directive "NOINDEX" # found directive "NOINDEX"
if( "${_arg}" STREQUAL "NOINDEX" ) if( "+${_arg}" STREQUAL "+NOINDEX" )
set( _noindex 1 ) set( _noindex 1 )
set( _directive 1 ) set( _directive 1 )
endif() endif()
# found directive "FILES" # found directive "FILES"
if( "${_arg}" STREQUAL "FILES" ) if( "+${_arg}" STREQUAL "+FILES" )
unset( _srcs ) unset( _srcs )
set( _var _srcs ) set( _var _srcs )
set( _directive 1 ) set( _directive 1 )
endif() endif()
# found directive "EXTRA" # found directive "EXTRA"
if( "${_arg}" STREQUAL "EXTRA" ) if( "+${_arg}" STREQUAL "+EXTRA" )
unset( _extra ) unset( _extra )
set( _var _extra ) set( _var _extra )
set( _directive 1 ) set( _directive 1 )
endif() endif()
# found directive "SRCDIR" # found directive "SRCDIR"
if( "${_arg}" STREQUAL "SRCDIR" ) if( "+${_arg}" STREQUAL "+SRCDIR" )
unset( _srcdir ) unset( _srcdir )
set( _var _srcdir ) set( _var _srcdir )
set( _directive 1 ) set( _directive 1 )
endif() endif()
# found directive DESTINATION # found directive DESTINATION
if( _arg STREQUAL "DESTINATION" ) if( "+${_arg}" STREQUAL "+DESTINATION" )
unset( _dest ) unset( _dest )
set( _var _dest ) set( _var _dest )
set( _directive 1 ) set( _directive 1 )
endif() endif()
# found directive "LANG" # found directive "LANG"
if( "${_arg}" STREQUAL "LANG" ) if( "+${_arg}" STREQUAL "+LANG" )
unset( _lang ) unset( _lang )
set( _var _lang ) set( _var _lang )
set( _directive 1 ) set( _directive 1 )

Loading…
Cancel
Save