Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39457

Update COMPILE_DEFINITIONS_X in Qt5CoreMacros.cmake for CMake 3

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.3.0
    • Build System
    • None

      Qt5CoreMacros produces policy warnings under CMake 3 (RC6) as it sets target properties for COMPILE_DEFINITIONS_RELEASE, COMPILE_DEFINITIONS_DEBUG etc.

      "The COMPILE_DEFINITIONS_<CONFIG> directory properties and the COMPILE_DEFINITIONS_<CONFIG> target properties have been deprecated. Instead set the corresponding COMPILE_DEFINITIONS directory property or COMPILE_DEFINITIONS target property and use generator expressions like $<CONFIG:...> to specify per-configuration definitions. See policy CMP0043."

      http://www.cmake.org/cmake/help/v3.0/policy/CMP0043.html#policy:CMP0043

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            mattbolger Matt Bolger
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes