Skip to content

Allow static standalone build - #44

Merged
aj463 merged 4 commits into
sandialabs:developfrom
CamelliaDPG:allow-static-standalone-build
Aug 20, 2026
Merged

Allow static standalone build#44
aj463 merged 4 commits into
sandialabs:developfrom
CamelliaDPG:allow-static-standalone-build

Conversation

@CamelliaDPG

Copy link
Copy Markdown
Contributor

For standalone ROL build, drop the hard-coded SHARED from the add_library line. Add a CMake option ROL_ENABLE_TEUCHOS_LITE_OBJECTS governing whether the Teuchos "Lite" libraries are added with ROL.

These features allow downstream projects to build against standalone ROL while also linking against the full Teuchos libraries, and to do so in a static build.

In particular, this is useful to FuSED OED.

…g cmake to honor BUILD_SHARED_LIBS setting.

Signed-off-by: Nate Roberts <nvrober@sandia.gov>
Signed-off-by: Nate Roberts <nvrober@sandia.gov>
Signed-off-by: Nate Roberts <nvrober@sandia.gov>
…duplicate symbol errors.

Signed-off-by: Nate Roberts <nvrober@sandia.gov>

@GrahamBenHarper GrahamBenHarper left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I double-checked it on my end, and it looks like it works. Thanks @CamelliaDPG!

@CamelliaDPG

Copy link
Copy Markdown
Contributor Author

Thanks, @GrahamBenHarper!

@GrahamBenHarper

Copy link
Copy Markdown
Collaborator

@aj463 does this look good to you as well?

@aj463

aj463 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Looks good to me too! We appreciate the help with this

@aj463
aj463 self-requested a review August 20, 2026 07:44
@aj463
aj463 merged commit 3bd1b24 into sandialabs:develop Aug 20, 2026
2 checks passed
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.

3 participants