Skip to content

Commit 4d7c518

Browse files
author
Henrich Lauko
committed
ports: Update remill config paths.
1 parent d09c297 commit 4d7c518

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

ports/remill/portfile.cmake

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,28 @@ vcpkg_configure_cmake(
1212
)
1313

1414
vcpkg_install_cmake()
15-
vcpkg_cmake_config_fixup()
15+
vcpkg_cmake_config_fixup(
16+
PACKAGE_NAME "remill"
17+
CONFIG_PATH lib/cmake
18+
)
1619

1720
file( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
1821
file( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
1922

23+
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
24+
file( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" )
25+
endif()
26+
2027
file(
2128
INSTALL "${SOURCE_PATH}/LICENSE"
2229
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
2330
RENAME copyright
2431
)
2532

26-
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage")
27-
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${lower_package}" RENAME usage)
33+
if ( EXISTS "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage" )
34+
file(
35+
INSTALL "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage"
36+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${lower_package}"
37+
RENAME usage
38+
)
2839
endif()

0 commit comments

Comments
 (0)