[cmake-developers] conditionals in generator expressions
Stephen Kelly
steveire at gmail.com
Sat May 26 06:20:46 EDT 2012
Stephen Kelly wrote:
> if ("${CMAKE_C_COMPILER_ID} ${CMAKE_CXX_COMPILER_ID}" MATCHES SunPro)
> list(APPEND additional_INCLUDE_DIRECTORIES "/bar/some_sunpro_hack")
> endif ()
>
Oops. Obviously I should have has a
set_property(TARGET ${_target}
APPEND PROPERTY
INCLUDE_DIRECTORIES ${additional_INCLUDE_DIRECTORIES}
)
or
set_property(TARGET ${_target}
PROPERTY
INCLUDE_DIRECTORIES ${additional_INCLUDE_DIRECTORIES}
)
somewhere in the list of commands there.
Thanks,
Steve.
More information about the cmake-developers
mailing list