Skip to content

Commit 90dad69

Browse files
authored
Use cmake --build . instead of make
1 parent a8025b7 commit 90dad69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

advanced_source/cpp_export.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ structure:
228228
.. tip::
229229
On Windows, debug and release builds are not ABI-compatible. If you plan to
230230
build your project in debug mode, please try the debug version of LibTorch.
231+
Also, make sure you specify the correct configuration in the `cmake --build .`
232+
line below.
231233

232234
The last step is building the application. For this, assume our example
233235
directory is laid out like this:
@@ -246,7 +248,7 @@ We can now run the following commands to build the application from within the
246248
mkdir build
247249
cd build
248250
cmake -DCMAKE_PREFIX_PATH=/path/to/libtorch ..
249-
make
251+
cmake --build . --config Release
250252
251253
where ``/path/to/libtorch`` should be the full path to the unzipped LibTorch
252254
distribution. If all goes well, it will look something like this:

0 commit comments

Comments
 (0)