Skip to content

Commit e0c9fe1

Browse files
authored
[docs] Update ${prefix}/include to say ${includedir} (#1216)
1 parent b28137f commit e0c9fe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/troubleshooting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ Sometimes the build system can't find the header files of the dependencies, even
3030
For example, if the project uses Autotools you can set the `CPPFLAGS` environment variable:
3131

3232
```sh
33-
export CPPFLAGS="-I${prefix}/include"
33+
export CPPFLAGS="-I${includedir}"
3434
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
3535
make -j${nprocs}
3636
make install
3737
```
3838

3939
See for example [Cairo](https://github.com/JuliaPackaging/Yggdrasil/blob/9a1ae803823e0dba7628bc71ff794d0c79e39c95/C/Cairo/build_tarballs.jl#L16-L17) build script.
4040

41-
If instead the project uses CMake you'll need to use a different environment variable, since CMake ignores `CPPFLAGS`. If the compiler that can't find the header file is the C one, you need to add the path to the `CFLAGS` variable (e.g., `CFLAGS="-I${prefix}/include"`), in case it's the C++ one you have to set the `CXXFLAGS` variable (e.g., `CXXFLAGS="-I${prefix}/include"`).
41+
If instead the project uses CMake you'll need to use a different environment variable, since CMake ignores `CPPFLAGS`. If the compiler that can't find the header file is the C one, you need to add the path to the `CFLAGS` variable (e.g., `CFLAGS="-I${includedir}"`), in case it's the C++ one you have to set the `CXXFLAGS` variable (e.g., `CXXFLAGS="-I${includedir}"`).
4242

4343
### Libraries of the dependencies can't be found
4444

0 commit comments

Comments
 (0)