Skip to content

Commit 270bd1f

Browse files
Fix MacOS cmake build instructions (KhronosGroup#1363)
Co-authored-by: Wasim Abbas <abbas.wasim@gmail.com>
1 parent 2a3a2ac commit 270bd1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/build.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,15 @@ source /PATH/TO/VULKAN/SDK/setup-env.sh
271271
`Step 1.` The following command will generate the project
272272

273273
----
274-
cmake -G Xcode -Bbuild/mac-xcode -DCMAKE_BUILD_TYPE=Release
274+
cmake -G Xcode -Bbuild/mac-xcode -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_SYSROOT=macosx
275275
----
276276

277277
Open the *vulkan_samples* Xcode project inside build/mac-xcode and build with command-B. To run Vulkan Samples, use Xcode's edit-scheme selection and set the arguments to --help. Click the "Play" button and you should see the help output in the terminal. For convenience, the default setting is to run the hello_triangle sample; just edit that to your desired sample to run.
278278

279279
Alternatively, for command line builds use the steps below:
280280

281281
----
282-
cmake -Bbuild/mac -DCMAKE_BUILD_TYPE=Release
282+
cmake -Bbuild/mac -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_SYSROOT=macosx
283283
----
284284

285285
`Step 2.` Build the project

0 commit comments

Comments
 (0)