File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,14 @@ aws_prepare_shared_lib_exports(${CMAKE_PROJECT_NAME})
74
74
75
75
install (FILES ${AWS_HTTP_HEADERS} DESTINATION "include/aws/http" )
76
76
77
+ if (BUILD_SHARED_LIBS )
78
+ set (TARGET_DIR "shared" )
79
+ else ()
80
+ set (TARGET_DIR "static" )
81
+ endif ()
82
+
77
83
install (EXPORT "${CMAKE_PROJECT_NAME} -targets"
78
- DESTINATION "${LIBRARY_DIRECTORY} /${CMAKE_PROJECT_NAME} /cmake/"
84
+ DESTINATION "${LIBRARY_DIRECTORY} /${CMAKE_PROJECT_NAME} /cmake/${TARGET_DIR} / "
79
85
NAMESPACE AWS::
80
86
COMPONENT Development)
81
87
Original file line number Diff line number Diff line change @@ -3,4 +3,9 @@ include(CMakeFindDependencyMacro)
3
3
find_dependency(aws-c-io)
4
4
find_dependency(aws-c-compression)
5
5
6
- include (${CMAKE_CURRENT_LIST_DIR} /@CMAKE_PROJECT_NAME @-targets.cmake)
6
+ if (BUILD_SHARED_LIBS )
7
+ include (${CMAKE_CURRENT_LIST_DIR} /shared/@CMAKE_PROJECT_NAME @-targets.cmake)
8
+ else ()
9
+ include (${CMAKE_CURRENT_LIST_DIR} /static /@CMAKE_PROJECT_NAME @-targets.cmake)
10
+ endif ()
11
+
You can’t perform that action at this time.
0 commit comments