File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,21 @@ include(CMakeFindDependencyMacro)
33find_dependency(aws-c-io)
44find_dependency(aws-c-compression)
55
6+ macro (aws_load_targets type )
7+ include (${CMAKE_CURRENT_LIST_DIR} /${type} /@PROJECT_NAME @-targets.cmake)
8+ endmacro ()
9+
10+ # try to load the lib follow BUILD_SHARED_LIBS. Fall back if not exist.
611if (BUILD_SHARED_LIBS )
7- include (${CMAKE_CURRENT_LIST_DIR} /shared/@PROJECT_NAME @-targets.cmake)
12+ if (EXISTS "${CMAKE_CURRENT_LIST_DIR} /shared" )
13+ aws_load_targets(shared)
14+ else ()
15+ aws_load_targets(static )
16+ endif ()
817else ()
9- include (${CMAKE_CURRENT_LIST_DIR} /static /@PROJECT_NAME @-targets.cmake)
18+ if (EXISTS "${CMAKE_CURRENT_LIST_DIR} /static" )
19+ aws_load_targets(static )
20+ else ()
21+ aws_load_targets(shared)
22+ endif ()
1023endif ()
11-
You can’t perform that action at this time.
0 commit comments