зеркало из https://github.com/microsoft/vcpkg.git
[torch-th] Early detection to fail fast
This commit is contained in:
Родитель
3638b0d4bf
Коммит
e38bdde03d
|
@ -1,3 +1,3 @@
|
|||
Source: torch-th
|
||||
Version: 20180131-89ede3ba90c906a8ec6b9a0f4bef188ba5bb2fd8-1
|
||||
Version: 20180131-89ede3ba90c906a8ec6b9a0f4bef188ba5bb2fd8-2
|
||||
Description: Torch's TH library
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
message(FATAL_ERROR "scintilla only supports dynamic linkage")
|
||||
endif()
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
||||
message(FATAL_ERROR "scintilla only supports dynamic crt")
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
|
@ -15,7 +22,7 @@ vcpkg_apply_patches(
|
|||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/lib/TH
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DWITH_OPENMP=OFF
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче