Skip to content

Commit 269a109

Browse files
committed
workaround for build on ubuntu kinetic
1 parent 0d764bb commit 269a109

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ set(OPENCV_TARGETS
8686
opencv_stitching
8787
)
8888

89+
if(NOT TARGET SDL2::SDL2main)
90+
# This is a workaround for SDL 2.24.0, still needed for build on Kinetic
91+
add_library(SDL2::SDL2main INTERFACE IMPORTED)
92+
endif()
93+
8994
target_link_libraries(Xpano
9095
alpaca
9196
nfd

0 commit comments

Comments
 (0)