Closed ramgon closed 1 year ago
Hi, thanks for reaching out!
I pushed a fix for this : see https://github.com/pthom/imgui_bundle/commit/77f3f8a384de1535b55661f8185d9bbcf399ed5d
You only need to define IMMVISION_FETCH_OPENCV=OFF
Warning, your use of option is incorrect: see the doc for option, it requires 3 params, and the second is a doc string.
As a consequence option(IMMVISION_FETCH_OPENCV OFF)
will not store anything in the cache, and OFF will be interpreted as the doc string. The best way to set a value from a parent cmake file is:
set(IMMVISION_FETCH_OPENCV OFF CACHE BOOL "" FORCE)
or may be
option(IMMVISION_FETCH_OPENCV "" OFF)
(yes, this is ugly. CMake is ugly at times)
Yes it's OK now, thank you!
Hi! In my project imgui_bundle is included as submodule. I don't need to build either OpenCV and ImmVision, so in CMakeLists.txt I have the following lines
But the problem appears when building with emscripten
and it is related to
add_subdirectory(immvision)
beforeif
statementCould you please move it inside the
if
body?