Skip to content

Commit

Permalink
Remove copy if different command
Browse files Browse the repository at this point in the history
  • Loading branch information
vinovo committed Oct 20, 2024
1 parent 5b45bf8 commit 6384ba7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ if(STABLE_DIFFUSION_BUILD)
BUILD_ALWAYS 1
INSTALL_COMMAND
${CMAKE_COMMAND} --build . --target install
COMMAND
${CMAKE_COMMAND} -E copy_if_different
$<IF:$<PLATFORM_ID:Windows>,
${CMAKE_CURRENT_BINARY_DIR}/stable_diffusion_build/bin/$<CONFIG>/stable-diffusion${CMAKE_SHARED_LIBRARY_SUFFIX},
${CMAKE_CURRENT_BINARY_DIR}/stable_diffusion_build/bin/libstable-diffusion${CMAKE_SHARED_LIBRARY_SUFFIX}>
${CMAKE_CURRENT_BINARY_DIR}/stable_diffusion_install/lib/
LOG_INSTALL 1
)
endif()
Expand Down Expand Up @@ -181,7 +175,7 @@ if(WIN32)
else()
install(
DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/stable_diffusion_install/lib/
${CMAKE_CURRENT_BINARY_DIR}/stable_diffusion_build/bin/
${CMAKE_CURRENT_BINARY_DIR}/llama_install/lib/
${CMAKE_CURRENT_BINARY_DIR}/bark_install/lib/
DESTINATION ${SKBUILD_PLATLIB_DIR}/nexa/gguf/lib
Expand All @@ -193,7 +187,7 @@ else()

install(
DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/stable_diffusion_install/lib/
${CMAKE_CURRENT_BINARY_DIR}/stable_diffusion_build/bin/
${CMAKE_CURRENT_BINARY_DIR}/llama_install/lib/
${CMAKE_CURRENT_BINARY_DIR}/bark_install/lib/
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/nexa/gguf/lib
Expand Down

0 comments on commit 6384ba7

Please sign in to comment.