Skip to content

Conversation

@Teemperor
Copy link
Contributor

This happened when we moved the cxxmodules code before the add_subdirectory
which where responsible for filling the variable that contains the generated
contents. With this patch we wait with writing the variable contents to the
file until the variable actually contains the whole modulemap.

get_property(__modulemap_extra_content GLOBAL PROPERTY ROOT_CXXMODULES_EXTRA_MODULEMAP_CONTENT)
string(REPLACE ";" "" __modulemap_extra_content "${__modulemap_extra_content}")
file(WRITE "${CMAKE_BINARY_DIR}/include/module.modulemap.extra" "${__modulemap_extra_content}")

Copy link
Member

Choose a reason for hiding this comment

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

Could you remove the extra new line?

This happened when we moved the cxxmodules code before the add_subdirectory
which where responsible for filling the variable that contains the generated
contents. With this patch we wait with writing the variable contents to the
file until the variable actually contains the whole modulemap.
@vgvassilev
Copy link
Member

@phsft-bot build just on slc6/clang_gcc62 with flags -Dcxxmodules=On

@martinmine
Copy link
Contributor

@phsft-bot build just on slc6/clang_gcc62 with flags -Dcxxmodules=On
@vgvassilev had to clear the build queue as something screwed up and made the PR by @xvallspl get built 8 times

@phsft-bot
Copy link

Starting build on slc6/clang_gcc62 and CMake flags -Dccache=ON -Dimt=OFF -Dcxxmodules=On\r\n@vgvassilev

@vgvassilev
Copy link
Member

LGTM, despite the failures.

@vgvassilev vgvassilev merged commit 5902447 into root-project:master Mar 30, 2017
gganis pushed a commit to gganis/root that referenced this pull request Apr 3, 2017
…ject#470)

This happened when we moved the cxxmodules code before the add_subdirectory
which where responsible for filling the variable that contains the generated
contents. With this patch we wait with writing the variable contents to the
file until the variable actually contains the whole modulemap.
@Teemperor Teemperor deleted the fixEmptyModulemap branch December 19, 2017 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants