/usr/lib/Wt/cmake/WtFindAsio.txt is in witty-examples 3.3.4+dfsg-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | # Attention: must have done WtFindBoost.txt before this one!
#
# This defines:
# - ASIO_INCLUDE_DIRS
# - ASIO_LIBRARIES
# - ASIO_DEFINITIONS
# - ASIO_FOUND
#
# This file will search for both plain and boost kinds of asio, and
# set up the correct includes and libraries
# ASIO_LIBRARIES is set to the boost system library, if the boost
# version of asio was detected. Otherwise, it remains empty.
#FIND_PATH(PLAIN_ASIO_INCLUDE
# NAMES
# asio.hpp
# PATHS
# ${BOOST_INCLUDE_DIRS}
# /usr/include
# /usr/local/include
#)
IF(BOOST_WTHTTP_FOUND)
FIND_PATH(BOOST_ASIO_INCLUDE
NAMES
boost/asio.hpp
PATHS
${BOOST_INCLUDE_DIRS}
NO_DEFAULT_PATH
)
ENDIF(BOOST_WTHTTP_FOUND)
SET(ASIO_FOUND FALSE)
SET(ASIO_DEFINITIONS "")
SET(ASIO_LIBRARIES "")
SET(ASIO_INCLUDE_DIRS "")
IF(PLAIN_ASIO_INCLUDE)
SET (ASIO_INCLUDE_DIRS ${PLAIN_ASIO_INCLUDE})
SET (ASIO_LIBRARIES "")
SET(ASIO_FOUND TRUE)
ELSE(PLAIN_ASIO_INCLUDE)
IF(BOOST_ASIO_INCLUDE
AND DEFINED BOOST_WT_SYSTEM_LIBRARY)
SET (ASIO_INCLUDE ${BOOST_ASIO_INCLUDE})
SET(ASIO_DEFINITIONS -DBOOST_ASIO)
SET(ASIO_LIBRARIES ${BOOST_WT_SYSTEM_LIBRARY})
SET(ASIO_FOUND TRUE)
ENDIF(BOOST_ASIO_INCLUDE
AND DEFINED BOOST_WT_SYSTEM_LIBRARY)
ENDIF(PLAIN_ASIO_INCLUDE)
|