From 1b0dee00ba73d1d166b3d895398ee712649430ac Mon Sep 17 00:00:00 2001 From: Isaac Morales Date: Tue, 27 Aug 2024 03:40:45 +0200 Subject: [PATCH] Changed path of module.modulemap --- cmake/RootMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/RootMacros.cmake b/cmake/RootMacros.cmake index 538a1f1ec..43e13edb8 100644 --- a/cmake/RootMacros.cmake +++ b/cmake/RootMacros.cmake @@ -844,7 +844,7 @@ function (ROOT_CXXMODULES_APPEND_TO_MODULEMAP library library_headers) # exposed via the main modulemap. This is exposed by setting the # ROOT_CXXMODULES_WRITE_TO_CURRENT_DIR. if (NOT "${CMAKE_PROJECT_NAME}" STREQUAL ROOT OR ROOT_CXXMODULES_WRITE_TO_CURRENT_DIR) - set(modulemap_output_file "${CMAKE_CURRENT_BINARY_DIR}/module.modulemap") + set(modulemap_output_file "${CMAKE_SOURCE_DIR}/src/module.modulemap") # It's possible that multiple modulemaps are needed in the current # directory and we need to merge them. As we don't want to have multiple