Skip to content

Commit

Permalink
Correct a syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
WardF committed Feb 18, 2025
1 parent 69dabd6 commit 8ead5a2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1563,20 +1563,21 @@ if(MSVC)
endif()

foreach(CPP ${CMAKE_PREFIX_PATH})
file(GLOB COPY_FILES ${CPP}/*.lib ${CPP}/lib/*.lib)
MESSAGE(STATUS "CPP: ${CPP}")
file(GLOB COPY_FILES ${CPP}/*.lib)
install(FILES ${COPY_FILES}
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT dependencies)
endforeach()
install(FILES ${COPY_FILES}
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT dependencies)


foreach(CPP ${CMAKE_PREFIX_PATH})
file(GLOB COPY_FILES ${CPP}/*.dll)
string(REGEX REPLACE "msv[.*].dll" "" COPY_FILES "${COPY_FILES}")
install(FILES ${COPY_FILES}
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT dependencies)
endforeach()
string(REGEX REPLACE "msv[.*].dll" "" COPY_FILES "${COPY_FILES}")
install(FILES ${COPY_FILES}
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT dependencies)


endif()

# Subdirectory CMakeLists.txt files should specify their own
Expand Down

0 comments on commit 8ead5a2

Please sign in to comment.