yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
44dc5ea20
master
1# Make sure that shared debug info doesn't intefere with caching 2# See the sccache readme 3if ( 4 MSVC 5AND ( NOT DEFINED CMAKE_MSVC_DEBUG_INFORMATION_FORMAT) 6AND ( 7 CMAKE_C_COMPILER_LAUNCHERMATCHES "ccache" 8OR CMAKE_CXX_COMPILER_LAUNCHERMATCHES "ccache" 9) 10) 11message ( 12NOTICE 13"Setting embedded debug info for MSVC to work around (s)ccache's inability to cache shared debug info files" 14) 15cmake_minimum_required ( VERSION 3.25 ) 16cmake_policy ( GET CMP0141 cmp0141 ) 17if ( NOT cmp0141STREQUAL "NEW" ) 18message ( WARNING "Need CMake policy 0141 enabled" ) 19endif () 20set ( CMAKE_MSVC_DEBUG_INFORMATION_FORMAT 21" $ < $ <CONFIG:Debug,RelWithDebInfo>:Embedded>" 22) 23endif ()