diff options
Diffstat (limited to 'dev-libs/aws-c-cal/files/aws-c-cal-0.4.5-cmake-prefix.patch')
-rw-r--r-- | dev-libs/aws-c-cal/files/aws-c-cal-0.4.5-cmake-prefix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-libs/aws-c-cal/files/aws-c-cal-0.4.5-cmake-prefix.patch b/dev-libs/aws-c-cal/files/aws-c-cal-0.4.5-cmake-prefix.patch new file mode 100644 index 000000000000..7c861ce715f9 --- /dev/null +++ b/dev-libs/aws-c-cal/files/aws-c-cal-0.4.5-cmake-prefix.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -23,7 +23,7 @@ elseif(NOT DEFINED CMAKE_INSTALL_LIBDIR) + endif() + + # This is required in order to append /lib/cmake to each element in CMAKE_PREFIX_PATH +-set(AWS_MODULE_DIR "/${CMAKE_INSTALL_LIBDIR}/cmake") ++set(AWS_MODULE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake") + string(REPLACE ";" "${AWS_MODULE_DIR};" AWS_MODULE_PATH "${CMAKE_PREFIX_PATH}${AWS_MODULE_DIR}") + # Append that generated list to the module search path + list(APPEND CMAKE_MODULE_PATH ${AWS_MODULE_PATH}) |