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

Added a option for using statically built opendds. #14

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

doug1234
Copy link
Contributor

@doug1234 doug1234 commented Oct 3, 2023

No description provided.

CMakeLists.txt Outdated
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.20)

option(OpenDDWStatic "OpenDDWStatic" OFF) #Build openddw to be compatible with a static build of opendds
Copy link
Member

Choose a reason for hiding this comment

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

Instead of setting this, you could use OPENDDS_STATIC.

Copy link
Contributor Author

@doug1234 doug1234 Oct 5, 2023

Choose a reason for hiding this comment

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

Is there a way to get this define from a complied opendds library or are you suggesting I just name the option consistently?

Copy link
Member

Choose a reason for hiding this comment

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

The former, I think. OPENDDS_STATIC is a CMake variable, but if by define you mean a C predecessor macro, then you could use ACE_AS_STATIC_LIBS.

@doug1234
Copy link
Contributor Author

doug1234 commented Oct 9, 2023

Using ACE_AS_STATIC_LIBS was a great idea! I changed it to that. Hopefully this should be good now. I also have a change on opendds-monitor to take a look at.

@doug1234 doug1234 changed the title Added a option for using statically build opendds. Added a option for using statically built opendds. Oct 9, 2023
@iguessthislldo iguessthislldo merged commit fb783cc into OpenDDS:master Oct 9, 2023
12 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.

2 participants