Skip to content

Commit

Permalink
Fixing duplicate absolute install paths when using Visual Studio gene…
Browse files Browse the repository at this point in the history
…rators (google#639)

* Fixes an issue where an absolute path was trying to be created out of another path which already is a correct absolute path, resulting in two absolute paths concatenated together

* Fix libshaderc_spvc as well
  • Loading branch information
RikoOphorst authored and dneto0 committed Jun 7, 2019
1 parent 568cf20 commit dc67137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libshaderc/CMakeLists.txt
Expand Up @@ -84,7 +84,7 @@ if(SHADERC_ENABLE_INSTALL)
# around this problem by manually substitution.
string(REPLACE "$(Configuration)" "\${CMAKE_INSTALL_CONFIG_NAME}"
install_location "${generated_location}")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${install_location} DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${install_location} DESTINATION ${CMAKE_INSTALL_LIBDIR})
else()
install(FILES ${generated_location} DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
Expand Down
2 changes: 1 addition & 1 deletion libshaderc_spvc/CMakeLists.txt
Expand Up @@ -89,7 +89,7 @@ if(SHADERC_ENABLE_INSTALL)
# around this problem by manually substitution.
string(REPLACE "$(Configuration)" "\${CMAKE_INSTALL_CONFIG_NAME}"
install_location "${generated_location}")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${install_location} DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${install_location} DESTINATION ${CMAKE_INSTALL_LIBDIR})
else()
install(FILES ${generated_location} DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
Expand Down

0 comments on commit dc67137

Please sign in to comment.