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.
Fix CMake iShapes and Comply with CMP0165
Fixes OpenDDS#4849 Changes from OpenDDS#4487 require C++ language to be enabled in CMake, which it basically is all the time through `project(... LANGUAGES CXX)` expect in ishapes. There `find_project(OpenDDS)` was used to get the OpenDDS version before `project` enabled C++ which results in `try_compile` failing fatally. These changes both make sure C and C++ are enabled early in CMake initialization and switch the `project` and `find_package` to comply with https://cmake.org/cmake/help/latest/policy/CMP0165.html#policy:CMP0165 Also changed the C++ standard checks to include the min C++ standard (currently C++98/03), so it would never mistake a broken compiler setup with a compiler that only supports the min standard.
- Loading branch information
1 parent
3d6572d
commit 2618c28
Showing
4 changed files
with
24 additions
and
9 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
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