-
Notifications
You must be signed in to change notification settings - Fork 235
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
Build ASPECT in 'release mode only' causes external plugins to not compile #6017
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something is not right with our cmake setup for plugins and the interaction with the different build types for ASPECT.
If I build ASPECT in release mode only I can no longer compile external plugins that try to link to that ASPECT build folder. I see the following error message (path shortened for readability):
If I set up ASPECT in Debug or DebugRelease mode (just running cmake is enough, actually building not required) everything works as expected.
For my problem: When I run
make -n
I see that the compile/include flags are not set (only showing relevant line):I have been poking around in here and to me it looks like we create the release target of the plugin with some dependency on the regular target. But the regular target seems to be set up as well, but does not get assigned any flags.
I have found a workaround: If I run
make finite_strain.release
everything compiles, butmake
creates the error above. That looks to me like the build is trying to build the targetfinite_strain
(which is set up in my CMakeLists) as well, but that is not set up correctly by the plugin macro.Files to reproduce with an ASPECT build folder that is only set to RELEASE build type:
CMakeLists.txt
finite_strain.cc.txt
Do we need to modify the plugin macro or the CMakeLists.txt?
The text was updated successfully, but these errors were encountered: