mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
This use case was fixed by commit a7fb4bc475 (Xcode: Set build product
locations using CONFIGURATION_BUILD_DIR, 2022-09-28). Add a test to
verify the fix.
Fixes: #23970
13 lines
276 B
CMake
13 lines
276 B
CMake
enable_language(CXX)
|
|
|
|
set_property(GLOBAL PROPERTY XCODE_EMIT_EFFECTIVE_PLATFORM_NAME OFF)
|
|
|
|
set(CMAKE_MACOSX_BUNDLE true)
|
|
|
|
add_library(library STATIC foo.cpp)
|
|
|
|
add_executable(main main.cpp)
|
|
target_link_libraries(main library)
|
|
|
|
install(TARGETS library ARCHIVE DESTINATION lib)
|