mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:53:02 +08:00
[ecm] Add usage to fix printing error messages (#9210)
This commit is contained in:
parent
d36d68deec
commit
36c04f16de
@ -1,4 +1,4 @@
|
||||
Source: ecm
|
||||
Version: 5.60.0-1
|
||||
Version: 5.60.0-2
|
||||
Homepage: https://github.com/KDE/extra-cmake-modules
|
||||
Description: Extra CMake Modules (ECM), extra modules and scripts for CMake
|
||||
|
@ -1,6 +1,3 @@
|
||||
#cmake-only scripts
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KDE/extra-cmake-modules
|
||||
@ -12,7 +9,8 @@ vcpkg_from_github(
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS -DBUILD_HTML_DOCS=OFF
|
||||
OPTIONS
|
||||
-DBUILD_HTML_DOCS=OFF
|
||||
-DBUILD_MAN_DOCS=OFF
|
||||
-DBUILD_QTHELP_DOCS=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
@ -23,9 +21,9 @@ vcpkg_install_cmake()
|
||||
# Remove debug files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
|
||||
file(COPY ${CURRENT_PORT_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/ecm)
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/COPYING-CMAKE-SCRIPTS DESTINATION ${CURRENT_PACKAGES_DIR}/share/ecm)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/ecm/COPYING-CMAKE-SCRIPTS ${CURRENT_PACKAGES_DIR}/share/ecm/copyright)
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING-CMAKE-SCRIPTS DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
# Allow empty include directory
|
||||
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
||||
|
9
ports/ecm/usage
Normal file
9
ports/ecm/usage
Normal file
@ -0,0 +1,9 @@
|
||||
The package ecm provides CMake targets:
|
||||
|
||||
find_package(ECM CONFIG REQUIRED NO_MODULE)
|
||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
||||
include(KDEInstallDirs)
|
||||
include(KDECompilerSettings)
|
||||
include(KDECMakeSettings)
|
||||
|
||||
For more infomation, see https://api.kde.org/ecm/
|
Loading…
Reference in New Issue
Block a user