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

Set Minimum C++ Standard on CMake Targets #4481

Merged
merged 1 commit into from Feb 22, 2024

Conversation

iguessthislldo
Copy link
Member

To fix #4478

@jrw972 jrw972 merged commit e27957c into OpenDDS:master Feb 22, 2024
130 checks passed
iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this pull request Feb 23, 2024
This continues the work started in
OpenDDS#4481 and tries to correctly
handle C++ standards in all CMake support. Previously the CMake support
was agnostic towards C++ standards, but this meant that building with
CMake didn't have a way of differentiating C++ standards. Now we can
detect C++ standard support and should be able to build ACE accordingly.

Also:
- Added `OPENDDS_CXX_STD_YEAR` CMake variable for easy checking of C++
  standard support.
- In addition to passing `CMAKE_CXX_STANDARD` to the ACE/TAO MPC build,
  it will also now pass `CMAKE_CXX_COMPILER`.
- Removed need for `cmake/detect_ace.pl`
- Some of the changes originally in OpenDDS#4374
  - MPC location message will now say when it wasn't set.
  - Split adding of tests between different directories.
iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this pull request Mar 27, 2024
This continues the work started in
OpenDDS#4481 and tries to correctly
handle C++ standards in all CMake support. Previously the CMake support
was agnostic towards C++ standards, but this meant that building with
CMake didn't have a way of differentiating C++ standards. Now we can
detect C++ standard support and should be able to build ACE/TAO
accordingly.

Also:
- Added `OPENDDS_CXX_STD_YEAR` CMake variable for easy checking of C++
  standard support.
- Passing C++ standard to the ACE/TAO MPC builds and
  `CMAKE_CXX_COMPILER` for gnuace builds.
- Removed need for `cmake/detect_ace.pl`
- Some of the changes originally in OpenDDS#4374
  - MPC location message will now say when it wasn't set.
  - Split adding of tests between different directories.
iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this pull request Mar 27, 2024
This continues the work started in
OpenDDS#4481 and tries to correctly
handle C++ standards in all CMake support. Previously the CMake support
was agnostic towards C++ standards, but this meant that building with
CMake didn't have a way of differentiating C++ standards. Now we can
detect C++ standard support and should be able to build ACE/TAO
accordingly.

Also:
- Added `OPENDDS_CXX_STD_YEAR` CMake variable for easy checking of C++
  standard support.
- Passing C++ standard to the ACE/TAO MPC builds and
  `CMAKE_CXX_COMPILER` for gnuace builds.
- Removed need for `cmake/detect_ace.pl`
- Some of the changes originally in OpenDDS#4374
  - MPC location message will now say when it wasn't set.
  - Split adding of tests between different directories.
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.

cmake build should require C++14 if using ACE7 on MacOS
2 participants