File tree 2 files changed +14
-10
lines changed
2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -98,14 +98,18 @@ if (NOT AWSSDK_CORE_HEADER_FILE)
98
98
message (FATAL_ERROR "AWS SDK for C++ is missing, please install it first" )
99
99
endif ()
100
100
101
- # based on core header file path, inspects the actual AWSSDK_ROOT_DIR
102
- get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_CORE_HEADER_FILE} " PATH )
103
- get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_ROOT_DIR} " PATH )
104
- get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_ROOT_DIR} " PATH )
105
- get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_ROOT_DIR} " PATH )
106
-
107
- if (NOT AWSSDK_ROOT_DIR)
108
- message (FATAL_ERROR "AWSSDK_ROOT_DIR is not set or can't be calculated from the path of core header file" )
101
+ if (IS_ABSOLUTE ${AWSSDK_INSTALL_LIBDIR} )
102
+ set (AWSSDK_ROOT_DIR "" )
103
+ else ()
104
+ # based on core header file path, inspects the actual AWSSDK_ROOT_DIR
105
+ get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_CORE_HEADER_FILE} " PATH )
106
+ get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_ROOT_DIR} " PATH )
107
+ get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_ROOT_DIR} " PATH )
108
+ get_filename_component (AWSSDK_ROOT_DIR "${AWSSDK_ROOT_DIR} " PATH )
109
+
110
+ if (NOT AWSSDK_ROOT_DIR)
111
+ message (FATAL_ERROR "AWSSDK_ROOT_DIR is not set or can't be calculated from the path of core header file" )
112
+ endif ()
109
113
endif ()
110
114
111
115
Original file line number Diff line number Diff line change 1
- includedir=@CMAKE_INSTALL_PREFIX@/@ INCLUDE_DIRECTORY@
2
- libdir=@CMAKE_INSTALL_PREFIX@/@ LIBRARY_DIRECTORY@
1
+ includedir=@INCLUDE_DIRECTORY@
2
+ libdir=@LIBRARY_DIRECTORY@
3
3
4
4
Name: @PROJECT_NAME@
5
5
Description: @PROJECT_DESCRIPTION@
You can’t perform that action at this time.
0 commit comments