summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/cmake/helpers.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/cmake/helpers.cmake')
-rw-r--r--src/third_party/wiredtiger/cmake/helpers.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/cmake/helpers.cmake b/src/third_party/wiredtiger/cmake/helpers.cmake
index bec3477d45e..77a7961e499 100644
--- a/src/third_party/wiredtiger/cmake/helpers.cmake
+++ b/src/third_party/wiredtiger/cmake/helpers.cmake
@@ -422,13 +422,14 @@ function(config_lib config_name description)
find_library(has_lib_${config_name} ${CONFIG_LIB_LIB})
set(CMAKE_REQUIRED_FLAGS)
set(has_lib "0")
+ set(has_include "")
if(has_lib_${config_name})
set(has_lib ${has_lib_${config_name}})
if (CONFIG_LIB_HEADER)
find_path(include_path_${config_name} ${CONFIG_LIB_HEADER})
if (include_path_${config_name})
message("-- Looking for library ${CONFIG_LIB_LIB}: found ${has_lib_${config_name}}, include path ${include_path_${config_name}}")
- include_directories(${include_path_${config_name}})
+ set(has_include ${include_path_${config_name}})
else()
message("-- Looking for library ${CONFIG_LIB_LIB}: found ${has_lib_${config_name}}")
endif()
@@ -444,8 +445,10 @@ function(config_lib config_name description)
if(${config_name}_DISABLED)
unset(${config_name}_DISABLED CACHE)
set(${config_name} ${has_lib} CACHE STRING "${description}" FORCE)
+ set(${config_name}_INCLUDES ${has_include} CACHE STRING "Additional include paths for ${config_name}" FORCE)
else()
set(${config_name} ${has_lib} CACHE STRING "${description}")
+ set(${config_name}_INCLUDES ${has_include} CACHE STRING "Additional include paths for ${config_name}")
endif()
# 'check_library_exists' sets our given temp variable into the cache. Clear this so it doesn't persist between
# configuration runs.