Skip to content

Commit

Permalink
Avoid warning when using buildcache on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj authored Feb 11, 2025
1 parent d76f67f commit e73cd62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ if(buildcache_program)

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Z7")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Z7")

# Add this to avoid the warning: overriding '/Zi' with '/Z7'
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT
"$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>"
)
endif()
else()
message(STATUS "No buildcache found")
Expand Down

0 comments on commit e73cd62

Please sign in to comment.