cmake: Fix setting QT_DISABLE_DEPRECATED_BEFORE
The last set would override the variable instead of appending to it, thus QT_DISABLE_DEPRECATED_BEFORE was never set. Change-Id: I173b91704a855fcda1f2b86172d318e3953466db Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
045bb3df92
commit
92fdc6b2ea
@ -1142,12 +1142,13 @@ function(qt_internal_library_deprecation_level result)
|
||||
if(WIN32)
|
||||
# On Windows, due to the way DLLs work, we need to export all functions,
|
||||
# including the inlines
|
||||
set("${result}" "QT_DISABLE_DEPRECATED_BEFORE=0x040800" PARENT_SCOPE)
|
||||
list(APPEND deprecations "QT_DISABLE_DEPRECATED_BEFORE=0x040800")
|
||||
else()
|
||||
# On other platforms, Qt's own compilation goes needs to compile the Qt 5.0 API
|
||||
set("${result}" "QT_DISABLE_DEPRECATED_BEFORE=0x050000" PARENT_SCOPE)
|
||||
list(APPEND deprecations "QT_DISABLE_DEPRECATED_BEFORE=0x050000")
|
||||
endif()
|
||||
set("${result}" "QT_DEPRECATED_WARNINGS_SINCE=0x060000" PARENT_SCOPE)
|
||||
list(APPEND deprecations "QT_DEPRECATED_WARNINGS_SINCE=0x060000")
|
||||
set("${result}" deprecations PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user