Skip to content

Commit

Permalink
install wrapper if not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Neumann committed Apr 22, 2022
1 parent b92ef3b commit ef59437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/lapack/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ else()
endif()
set(BLA_VENDOR Generic)
if(VCPKG_TARGET_IS_WINDOWS) # The other wrapper is in lapack-reference
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/lapack/vcpkg-cmake-wrapper.cmake" @ONLY)
if(NOT EXISTS "${CURRENT_INSTALLED_DIR}/share/lapack/vcpkg-cmake-wrapper.cmake")
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/lapack/vcpkg-cmake-wrapper.cmake" @ONLY)

This comment has been minimized.

Copy link
@dg0yt

dg0yt Apr 22, 2022

Contributor

Uff, doesn't this create an install order dependency?

endif()
endif()
# Make sure LAPACK can be found
vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_PORT_DIR}
Expand Down

0 comments on commit ef59437

Please sign in to comment.