Hi Gregor, With a CMake file similar to the following I seem to be able to make proper kexts with the latest nightly 3.7.20170113-g26509. At least they seem to be working, I have been bitten before. "kextutil -nt X.kext" is useful for testing them. This could close the issue https://gitlab.kitware.com/cmake/cmake/issues/13487.
Harry ================================================ find_path(KERNEL_INCLUDE_DIR IOKit/pci/IOPCIDevice.h) add_library(driver MODULE Kext.cpp Kext.h ) target_include_directories(driver PRIVATE ${KERNEL_INCLUDE_DIR} ) set(driver_name "Driver") set(driver_id "com.driver.driver") set(driver_version "1.0.0") set_target_properties(driver PROPERTIES BUNDLE YES BUNDLE_EXTENSION kext INSTALL_RPATH "" # rpath must not be set! MACOSX_BUNDLE_BUNDLE_NAME ${driver_name} MACOSX_BUNDLE_BUNDLE_VERSION ${driver_version} MACOSX_BUNDLE_GUI_IDENTIFIER ${driver_id} MACOSX_BUNDLE_INFO_PLIST CmakeTemplate.plist.in OUTPUT_NAME ${driver_name} XCODE_ATTRIBUTE_MODULE_NAME ${driver_id} XCODE_ATTRIBUTE_MODULE_VERSION ${driver_version} XCODE_PRODUCT_TYPE "com.apple.product-type.kernel-extension.iokit" ) install(TARGETS driver DESTINATION Library/Extensions COMPONENT driver ) # Now we do a signing routine which we rolled ourselves ================================================ Harry Mallon CODEX | Software Engineer 60 Poland Street | London | England | W1F 7NT E ha...@codexdigital.com<mailto:ha...@codexdigital.com> | T +44 203 7000 989<callto:+44%20203%207000%20989> Website<http://codex.online> | Facebook<https://www.facebook.com/codexdigital> | Twitter<http://twitter.com/codexdigital> [http://codex.online/?action=asset&id=5B21DF7C-EC27-4199-852F-D596F5F28DA9]<http://codex.online>
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake