MacOS marble-qt target Install target missing BUNDLE DESTINATION cmake argument
With digiKam MacOS build from binary factory:
https://binary-factory.kde.org/view/MacOS/job/Digikam_Nightly_macos/
...cmake report an error at configuration time:
19:29:38 *** Action: compile for kde/applications/marble ***
19:29:38 executing command: "/Users/packaging/Craft/BinaryFactory/macos-64-clang/dev-utils/bin/cmake" -G Ninja -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=ON -DBUILD_MARBLE_TESTS=OFF -DWITH_KF5=OFF -DCMAKE_INSTALL_PREFIX=/Users/packaging/Craft/BinaryFactory/macos-64-clang -DCMAKE_PREFIX_PATH=/Users/packaging/Craft/BinaryFactory/macos-64-clang -DCMAKE_REQUIRED_INCLUDES=/Users/packaging/Craft/BinaryFactory/macos-64-clang/include -DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=/Users/packaging/Craft/BinaryFactory/macos-64-clang/include -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKDE_INSTALL_BUNDLEDIR=/Users/packaging/Craft/BinaryFactory/macos-64-clang/Applications/KDE -DAPPLE_SUPPRESS_X11_WARNING=ON -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -S /Users/packaging/Craft/BinaryFactory/macos-64-clang/build/kde/applications/marble/work/marble-22.04.2
19:29:39 -- The C compiler identification is AppleClang 13.0.0.13000029
19:29:39 -- The CXX compiler identification is AppleClang 13.0.0.13000029
19:29:39 -- Detecting C compiler ABI info
19:29:39 -- Detecting C compiler ABI info - done
19:29:39 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
19:29:39 -- Detecting C compile features
19:29:39 -- Detecting C compile features - done
19:29:39 -- Detecting CXX compiler ABI info
19:29:39 -- Detecting CXX compiler ABI info - done
19:29:39 -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
19:29:39 -- Detecting CXX compile features
19:29:39 -- Detecting CXX compile features - done
19:29:43 -- Found Protobuf: /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib/libprotobuf.dylib (found version "3.11.2")
19:29:44 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
19:29:45 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
19:29:45 -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
19:29:45 -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
19:29:45 -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
19:29:45 -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
19:29:46 -- Found Perl: /Users/packaging/Craft/BinaryFactory/macos-64-clang/bin/perl (found version "5.28.1")
19:29:46 -- Could NOT find libgps (missing: LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)
19:29:46 -- Could NOT find libwlocate (missing: LIBWLOCATE_INCLUDE_DIR LIBWLOCATE_LIBRARIES)
19:29:47 -- Could NOT find libshp (missing: LIBSHP_INCLUDE_DIR LIBSHP_LIBRARIES)
19:29:47 CMake Error at src/apps/marble-qt/CMakeLists.txt:20 (INSTALL):
19:29:47 INSTALL TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable
19:29:47 target "marble-qt".
19:29:47
The command line in cmake script:
https://invent.kde.org/education/marble/-/blob/master/src/apps/marble-qt/CMakeLists.txt#L56
...must be:
install (TARGETS marble-qt RUNTIME DESTINATION bin BUNDLE DESTINATION "/Applications/Marble")
Edited by Gilles Caulier