Skip to content

Commit

Permalink
fixup! cmake: Add ccache support
Browse files Browse the repository at this point in the history
Avoid using `CMAKE_VS_GLOBALS` variable.
  • Loading branch information
hebasto committed Mar 20, 2024
1 parent ce0d749 commit 617f665
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/optional.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ if(CCACHE)
# See https://github.com/ccache/ccache/wiki/MS-Visual-Studio
set(CCACHE ON)
file(COPY_FILE ${CCACHE_COMMAND} ${CMAKE_BINARY_DIR}/cl.exe ONLY_IF_DIFFERENT)
list(APPEND CMAKE_VS_GLOBALS
"CLToolExe=cl.exe"
"CLToolPath=${CMAKE_BINARY_DIR}"
"DebugInformationFormat=OldStyle"
set_target_properties(core_base_interface PROPERTIES
VS_GLOBAL_CLToolExe "cl.exe"
VS_GLOBAL_CLToolPath "${CMAKE_BINARY_DIR}"
VS_GLOBAL_DebugInformationFormat "OldStyle"
)
set(CMAKE_VS_NO_COMPILE_BATCHING ON)
# By default Visual Studio generators will use /Zi which is not compatible
Expand Down

0 comments on commit 617f665

Please sign in to comment.