From 540bab0a6e2396f832cfc8207f3fdab08f86b26f Mon Sep 17 00:00:00 2001 From: Isaac Morales Date: Tue, 17 Sep 2024 20:01:42 +0200 Subject: [PATCH] Add -modulemapfile flag --- cmake/BioDynaMo.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/BioDynaMo.cmake b/cmake/BioDynaMo.cmake index b2d1f1bb7..47ceade8d 100644 --- a/cmake/BioDynaMo.cmake +++ b/cmake/BioDynaMo.cmake @@ -118,7 +118,7 @@ function(build_shared_library TARGET) if (runtime_cxxmodules) - set(CLING_MODULEMAP_FILES "$ENV{${CMAKE_BINARY_DIR}/include/module.modulemap}") + set(MODULEMAP "--moduleMapFile=${CMAKE_BINARY_DIR}/include/module.modulemap") endif() if (NOT ${TARGET} STREQUAL "biodynamo")