Skip to content

Commit

Permalink
Add BDM_CXXMODULES variable to track if BDM was built with cxxmodules
Browse files Browse the repository at this point in the history
  • Loading branch information
imorlxs committed Dec 11, 2024
1 parent 7a2d6b3 commit 1f79202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/BioDynaMo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function(build_shared_library TARGET)
else()
set(BDM_OUT_OF_SRC_ARG --bdm-source ${CMAKE_SOURCE_DIR})
endif()
if (runtime_cxxmodules)
if (BDM_CXXMODULES)
set(BDM_CXX_MODULES_ARG "--cxxmodules")
endif()
add_custom_command(OUTPUT "${BDM_DICT_FILE}"
Expand Down
1 change: 1 addition & 0 deletions cmake/UseBioDynaMo.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ if(UNIX AND NOT APPLE)
endif()

set(BDM_OUT_OF_SOURCE true)
set(BDM_MODULES @runtime_cxxmodules@)

if(real_t)
message(STATUS "BioDynaMo real_t set to: ${real_t}")
Expand Down

0 comments on commit 1f79202

Please sign in to comment.