mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 01:09:30 -05:00
Genex: Allow COMPILE_LANGUAGE when processing include directories.
Issue an error if this is encountered by an IDE generator.
This commit is contained in:
@@ -121,7 +121,8 @@ Available logical expressions are:
|
||||
target_link_libraries(myapp myapp_c myapp_cxx)
|
||||
|
||||
The ``Makefile`` and ``Ninja`` based generators can also use this
|
||||
expression to specify compile-language specific compile definitions:
|
||||
expression to specify compile-language specific compile definitions
|
||||
and include directories:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
@@ -129,6 +130,9 @@ Available logical expressions are:
|
||||
target_compile_definitions(myapp
|
||||
PRIVATE $<$<COMPILE_LANGUAGE:CXX>:COMPILING_CXX>
|
||||
)
|
||||
target_include_directories(myapp
|
||||
PRIVATE $<$<COMPILE_LANGUAGE:CXX>:/opt/foo/cxx_headers>
|
||||
)
|
||||
|
||||
Informational Expressions
|
||||
=========================
|
||||
|
||||
Reference in New Issue
Block a user