Skip to content

Commit e7c02f3

Browse files
committed
Fixed world build with HAL
1 parent 5b3f89d commit e7c02f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/world/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ else()
99
set(OPENCV_WORLD_FLAGS_PROPERTY LINK_FLAGS)
1010
endif()
1111

12+
function(include_one_module m)
13+
include("${OPENCV_MODULE_${m}_LOCATION}/CMakeLists.txt")
14+
endfunction()
15+
1216
if(NOT OPENCV_INITIAL_PASS)
1317
project(opencv_world)
1418

@@ -18,7 +22,7 @@ if(NOT OPENCV_INITIAL_PASS)
1822
message(STATUS " module ${m}...")
1923
set(CMAKE_CURRENT_SOURCE_DIR ${OPENCV_MODULE_${m}_LOCATION})
2024
#add_subdirectory("${OPENCV_MODULE_${m}_LOCATION}" ${CMAKE_CURRENT_BINARY_DIR}/${m})
21-
include("${OPENCV_MODULE_${m}_LOCATION}/CMakeLists.txt")
25+
include_one_module(${m})
2226
endif()
2327
endforeach()
2428
message(STATUS "Processing WORLD modules... DONE")

0 commit comments

Comments
 (0)