mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add optional support for ccache for MSVC (#9667)
This commit is contained in:
parent
14e06ac4f9
commit
3354630726
@ -45,6 +45,20 @@ set(CMAKE_CXX_STANDARD 17)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
|
# ##############################################################################
|
||||||
|
# OPTIONAL: Configuration of ccache for MSVC
|
||||||
|
# ##############################################################################
|
||||||
|
find_program(ccache_exe ccache)
|
||||||
|
if(ccache_exe)
|
||||||
|
file(COPY_FILE ${ccache_exe} ${CMAKE_BINARY_DIR}/cl.exe ONLY_IF_DIFFERENT)
|
||||||
|
|
||||||
|
set(CMAKE_VS_GLOBALS
|
||||||
|
"CLToolExe=cl.exe" "CLToolPath=${CMAKE_BINARY_DIR}"
|
||||||
|
"TrackFileAccess=false" "UseMultiToolTask=true"
|
||||||
|
"DebugInformationFormat=OldStyle"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
# Setup the main platform defines
|
# Setup the main platform defines
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user