lol

Force installation of ClingTargets.cmake

thomasjm fe00f3f4 cfb12933

+18
+2
pkgs/development/interpreters/cling/default.nix
··· 53 53 54 54 # https://github.com/root-project/root/commit/286d96b12aad8688b9d8e4b3b5df843dcfb716a8 55 55 ./fix-llvm-dylib-usage.patch 56 + 57 + ./force-install-cling-targets.patch 56 58 ]; 57 59 58 60 nativeBuildInputs = [ python3 git cmake ];
+16
pkgs/development/interpreters/cling/force-install-cling-targets.patch
··· 1 + diff --git a/tools/cling/cmake/modules/CMakeLists.txt b/tools/cling/cmake/modules/CMakeLists.txt 2 + --- a/tools/cling/cmake/modules/CMakeLists.txt 3 + +++ b/tools/cling/cmake/modules/CMakeLists.txt 4 + @@ -54,10 +54,8 @@ set(CLING_CONFIG_EXPORTS_FILE) 5 + 6 + if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) 7 + get_property(cling_has_exports GLOBAL PROPERTY CLING_HAS_EXPORTS) 8 + - if(cling_has_exports) 9 + - install(EXPORT ClingTargets DESTINATION ${CLING_INSTALL_PACKAGE_DIR} 10 + - COMPONENT cling-cmake-exports) 11 + - endif() 12 + + install(EXPORT ClingTargets DESTINATION ${CLING_INSTALL_PACKAGE_DIR} 13 + + COMPONENT cling-cmake-exports) 14 + 15 + install(FILES 16 + ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClingConfig.cmake