Create a `CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES` variable to specify system include directories for for `<LANG>` compiler command lines. This plays a role for include directories as the existing `CMAKE_<LANG>_STANDARD_LIBRARIES` variable does for link libraries.
6 lines
276 B
CMake
6 lines
276 B
CMake
# Normally this variable should be set by a platform information module or
|
|
# a toolchain file, but for purposes of this test we simply set it here.
|
|
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/StdDir)
|
|
|
|
add_executable(StandardIncludeDirectories main.c)
|