[torch-th] Early detection to fail fast

This commit is contained in:
Robert Schumacher 2018-02-24 02:45:13 -08:00
Родитель 3638b0d4bf
Коммит e38bdde03d
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -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
)