Support platforms in which qwt headers are not installed in a qwt directory #2887
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change permits to fix #2886 without touching at all the CMake code related to QWT (that may be error prone in my experience), and automatically falling back to the usual qwt include style if either the
__has_include
functionality is not available, orqwt.h
is not available. The__has_include
code has been added in line with what described in https://gcc.gnu.org/onlinedocs/gcc-10.1.0/cpp/_005f_005fhas_005finclude.html, to ensure that it works fine on any < C++17 compiler, even if the use of C++17 should be enforces by the use of the ignition libraries that use C++17 .With this change, it is possible to build Gazebo
gazebo11
branch on conda (starting from a minimal conda distro such as Miniconda or Miniforge) on Windows by simply running: