Files
CMake/Tests/RunCMake/OBJECT_NAME/Executable.cmake
Ben Boeckel 9ef99353cb prop_sf/OBJECT_NAME: support custom object names
Projects which ship object files as artifacts may want to control the
object names as much as possible. Support setting explicit object names
as source file properties to support such use cases.
2025-09-09 09:58:07 -04:00

5 lines
160 B
CMake

set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
add_executable(exe main.c lib.c)
set_property(SOURCE main.c PROPERTY OBJECT_NAME "exe_main.c")