[MacPorts] #57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.

MacPorts noreply at macports.org
Fri Nov 30 03:24:49 UTC 2018


#57700: quazip @0.7.6: No known features for CXX compiler "Clang" version 5.0.2.
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  yan12125
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  quazip      |
-------------------------+----------------------

Comment (by yan12125):

 In [changeset:"98445d69fc13be9c968abe4c597de8324b0ceee6/macports-ports"
 98445d69fc13be9c968abe4c597de8324b0ceee6/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="98445d69fc13be9c968abe4c597de8324b0ceee6"
 quazip: fix building on 10.8

 That's a very long story...

 1. On 10.8, Qt 5.7 is used, and in this version cxx_decltype feature is
    requested [1]
 2. Compiler features detection requires CMAKE_*_STANDARD_COMPILE_OPTION
    (Modules/Compiler/CMakeCommonCompilerMacros.cmake)
 3. CMAKE_*_STANDARD_COMPILE_OPTION are defined in
    Modules/Compiler/Clang-CXX.cmake. However, those definitions are
    skipped if the system is Apple and CMP0025 is not NEW
 4. We have -DCMAKE_POLICY_DEFAULT_CMP0025=NEW. Why doesn't it work?
    That's because CMAKE_POLICY_DEFAULT_* variables are handled in the
    cmake_minimum_required() command [2], while compiler feature
    detection occurs in the project() command.

 Now the conclusion - cmake_minimum_required() should be before project()

 Ref: https://trac.macports.org/ticket/57700

 [1] https://bugreports.qt.io/browse/QTBUG-57886
 [2]
 https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/57700#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list