Skip to content

Commit 38223bc

Browse files
committed
fix: correct option have-rules
Signed-off-by: msclock <[email protected]>
1 parent 6aabe07 commit 38223bc

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ find_package(cmake-modules REQUIRED)
3030
include(cmake-modules/ProjectDefault)
3131

3232
find_program(cppcheck NAMES "cppcheck" "cppcheck.exe")
33-
34-
install(PROGRAMS ${cppcheck} DESTINATION ${SKBUILD_PROJECT_NAME}/Cppcheck)
33+
cmake_path(GET cppcheck PARENT_PATH cppcheck_dir)
34+
file(GLOB cppcheck_runtimes ${cppcheck_dir}/*)
35+
install(FILES ${cppcheck_runtimes} DESTINATION ${SKBUILD_PROJECT_NAME}/Cppcheck)
3536
install(DIRECTORY ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/Cppcheck
3637
DESTINATION ${SKBUILD_PROJECT_NAME})

cmake/vcpkg/ports/cppcheck/portfile.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif()
2424

2525
vcpkg_check_features(
2626
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
27-
FEATURES
27+
INVERTED_FEATURES
2828
have_rules HAVE_RULES
2929
)
3030

cmake/vcpkg/ports/cppcheck/vcpkg.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
],
1717
"features": {
1818
"have-rules": {
19-
"description": "Dependencies for testing",
20-
"supports": "!windows | !osx"
19+
"description": "To compile with rules",
20+
"dependencies": [
21+
"pcre"
22+
]
2123
}
2224
}
2325
}

0 commit comments

Comments
 (0)