Skip to content

Commit 243edee

Browse files
authored
Update README.md with cmake instructions
1 parent 438588f commit 243edee

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,25 @@ This is the main repository for the source code for HIPRT.
1919
3. `git submodule update --init --recursive`
2020
4. `git lfs fetch` (To get resources for running performance tests)
2121

22-
   On Windows:
22+
Then, you can use either premake or cmake.
23+
24+
   On Windows with premake:
2325
   5. `.\tools\premake5\win\premake5.exe vs2022`
2426
   6. `Open build\hiprt.sln with Visual Studio 2022.`
2527

26-
   On Linux:
28+
   On Linux with premake:
2729
   5. `./tools/premake5/linux64/premake5 gmake`
2830
   6. `make -C build -j config=release_x64`
2931

32+
   Example with Cmake on Windows:
33+
   5. `mkdir build`
34+
   6. `cmake -DCMAKE_BUILD_TYPE=Release -DBITCODE=OFF -S . -B build`
35+
   7. `Open build\hiprt.sln with Visual Studio 2022.`
3036

37+
   Example with Cmake on Linux:
38+
   5. `mkdir build`
39+
   6. `cmake -DCMAKE_BUILD_TYPE=Release -DBITCODE=OFF -S . -B build`
40+
   7. `cmake --build build --config Release`
3141

3242
### Using Bitcode
3343
Add the option `--bitcode` to enable precompiled bitcode.

0 commit comments

Comments
 (0)