mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 12:40:25 +00:00
More sensible conditions
This commit is contained in:
parent
6cf0b9990d
commit
7ec723e9b9
1 changed files with 6 additions and 4 deletions
|
@ -528,10 +528,12 @@ if ! [ -z $UNITY_BUILD ]; then
|
||||||
add_cmake_opts "-DOPENMW_UNITY_BUILD=True"
|
add_cmake_opts "-DOPENMW_UNITY_BUILD=True"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$USE_CCACHE" ] && ([ -n "$NMAKE" ] || [ -n "$NINJA" ]); then
|
if [ -n "$USE_CCACHE" ]; then
|
||||||
add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DPRECOMPILE_HEADERS_WITH_MSVC=OFF"
|
if [ -n "$NMAKE" ] || [ -n "$NINJA" ]; then
|
||||||
elif [ -n "$USE_CCACHE" ]; then
|
add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DPRECOMPILE_HEADERS_WITH_MSVC=OFF"
|
||||||
echo "Ignoring -C (CCache) as it is incompatible with Visual Studio CMake generators"
|
else
|
||||||
|
echo "Ignoring -C (CCache) as it is incompatible with Visual Studio CMake generators"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# turn on LTO by default
|
# turn on LTO by default
|
||||||
|
|
Loading…
Reference in a new issue