mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 19:51:37 +08:00
6ab471d09e
* [asiosdk] Add new port * specified vcpkg_fail_port_install for non-windows platforms * specified vcpkg_fail_port_install for arm & uwp platforms * added entries for asiosdk into scripts/ci.baseline.txt
38 lines
753 B
CMake
38 lines
753 B
CMake
if(WIN32)
|
|
else(WIN32)
|
|
message(FATAL_ERROR "Findasiosdk.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" )
|
|
endif(WIN32)
|
|
|
|
find_path(
|
|
ASIOSDK_ROOT_DIR
|
|
asiosdk
|
|
)
|
|
|
|
if (NOT "${ASIOSDK_ROOT_DIR}" STREQUAL "")
|
|
set(ASIOSDK_ROOT_DIR
|
|
${ASIOSDK_ROOT_DIR}/asiosdk
|
|
)
|
|
endif()
|
|
|
|
find_path(ASIOSDK_INCLUDE_DIR
|
|
asio.h
|
|
PATHS
|
|
${ASIOSDK_ROOT_DIR}/common
|
|
)
|
|
|
|
|
|
if (NOT "${ASIOSDK_ROOT_DIR}" STREQUAL "")
|
|
set (ASIOSDK_INCLUDE_DIR
|
|
${ASIOSDK_ROOT_DIR}/common
|
|
${ASIOSDK_ROOT_DIR}/host
|
|
${ASIOSDK_ROOT_DIR}/hostpc
|
|
)
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(ASIOSDK DEFAULT_MSG ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(
|
|
ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR
|
|
)
|