mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
External tools may create a `.xcworkspace` directory next to the `.xcodeproj` directory that CMake generates. If a workspace exists, drive the build through it instead. Closes: #26958 Co-authored-by: Brad King <brad.king@kitware.com>
9 lines
281 B
CMake
9 lines
281 B
CMake
enable_language(C)
|
|
add_executable(main main.c)
|
|
file(WRITE "${CMAKE_BINARY_DIR}/XcodeWorkspace.xcworkspace/contents.xcworkspacedata" [[
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Workspace version = "1.0">
|
|
<FileRef location = "container:XcodeWorkspace.xcodeproj"/>
|
|
</Workspace>
|
|
]])
|