Skip to content

Instantly share code, notes, and snippets.

@nnarain
Created February 4, 2016 02:55
Show Gist options
  • Save nnarain/d1be0835b0a0b04db5cc to your computer and use it in GitHub Desktop.
Save nnarain/d1be0835b0a0b04db5cc to your computer and use it in GitHub Desktop.
set(ASIO_ROOT "asio/include")
set(ASIO_VERSION_ROOT "asio-${ASIO_VERSION}/include")
find_path(ASIO_INCLUDE_DIR
NAMES
asio.hpp
PATHS
/usr/include
/usr/include/${ASIO_ROOT}
/usr/include/${ASIO_VERSION_ROOT}
/usr/local/include
/usr/local/include/${ASIO_ROOT}
/usr/local/include/${ASIO_VERSION_ROOT}
C:/
C:/${ASIO_ROOT}
C:/${ASIO_VERSION_ROOT}
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
ASIO
DEFAULT_MSG
ASIO_INCLUDE_DIR
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment