From 7cb20944d091bab3550cf32545feec17d57da63e Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 21 Sep 2015 10:26:13 -0400 Subject: [PATCH] build fix --- openbr/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openbr/CMakeLists.txt b/openbr/CMakeLists.txt index a211640..dc4f10a 100644 --- a/openbr/CMakeLists.txt +++ b/openbr/CMakeLists.txt @@ -28,6 +28,10 @@ if (NOT ${BR_EMBEDDED}) install(FILES ${HEADERS} DESTINATION include/openbr/gui) endif() +if (NOT ${BR_EMBEDDED}) + add_definitions(-DBR_LIBRARY) +endif() + add_library(openbr SHARED ${SRC} ${BR_CORE} ${BR_JANUS} ${BR_GUI} ${BR_ICONS} ${BR_THIRDPARTY_SRC} ${BR_RESOURCES} ${NATURALSTRINGCOMPARE_SRC}) qt5_use_modules(openbr ${QT_DEPENDENCIES}) set_target_properties(openbr PROPERTIES @@ -37,10 +41,6 @@ set_target_properties(openbr PROPERTIES target_link_libraries(openbr ${BR_THIRDPARTY_LIBS}) add_cppcheck(openbr) -if (NOT ${BR_EMBEDDED}) - set_target_properties(openbr PROPERTIES DEFINE_SYMBOL BR_LIBRARY) -endif() - # Janus implementation if(BR_WITH_JANUS) set(JANUS_BUILD_PP5_WRAPPER ${BR_WITH_PP5} CACHE BOOL "Build Janus implementation using PittPatt 5") -- libgit2 0.21.4