Skip to content

Commit

Permalink
Refs #5767. Fix to deal with precise issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Aug 27, 2012
1 parent fdfac92 commit 99a51c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,16 @@ include_directories ( ../../QtPropertyBrowser/src )
include_directories (../../Framework/MDEvents/inc)
include_directories (../../Framework/DataObjects/inc)

qt4_wrap_cpp ( MOCCED_FILES ${MOC_FILES} )
# Ugly hack to get around issue in Boost version 1.48.0
# in conjunction with Qt 4.7.4 or greater
set ( qt_version ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH} )
if ( ${Boost_VERSION} GREATER 104799 AND ${qt_version} VERSION_GREATER 4.7.3 )
set( extra_options "-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED")
else ( ${Boost_VERSION} GREATER 104799 AND ${qt_version} VERSION_GREATER 4.7.3 )
set ( extra_options "" )
endif ( ${Boost_VERSION} GREATER 104799 AND ${qt_version} VERSION_GREATER 4.7.3 )

qt4_wrap_cpp ( MOCCED_FILES ${MOC_FILES} OPTIONS ${extra_options} )

set ( ALL_SRC ${SRC_FILES} ${MOCCED_FILES} )

Expand Down

0 comments on commit 99a51c6

Please sign in to comment.