mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 13:02:33 +01:00
Modified ConfigureDebugging to work without external file
This commit is contained in:
@@ -121,7 +121,7 @@ function( configure_debugging ARG_TARGET )
|
||||
endif()
|
||||
endforeach()
|
||||
# Create string to put in proj.vcxproj.user file
|
||||
set( RESULT "" )
|
||||
set( RESULT "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"12.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">" )
|
||||
foreach( CONFIG ${CONFIGS} )
|
||||
string( TOUPPER ${CONFIG} CONFIG_CAPS )
|
||||
foreach( PROCESSOR ${PROCESSORS} )
|
||||
@@ -145,6 +145,7 @@ function( configure_debugging ARG_TARGET )
|
||||
endif()
|
||||
endforeach()
|
||||
endforeach()
|
||||
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/cmake/util/vcxproj.user.in ${CMAKE_CURRENT_BINARY_DIR}/${ARG_TARGET}.vcxproj.user @ONLY )
|
||||
set( RESULT "${RESULT}\n</Project>" )
|
||||
file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/${ARG_TARGET}.vcxproj.user "${RESULT}" )
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">@RESULT@
|
||||
</Project>
|
||||
Reference in New Issue
Block a user