Skip to content

Commit

Permalink
Make sure dxcompiler get copied every time
Browse files Browse the repository at this point in the history
  • Loading branch information
Minmin Gong committed Dec 10, 2018
1 parent d45b274 commit aebd3e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ else()
endif()

set(dxcompilerOutput "${copyTargetFolder}/${CMAKE_CFG_INTDIR}/${dxcompilerName}")
add_custom_command(OUTPUT ${dxcompilerOutput}
add_custom_target(CopyDxcompiler ALL
COMMAND ${CMAKE_COMMAND} -E copy
${SC_BUILD_DIR}/External/DirectXShaderCompiler/${CMAKE_CFG_INTDIR}/${runtimeOutputFolder}/${dxcompilerName}
${dxcompilerOutput}
COMMENT "Copying dxcompiler...")
add_custom_target(CopyDxcompiler DEPENDS ${dxcompilerOutput})
add_dependencies(CopyDxcompiler dxcompiler)

set_target_properties(CopyDxcompiler PROPERTIES FOLDER "Core")
Expand Down

0 comments on commit aebd3e6

Please sign in to comment.