Skip to content

Commit 3b19db4

Browse files
committed
BUILDING.md: Specify install prefix for MinGW/Un*x
The default install prefix when building under MinGW is chosen based on the needs of the official build system, which uses MSYS2 to generate Windows installer packages that install under c:\libjpeg-turbo-gcc[64]. However, attempting to configure the build with that install prefix on a Un*x machine causes a CMake error. Fixes #641
1 parent 27f4ff8 commit 3b19db4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

BUILDING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,13 @@ located (usually **/usr/bin**.) Next, execute the following commands:
372372

373373
cd {build_directory}
374374
cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
375+
-DCMAKE_INSTALL_PREFIX={install_path} \
375376
[additional CMake flags] {source_directory}
376377
make
377378

379+
*{install\_path}* is the path under which the libjpeg-turbo binaries should be
380+
installed.
381+
378382

379383
### 64-bit MinGW Build on Un*x (including Mac and Cygwin)
380384

@@ -391,9 +395,13 @@ located (usually **/usr/bin**.) Next, execute the following commands:
391395

392396
cd {build_directory}
393397
cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \
398+
-DCMAKE_INSTALL_PREFIX={install_path} \
394399
[additional CMake flags] {source_directory}
395400
make
396401

402+
*{install\_path}* is the path under which the libjpeg-turbo binaries should be
403+
installed.
404+
397405

398406
Building libjpeg-turbo for iOS
399407
------------------------------

0 commit comments

Comments
 (0)