Commit 7de086b6606339e7ddd54edc5a9fc1718535d59c
1 parent
7cb20944
Revert "build fix"
This reverts commit 7cb20944d091bab3550cf32545feec17d57da63e.
Showing
1 changed file
with
4 additions
and
4 deletions
openbr/CMakeLists.txt
| ... | ... | @@ -28,10 +28,6 @@ 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 | - | |
| 35 | 31 | add_library(openbr SHARED ${SRC} ${BR_CORE} ${BR_JANUS} ${BR_GUI} ${BR_ICONS} ${BR_THIRDPARTY_SRC} ${BR_RESOURCES} ${NATURALSTRINGCOMPARE_SRC}) |
| 36 | 32 | qt5_use_modules(openbr ${QT_DEPENDENCIES}) |
| 37 | 33 | set_target_properties(openbr PROPERTIES |
| ... | ... | @@ -41,6 +37,10 @@ set_target_properties(openbr PROPERTIES |
| 41 | 37 | target_link_libraries(openbr ${BR_THIRDPARTY_LIBS}) |
| 42 | 38 | add_cppcheck(openbr) |
| 43 | 39 | |
| 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") | ... | ... |