mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-09 01:16:40 +00:00
Make ccache viable for Windows Release builds
This commit is contained in:
parent
61d01f3b62
commit
72cf015401
1 changed files with 4 additions and 2 deletions
|
|
@ -528,8 +528,10 @@ if ! [ -z $UNITY_BUILD ]; then
|
||||||
add_cmake_opts "-DOPENMW_UNITY_BUILD=True"
|
add_cmake_opts "-DOPENMW_UNITY_BUILD=True"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -z $USE_CCACHE ]; then
|
if [ -n "$USE_CCACHE" ] && ([ -n "$NMAKE" ] || [ -n "$NINJA" ]); then
|
||||||
add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
|
add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DPRECOMPILE_HEADERS_WITH_MSVC=OFF"
|
||||||
|
elif [ -n "$USE_CCACHE" ]; then
|
||||||
|
echo "Ignoring -C (CCache) as it is incompatible with Visual Studio CMake generators"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# turn on LTO by default
|
# turn on LTO by default
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue