mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 06:16:49 +00:00
506fda1cf0
The set of compile flags used for a target's C and C++ sources is based on the linker language. By default this is always the C++ flags if any C++ sources appear in the target, and otherwise the C flags. Therefore we can define the `COMPILE_LANGUAGE` generator expression in `INCLUDE_DIRECTORIES` to match the selected language. This is not exactly the same as for other generators, but is the best VS and Xcode can do. It is also sufficient for many use cases since the set of include directories for C and C++ is frequently similar but may be distinct from those for other languages like CUDA. Fixes: #17435 |
||
---|---|---|
.. | ||
add_compile_options | ||
target_compile_definitions | ||
target_compile_features | ||
target_compile_options | ||
target_include_directories | ||
target_link_libraries |