set include directory correctly

This commit is contained in:
Mathis Logemann 2020-12-16 11:17:03 +01:00
parent 2aaa675730
commit bde9f29021
3 changed files with 3 additions and 4 deletions

View File

@ -18,10 +18,10 @@ vcpkg_configure_cmake(
-DOPT_BUILD_PLUGIN=OFF
-DOPT_NO_COMMS=ON
-DOPT_EXTERNALS_UPDATE_DISCONNECTED=ON
-DCMAKE_INSTALL_INCLUDEDIR="${CURRENT_PACKAGES_DIR}/include"
)
vcpkg_install_cmake()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright

View File

@ -14,10 +14,10 @@ vcpkg_configure_cmake(
OPTIONS
-DCC_COMMS_LIB_ONLY=ON
-DCC_NO_UNIT_TESTS=ON
-DCMAKE_INSTALL_INCLUDEDIR="${CURRENT_PACKAGES_DIR}/include"
)
vcpkg_install_cmake()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright

View File

@ -15,6 +15,7 @@ vcpkg_configure_cmake(
-DCOMMSDSL_NO_COMMS_CHAMPION=ON
-DCOMMSDSL_NO_TESTS=ON
-DCOMMSDSL_NO_WARN_AS_ERR=ON # remove on next version or on next version of boost
-DCMAKE_INSTALL_INCLUDEDIR="${CURRENT_PACKAGES_DIR}/include"
)
vcpkg_install_cmake()
@ -24,8 +25,6 @@ vcpkg_copy_tools(
AUTO_CLEAN
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()