Skip to content

Commit

Permalink
Properly depend on opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Dec 10, 2023
1 parent 5270b09 commit 0627bd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ endif()
set(OPENCV_YEAR "frc2024")
set(OPENCV_VERSION "4.8.0-2")
# also valid: windowsx86-64
if(NOT OPENCV_ARCH)
set(OPENCV_ARCH "windowsx86-64") # Set by Actions usually
endif()

# type can be "", "debug", "static", or "staticdebug"
set(OPENCV_TYPE "")
Expand All @@ -55,8 +52,10 @@ FetchContent_MakeAvailable(opencv_header)
# This probably doesn't work great with shared libraries, but I don't care about those right now
file(GLOB_RECURSE OPENCV_LIB_PATH
"${opencv_lib_SOURCE_DIR}/**/*.lib"
"${opencv_lib_SOURCE_DIR}/**/*.so*"
)
SET(OPENCV_INCLUDE_PATH ${opencv_header_SOURCE_DIR})
message("Depending on opencv ${OPENCV_LIB_PATH}")

# headers and sources
set(
Expand Down

0 comments on commit 0627bd5

Please sign in to comment.