mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
9ef99353cb
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.
8 lines
255 B
CMake
8 lines
255 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
|
|
|
|
add_library(objlib OBJECT lib.c lib2.c)
|
|
set_property(SOURCE lib.c lib2.c PROPERTY OBJECT_NAME "objlib_lib.c")
|
|
|
|
add_executable(usefuncs test.c)
|
|
target_link_libraries(usefuncs PRIVATE objlib)
|