diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2024-02-02 00:11:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-01 23:11:31 -0600 |
| commit | 41c293361953f177263a70b0d41b48eba111fe09 (patch) | |
| tree | d3b180da19a62a7f6372bb337e71147df263cea1 /CMake | |
| parent | aff9f40933c751277a07839f78d53b0780362bff (diff) | |
sccache for windows builds (#3385)
* cache vcpkg on windows ci
* try sccache as variant
* missed a spot
* see if we're checking here
* does this do it?
* trying to make minimal changes and have this work
* hopefully these z7s do something
* we were almost at the max already bump to double
* Apply suggestions from code review
* sc
* latest from soh-macready branch of otrexporter
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/DefaultCXX.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMake/DefaultCXX.cmake b/CMake/DefaultCXX.cmake index e87721511..6ed89d9e0 100644 --- a/CMake/DefaultCXX.cmake +++ b/CMake/DefaultCXX.cmake @@ -8,5 +8,9 @@ if(MSVC) set_target_properties("${PROPS_TARGET}" PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
set_config_specific_property("DEFAULT_CXX_EXCEPTION_HANDLING" "/EHsc")
- set_config_specific_property("DEFAULT_CXX_DEBUG_INFORMATION_FORMAT" "/Zi")
+ if (CMAKE_C_COMPILER_LAUNCHER MATCHES "ccache|sccache")
+ set_config_specific_property("DEFAULT_CXX_DEBUG_INFORMATION_FORMAT" "/Z7")
+ else()
+ set_config_specific_property("DEFAULT_CXX_DEBUG_INFORMATION_FORMAT" "/Zi")
+ endif()
endif()
\ No newline at end of file |
