Comments (7)
The example in the readme is updated. Now, the FEATURE_TESTS
option handles the sanitizer flag exports.
from project_options.
This is impossible in CMake. The interface libraries cannot have private dependencies.
from project_options.
This is impossible in CMake. The interface libraries cannot have private dependencies.
I know, but if you install this interface, it is also impossible to use this header only lib without project_options
!
from project_options.
We should also install project_options for header-only libraries.
from project_options.
Well, I don't think we actually need this. package_project
already generates the project_options
and project_warnings
targets:
Running test_install
, then looking at myprojTargets.cmake
:
from project_options.
If I use a header only lib i.e. boost::asio I will not import there development setting like:
--coverage
-Wpedantic -Werror
... or
the worst case: g++ specific warnings, if I want to use clang++
I created this issue to show it is a wrong usage of project_options
to export the project_options
for every installed lib, independent of it is an interface
or a normal lib!
from project_options.
The config files generated by CMake are not portable! They have absolute paths in them, and they are generated based on the options you pass to project_options
.
To avoid having test/sanitizer-related flags in the generated config, you should use FEATURE_TESTS
flag.
I will add this to the readme if it is not clear.
from project_options.
Related Issues (20)
- update to stable tagged version of WindowsToolchain HOT 6
- cmake policy warnings HOT 1
- Macro for installing conan HOT 3
- Doxygen options overwrite HOT 1
- Warning is valid for C++/ObjC++ but not for C
- Cross-compiling HOT 10
- conancenter remote name is not conan's default
- After 0.26, cmake configuration has fail with 'Unable identify compiler architecture for CMAKE_SYSTEM_PROCESSOR' HOT 16
- `target_link_system_directories` dosen't support generator expressions that have semicolons
- Conan server errors inside CI HOT 1
- Support Conan 2 HOT 9
- When compiling with LTO compiler warnings should be passed to the linker. HOT 2
- Add an option to enable GCC 10+ analyzer HOT 2
- Add utility function to check if sanitizers are supported
- dynamic_project_options:
- target_find_dependencies with COMPONENT HOT 2
- target_find_dependencies and pkg-config HOT 10
- Using clang-cl with ENABLE_COVERAGE lead to 'argument unused during compilation: '-O0'' HOT 1
- Bincrafter's Conan repo down HOT 5
- `target_link_system_libraries` might not work with unqouted inputs 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 project_options.