You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmake/FindAsio.cmake
+2-26Lines changed: 2 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -8,37 +8,14 @@
8
8
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
9
10
10
if(NOTTARGET Asio::asio)
11
-
# compatibility with older CMake versions
12
-
if(ASIO_ROOT ANDNOT Asio_ROOT)
13
-
set(Asio_ROOT
14
-
${ASIO_ROOT}
15
-
CACHEPATH"Asio base directory"
16
-
)
17
-
unset(ASIO_ROOT CACHE)
18
-
endif()
19
11
20
12
find_path(
21
13
Asio_INCLUDE_DIRasio.hpp
22
-
HINTS"${Asio_ROOT}"ENVASIO_ROOT"${HPX_ASIO_ROOT}"
14
+
HINTS"${ASIO_ROOT}"ENVASIO_ROOT"${HPX_ASIO_ROOT}"
23
15
PATH_SUFFIXESinclude
24
16
)
25
17
26
-
if(NOT Asio_INCLUDE_DIR)
27
-
hpx_error(
28
-
"Could not find Asio. Set Asio_ROOT as a CMake or environment variable to point to the Asio root install directory. Alternatively, set HPX_WITH_FETCH_ASIO=ON to fetch Asio using CMake's FetchContent (when using this option Asio will be installed together with HPX, be careful about conflicts with separately installed versions of Asio)."
29
-
)
30
-
endif()
31
-
32
-
# Set Asio_ROOT in case the other hints are used
33
-
if(Asio_ROOT)
34
-
# The call to file is for compatibility with windows paths
0 commit comments