File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ if(BUILD_TESTING)
18
18
add_subdirectory (test )
19
19
endif ()
20
20
21
+ if (CXX_COROUTINES_HEADER STREQUAL coroutine)
22
+ set (CXX_COROUTINES_COMPONENT Final)
23
+ else ()
24
+ set (CXX_COROUTINES_COMPONENT Experimental)
25
+ endif ()
26
+
21
27
export (EXPORT cppcoroTargets
22
28
FILE "${PROJECT_BINARY_DIR} /cppcoro/cppcoroTargets.cmake"
23
29
NAMESPACE cppcoro::)
24
30
configure_file (cmake/cppcoroConfig.cmake
25
31
"${PROJECT_BINARY_DIR} /cppcoro/cppcoroConfig.cmake"
26
- COPYONLY )
32
+ @ONLY )
27
33
configure_file (cmake/FindCoroutines.cmake
28
34
"${PROJECT_BINARY_DIR} /cppcoro/FindCoroutines.cmake"
29
35
COPYONLY )
Original file line number Diff line number Diff line change 1
1
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR} )
2
2
3
3
include (CMakeFindDependencyMacro)
4
- find_dependency(Coroutines QUIET REQUIRED)
4
+ find_dependency(Coroutines QUIET REQUIRED COMPONENTS @CXX_COROUTINES_COMPONENT@ )
5
5
6
6
include ("${CMAKE_CURRENT_LIST_DIR} /cppcoroTargets.cmake" )
You can’t perform that action at this time.
0 commit comments