Skip to content

Commit

Permalink
[ctpg] no absolute paths (#28791)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Jan 9, 2023
1 parent cd08228 commit db5c711
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ports/ctpg/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ vcpkg_cmake_configure(
OPTIONS
-DCTPG_ENABLE_INSTALL=ON
-DCTPG_ENABLE_TESTS=OFF
-DCTPG_INSTALL_CMAKEDIR="${CURRENT_PACKAGES_DIR}/share/${PORT}"
-DCTPG_WARNING_FLAGS=OFF
)

vcpkg_cmake_install()

file(GLOB files "${CURRENT_PACKAGES_DIR}/share/${PORT}/cmake/*")
file(COPY ${files} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/cmake/")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
1 change: 1 addition & 0 deletions ports/ctpg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ctpg",
"version": "1.3.7",
"port-version": 1,
"description": "Compile Time Parser Generator is a C++ single header library which takes a language description as a C++ code and turns it into a LR1 table parser with a deterministic finite automaton lexical analyzer, all in compile time.",
"homepage": "https://github.com/peter-winter/ctpg",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@
},
"ctpg": {
"baseline": "1.3.7",
"port-version": 0
"port-version": 1
},
"ctre": {
"baseline": "3.7.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/ctpg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3cbcbbd2011b26de3ddec2aca13ee915c838021a",
"version": "1.3.7",
"port-version": 1
},
{
"git-tree": "3a1f2a1050353e56b539e4bd98b40853ca6b59ed",
"version": "1.3.7",
Expand Down

0 comments on commit db5c711

Please sign in to comment.