mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 13:19:23 +08:00
ebda0b9fc2
* Add sfsexp, S-expressions library * Use CMakeLists.txt directly instead of patching it * Use sub-folder for sfsexp header files * Manually set the header files and make sure the resulting include/ folder is the same as with the autotools installation * Add runtime parameter for the DLL * Export all symbols in the DLLAA * Use PUBLIC_HEADER property install of install(FILES...) * Remove boilerplate comments from portfile * Only create static library on windows * Throw error on UWP * Disable some windows UWP warnings * Use VCPKG_TARGET_IS_WINDOWS and put it on top of file * Deleted extra blank lines * Missed one blank line * Use ${PORT} variable instead of the specific "sfsexp" string. This should make it easier to change the name of the port later on. * Use vcpkg_from_github to fetch the release. * Remove extra empty lines
23 lines
706 B
CMake
23 lines
706 B
CMake
if (VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mjsottile/sfsexp
|
|
REF ad589f9e6e0eca20345320e9c82a3aecc0a5c8aa #v1.3
|
|
SHA512 cdd469e23de48a5d6cd633b7b97b394cbfcba330ac2c3ae549811d856f2eec0c8558f99313e56a9f1cc9d72d4f17077584b6cf15c87814b91fe44ddd76895a8c
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) |