mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-22 14:41:05 -06:00
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.
3 lines
113 B
CMake
3 lines
113 B
CMake
add_library(objlib OBJECT lib.c)
|
|
set_property(SOURCE lib.c PROPERTY OBJECT_NAME "$<LINK_LANGUAGE>/objlib_lib.c")
|