forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brute Force Check of ACE Required C++ Std in CMake
Since OpenDDS#4487, CMake requires knowledge of the minimum C++ standard of ACE. Before it used the ACE version to assume it, but the required standard changed in ACE to C++17. To support this correctly in CMake, we could do a version check, but master has currently the same version as the last ACE7 release. This changes it to try to compile against `ace/Global_Macros.h` like how we currently check the compiler default. This will allow us to get any standard ACE requires as long it's a standard we're aware of. We will not need this after OpenDDS#4578, because CMake can directly tell us what ACE/TAO requires. This change still doesn't cover a case like ACE/TAO 7.1.4, where ACE/TAO was compiled with something other the compiler default or the minimum standard of ACE. CMake can't detect that, so that requires manually setting the standard in either CMake and/or the ACE/TAO build so they match.
- Loading branch information
1 parent
62ad206
commit 4485a1e
Showing
4 changed files
with
71 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include <ace/Global_Macros.h> | ||
int main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.. news-prs: 4618 | ||
.. news-start-section: Platform Support and Dependencies | ||
- Fix cases where the CMake support fails when using the ACE/TAO master branch because it now requires C++17. | ||
.. news-end-section. news-end-section |