Commit d1ae16452ae6ebe31666c7174757605a6f78f9d2

Authored by Charles Otto
1 parent 510b38b9

Use a static link for stasm4 on windows

Otherwise we need to set up exports for whatever is being used by the br
plugin.
3rdparty/stasm4.0.0/CMakeLists.txt
... ... @@ -32,8 +32,12 @@ if(MSVC)
32 32 endif()
33 33  
34 34 add_subdirectory(${PROJECT_SOURCE_DIR}/stasm)
  35 +if(MSVC)
  36 + add_library(stasm STATIC ${SOURCE})
  37 +else()
  38 + add_library(stasm SHARED ${SOURCE})
  39 +endif()
35 40  
36   -add_library(stasm SHARED ${SOURCE})
37 41 qt5_use_modules(stasm ${QT_DEPENDENCIES})
38 42 set(SOURCE ${SOURCE} PARENT_SCOPE)
39 43 target_link_libraries(stasm ${OpenCV_LIBS} ${Qt5Core_QTMAIN_LIBRARIES})
... ...