Update portfile.cmake (#8043)

This commit is contained in:
Long Huan 2019-09-05 07:18:18 +08:00 committed by Curtis J Bezault
parent ba34f17814
commit b3d4acfbc9

View File

@ -27,7 +27,7 @@ vcpkg_configure_qmake(
DEFINES+=SCI_NAMESPACE
)
if(CMAKE_HOST_WIN32)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_build_qmake(
RELEASE_TARGETS release
DEBUG_TARGETS debug
@ -39,7 +39,7 @@ endif()
file(GLOB HEADER_FILES ${SOURCE_PATH}/Qt4Qt5/Qsci/*)
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/Qsci)
if(CMAKE_HOST_WIN32)
if(VCPKG_TARGET_IS_WINDOWS)
configure_file(${RELEASE_DIR}/release/qscintilla2_qt5.lib ${CURRENT_PACKAGES_DIR}/lib/qscintilla2.lib COPYONLY)
configure_file(${DEBUG_DIR}/debug/qscintilla2_qt5.lib ${CURRENT_PACKAGES_DIR}/debug/lib/qscintilla2.lib COPYONLY)
@ -47,7 +47,7 @@ if(CMAKE_HOST_WIN32)
file(COPY ${RELEASE_DIR}/release/qscintilla2_qt5.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
file(COPY ${DEBUG_DIR}/debug/qscintilla2_qt5.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
elseif(CMAKE_HOST_APPLE)
elseif(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
configure_file(${RELEASE_DIR}/libqscintilla2_qt5.a ${CURRENT_PACKAGES_DIR}/lib/libqscintilla2.a COPYONLY)
configure_file(${DEBUG_DIR}/libqscintilla2_qt5.a ${CURRENT_PACKAGES_DIR}/debug/lib/libqscintilla2.a COPYONLY)
endif()