mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00

* Adding tests for CMP0118 being unset (aka set to `WARN`). * Adjusting the (unrelated) RunCMake.CMP0026 test to set CMP0118 to `NEW`, * Adjusting the (unrelated) RunCMake.Ninja test to set CMP0118 to `OLD`. * Adjusting the (unrelated) RunCMake.FileAPI test to set CMP0118 to `OLD`. Note: Setting CMP0118 to `NEW` and modifying the `GENERATED` property with `set_property` or `set_source_files_properties` will currently NOT set that property because the implementation is still to come.
7 lines
171 B
CMake
7 lines
171 B
CMake
cmake_policy(SET CMP0118 NEW)
|
|
enable_language(CXX)
|
|
|
|
add_library(foo OBJECT empty.cpp)
|
|
add_executable(bar $<TARGET_OBJECTS:foo>)
|
|
get_target_property(location bar LOCATION)
|