mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
CMake: use /Z7 instead of /Zi with MSVC to get sccache to work
Signed-off-by: Be <be@mixxx.org>
This commit is contained in:
parent
c98af14ce4
commit
5b53ed9a50
@ -355,6 +355,18 @@ elseif( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
|
|||||||
if( NOT IS_64BIT )
|
if( NOT IS_64BIT )
|
||||||
set( SSE_FLAG "/arch:SSE2" )
|
set( SSE_FLAG "/arch:SSE2" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# required for sccache
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
string(REPLACE "/Zi" "/Z7" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||||
|
string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
|
||||||
|
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
|
string(REPLACE "/Zi" "/Z7" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
|
||||||
|
string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
||||||
|
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
||||||
|
string(REPLACE "/Zi" "/Z7" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
||||||
|
string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_include_files( "float.h;stdarg.h;stdlib.h;string.h" STDC_HEADERS )
|
check_include_files( "float.h;stdarg.h;stdlib.h;string.h" STDC_HEADERS )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user