Modified ConfigureDebugging to work without external file

This commit is contained in:
Joshua Brookover
2016-09-06 01:01:35 -05:00
parent 1324277f42
commit 5088dc78f0
2 changed files with 3 additions and 5 deletions

View File

@@ -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()

View File

@@ -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>