Skip to content

Commit

Permalink
fix qt4 boost conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
cielavenir authored and lianghongzhuo committed May 12, 2020
1 parent 39e3022 commit f36322e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/qtcoinrave/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ if (QT_FOUND AND QT_QTCORE_FOUND AND QT_QTGUI_FOUND AND SOQT_LIBRARY_FOUND AND C
qt4_wrap_cpp(MOC_OUTPUT_FILES ${QTCOIN_MOCS})

check_include_file(X11/Xlib.h HAVE_X11_XLIB_H)

if (Boost_MINOR_VERSION LESS 65)
QT4_WRAP_CPP(MOC_OUTPUT_FILES ${QTCOIN_MOCS} OPTIONS -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) #for boost previous to 1.65.1
else(Boost_MINOR_VERSION LESS 65)
QT4_WRAP_CPP(MOC_OUTPUT_FILES ${QTCOIN_MOCS} OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -DBOOST_LEXICAL_CAST_INCLUDED -DBOOST_NEXT_PRIOR_HPP_INCLUDED -DBOOST_TYPE_TRAITS_HPP -D_SYS_SYSMACROS_H_OUTER) #for boost 1.65.1
endif(Boost_MINOR_VERSION LESS 65)

# build sources, moc'd sources, and rcc'd sources
add_library(qtcoinrave SHARED ivselector.cpp item.cpp qtcoinviewer.cpp qtcoinrave.cpp ${MOC_OUTPUT_FILES} item.h ivselector.h qtcoin.h qtcoinviewer.h qtcameraviewer.h ivmodelloader.cpp)

Expand Down

0 comments on commit f36322e

Please sign in to comment.