Skip to content

Commit

Permalink
[openblas] Remove restriction of build static lib on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kafeg committed Mar 4, 2019
1 parent b3e253e commit d4e2516
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ports/openblas/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
message(FATAL_ERROR "openblas can only be built for x64 currently")
endif()

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
message("openblas currenly only supports dynamic library linkage")
set(VCPKG_LIBRARY_LINKAGE "dynamic")
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
message("openblas currenly only supports dynamic library linkage")
set(VCPKG_LIBRARY_LINKAGE "dynamic")
endif()
endif()

vcpkg_from_github(
Expand Down

0 comments on commit d4e2516

Please sign in to comment.