2018-10-20 14:11:58 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2016-11-29 12:42:34 +01:00
|
|
|
|
2018-10-20 14:11:58 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO alecthomas/entityx
|
2019-05-21 21:00:24 -07:00
|
|
|
REF 1.3.0
|
|
|
|
SHA512 724a3f421f802e60a1106ff8a69435c9a9da14e35c3e88565bbc17bff3a17f2d9771818aac83320cc4f14de0ec770a66f1eb7cbf4318f43abd516c63e077c07d
|
2018-10-20 14:11:58 -07:00
|
|
|
HEAD_REF master
|
2016-11-29 12:42:34 +01:00
|
|
|
)
|
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-22 05:48:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-04 17:23:04 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2016-11-29 12:42:34 +01:00
|
|
|
OPTIONS
|
2024-06-11 22:26:30 +02:00
|
|
|
-DCMAKE_CXX_STANDARD=11 # std::iterator<X,Y> is deprecated in C++17
|
2018-10-20 14:11:58 -07:00
|
|
|
-DENTITYX_BUILD_TESTING=false
|
2019-01-07 22:33:37 +02:00
|
|
|
-DENTITYX_BUILD_SHARED=0
|
2016-11-29 12:42:34 +01:00
|
|
|
)
|
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_cmake_install()
|
2016-11-29 12:42:34 +01:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2016-11-29 12:42:34 +01:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-04-22 05:48:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/entityx" RENAME copyright)
|