Skip to content

Commit 078a770

Browse files
committed
update ext_cmake_enable.cmake
1 parent cd9dd19 commit 078a770

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

ext_cmake_enable.cmake

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,19 @@ set(ext_cmake_dir_hints
1515

1616
foreach(ext_cmake_dir_candidate IN LISTS EXT_CMAKE_HINTS EXT_CMAKE_PATHS ext_cmake_dir_hints)
1717
set(ext_cmake_dir "${ext_cmake_dir_candidate}")
18+
get_filename_component(ext_cmake_dir "${ext_cmake_dir}" ABSOLUTE)
1819
if(EXISTS ${ext_cmake_dir}/ext_script_git_version.cmake)
19-
message(STATUS "extINFO -- found ext cmake directory in: ${ext_cmake_dir}")
20+
message(STATUS "extINFO -- Found ext cmake directory in: ${ext_cmake_dir}")
21+
22+
set(ext_libraries_path_candidate "${ext_cmake_dir}/..")
23+
get_filename_component(ext_libraries_path_candidate "${ext_libraries_path_candidate}" ABSOLUTE)
24+
25+
if(NOT EXT_LIBRARIES_PATH)
26+
if(EXISTS "${ext_libraries_path_candidate}/basics/include/ext/util")
27+
message(STATUS "extINFO -- Setting EXT_LIBRARIES_PATH to: ${ext_libraries_path_candidate} (enable_cmake)")
28+
set(EXT_LIBRARIES_PATH "${ext_libraries_path_candidate}" CACHE PATH "Path of ext libraries.")
29+
endif()
30+
endif()
2031
break()
2132
endif()
2233
endforeach()

0 commit comments

Comments
 (0)