Comments (2)
I see, so this issue is outside the scope of CPM.cmake and can only be fixed on the dependency's side.
from cpm.cmake.
I agree that it would be a great to include directories from external dependencies as SYSTEM
to avoid warnings that we have no control over. However afaik, I don't think CPM.cmake can do anything here, as the system keyword need to be used inside each library's CMakeLists.txt
whenever using target_include_directories
on the exported targets.
As this is usually undesirable for library maintainers, this leaves only the option of either ignoring the warnings around the bad #include
s:
// save compiler switches
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
// bad headers with problem goes here
#include <library/with/warnings>
// restore compiler switches
#pragma GCC diagnostic pop
Or, of course, you could ask the library maintainer to fix the code that causes the warnings or you fix them in a fork yourself and share the fix in a PR to the main repo.
from cpm.cmake.
Related Issues (20)
- wxWidgets example HOT 2
- Errors while running CTest a second time
- CPMFindPackage failed to find package installed by apt on Debian HOT 4
- how to pass cmake configure param HOT 1
- CPM call to FetchContent_Populate freezes build sequence HOT 2
- parsing error HOT 9
- CPM on monorepos HOT 1
- Pick up version from tarball name NAME-VERSION.tar.xz
- add_library() isn't aware of h-file location like add_executable() HOT 1
- GIT_SHALLOW still downloads the whole repo HOT 1
- CPM in CMake scripts: define_property command is not scriptable
- CPM_SOURCE_CACHE is ignored if SOURCE_DIR is set
- Can you help with compiling `libtins` library using CPM?
- cpm git fetch is occasionally empty HOT 1
- Cache: failure when the download is aborted and the download dir is empty HOT 3
- Add support for ExternalProject_Add() / libjpeg HOT 3
- Feature Request: Short syntax in long syntax. HOT 1
- Don't unconditionally download in get_cpm.cmake HOT 5
- Add example for using the `libuv` repository HOT 2
- CPM name of the package MUST NOT be exported target name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpm.cmake.