Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE_BUILD_TYPE is not propagated to the subprojects of the superbuild #1776

Open
Nicogene opened this issue Dec 18, 2024 · 1 comment
Open

Comments

@Nicogene
Copy link
Member

@marcoaccame and I tried to change CMAKE_BUILD_TYPE to Debug from the "root" build of the superbuild, either via ccmake and via cmake -DCMAKE_BUILD_TYPE=Debug, but all the subprojects remained compiled in Release. It seems that CMAKE_BUILD_TYPE is not propagated properly to the subprojects.

We tried in an existing build, we didn't try if this is a problem that occurs also from a fresh build

@traversaro
Copy link
Member

Indeed the option is set just in the initial cache, not passed everytime: https://github.com/robotology/ycm-cmake-modules/blob/69fbc71bf7e2a205742507b4ed0750646d22381c/modules/YCMEPHelper.cmake#L292 .

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

No branches or pull requests

2 participants