Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What `--` is on MacOS?
QtWS25 Last Chance

What `--` is on MacOS?

Scheduled Pinned Locked Moved Solved General and Desktop
configurationbuild
2 Posts 2 Posters 480 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    What does -- mean in the command line on MacOS?

    What is the difference between

    ./configure -- -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DQT_NO_EXCEPTIONS=1
    

    and

    ./configure -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DQT_NO_EXCEPTIONS=1
    

    ?

    I did some experimentation and was able to run the following command, but I am not sure if it is correct:

    ./configure -c++std c++20 -opensource -confirm-license -no-openssl -securetransport \
      -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity \
      -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua \
      -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects \
      -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland -skip qtwebsockets \
      -skip qtwebchannel -skip qtwebengine -skip qtwebview \
      -- -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DQT_NO_EXCEPTIONS=1
    

    at least, it displayed

    Building for: macx-clang (x86_64;arm64), x86_64 features: cx16 mmx sse sse2 sse3 ssse3 sse4.1)
    

    in the compiler summary, but it also displayed the warning:

    CMake Warning:
      Manually-specified variables were not used by the project:
    
        QT_NO_EXCEPTIONS
    

    so as far as I can only guess, I probably move -DQT_NO_EXCEPTIONS=1 before --, can it be true?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, it has nothing to do with macOS.

      Usually the -- means that what follows will by passed as is to a process started by the script / command / other that you are invoking.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved