Skip to content

Conversation

@imorlxs
Copy link
Member

@imorlxs imorlxs commented Aug 14, 2024

This PR enables C++ Modules in BioDynaMo.
IMPORTANT: Notebooks don't work with this PR
Please don't merge it for now

@imorlxs imorlxs marked this pull request as draft August 14, 2024 10:10
@imorlxs imorlxs force-pushed the cppmodules branch 2 times, most recently from 8fb2c21 to 5de61fe Compare August 23, 2024 09:39
@sonarqubecloud
Copy link

set(NO_MODULE "NO_CXXMODULE")
endif()

if (NOT ${TARGET} STREQUAL "biodynamo")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if can be removed as is not longer necessary

add_custom_command(TARGET ${TARGET}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${DICT_FILE}_rdict.pcm ${CMAKE_INSTALL_LIBDIR})
# add_custom_command(TARGET ${TARGET}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this code is not longer necessary, as ROOT_GENERATE_DICTIONARY already generates the .pcm in CMAKE_INSTALL_LIBDIR

set(LAUNCHER ${CMAKE_BINARY_DIR}/launcher.sh)
endif()

#----------------------------------------------------------------------------
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is now in RootMacros.cmake, imported from the root source code.

@imorlxs imorlxs marked this pull request as ready for review December 11, 2024 01:28
@imorlxs
Copy link
Member Author

imorlxs commented Dec 11, 2024

Could you review the code? @LukasBreitwieser @FonsRademakers @TobiasDuswald Feel free to request as many changes as needed. I want to know how I'm doing, and try to improve my code.
Thank you!

P.D.: Also, if I need to clean the commit history, or any another change, please tell me :)
Out-of-tree builds work now, but some demos doesn't work due to some template classes messing with the modules.

@vasvav vasvav added the on-hold on hold, not actively developed label Mar 20, 2025
TobiasDuswald pushed a commit that referenced this pull request Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

on-hold on hold, not actively developed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants