mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-19 21:50:39 -06:00
The existing cases all need to enable a language. Move this out of the `CMakeLists.txt` file and into the individual cases to make room for other cases that may not need this.
10 lines
367 B
CMake
10 lines
367 B
CMake
enable_language(CXX)
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
|
|
"int main(int, char **) { return 0; }\n")
|
|
|
|
add_executable(main "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
|
|
include_directories("$<TARGET_PROPERTY:NonExistent,INCLUDE_DIRECTORIES>")
|
|
|
|
# Suppress generator-specific targets that might pollute the stderr.
|
|
set(CMAKE_SUPPRESS_REGENERATION TRUE)
|