Commit 7cb20944d091bab3550cf32545feec17d57da63e

Authored by Josh Klontz
1 parent 5f979085

build fix

Showing 1 changed file with 4 additions and 4 deletions
openbr/CMakeLists.txt
... ... @@ -28,6 +28,10 @@ if (NOT ${BR_EMBEDDED})
28 28 install(FILES ${HEADERS} DESTINATION include/openbr/gui)
29 29 endif()
30 30  
  31 +if (NOT ${BR_EMBEDDED})
  32 + add_definitions(-DBR_LIBRARY)
  33 +endif()
  34 +
31 35 add_library(openbr SHARED ${SRC} ${BR_CORE} ${BR_JANUS} ${BR_GUI} ${BR_ICONS} ${BR_THIRDPARTY_SRC} ${BR_RESOURCES} ${NATURALSTRINGCOMPARE_SRC})
32 36 qt5_use_modules(openbr ${QT_DEPENDENCIES})
33 37 set_target_properties(openbr PROPERTIES
... ... @@ -37,10 +41,6 @@ set_target_properties(openbr PROPERTIES
37 41 target_link_libraries(openbr ${BR_THIRDPARTY_LIBS})
38 42 add_cppcheck(openbr)
39 43  
40   -if (NOT ${BR_EMBEDDED})
41   - set_target_properties(openbr PROPERTIES DEFINE_SYMBOL BR_LIBRARY)
42   -endif()
43   -
44 44 # Janus implementation
45 45 if(BR_WITH_JANUS)
46 46 set(JANUS_BUILD_PP5_WRAPPER ${BR_WITH_PP5} CACHE BOOL "Build Janus implementation using PittPatt 5")
... ...