vcpkg/ports/wren/portfile.cmake
Richy HBM 1e7303d4c5 Adding WREN to vcpkg (#7242)
* First pass wren port

* Add warnings defs, dont specifically use static

* Revert warnings

* See if bringing back new lines fixes windows build issues

* Try force static

* Remove STATIC

* Force static
2019-09-11 14:52:07 -07:00

28 lines
768 B
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wren-lang/wren
REF d1a0d0682ac072fa20f2dcca356dac06565e93a1
SHA512 d6b7555da10ea209d04308467563ec401f699a22ca8524e4ae65fd050b0403c5e70430047dbb6a883b8021ab50525c17bb63d76543e7c59dfe4b521cfde6c413
HEAD_REF master
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCOMPILE_AS_CPP=OFF
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
vcpkg_copy_pdbs()