Files
window-starter/scripts/cmake/precompiled.cmake
William McVicar 01457e7e5b Initial commit
2023-04-28 09:00:18 +02:00

8 lines
277 B
CMake

include_guard()
function( target_precompiled_header _target _header _source )
if( MSVC )
set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS "/Yu${_header}" )
set_source_files_properties( ${_source} PROPERTIES COMPILE_FLAGS "/Yc${_header}" )
endif()
endfunction()