Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve version checking #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ ENDIF (NOT QT_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
SET(LIBS ${LIBS} ${Boost_LIBRARIES})
#boost quirks
IF (Boost_VERSION LESS 104400)
IF (Boost_VERSION VERSION_LESS 1.44.00)
#absolute() was added in 1.44.0, with filesystem v3
ADD_DEFINITIONS(-DCIFTILIB_BOOST_NO_FSV3)
ENDIF (Boost_VERSION LESS 104400)
IF (Boost_VERSION LESS 104800)
ENDIF (Boost_VERSION VERSION_LESS 1.44.00)
IF (Boost_VERSION VERSION_LESS 1.48.00)
#canonical() was added in 1.48.0
ADD_DEFINITIONS(-DCIFTILIB_BOOST_NO_CANONICAL)
ENDIF (Boost_VERSION LESS 104800)
IF (Boost_VERSION LESS 105600)
ENDIF (Boost_VERSION VERSION_LESS 1.48.00)
IF (Boost_VERSION VERSION_LESS 1.56.00)
#try_lexical_cast was added in 1.56.0
ADD_DEFINITIONS(-DCIFTILIB_BOOST_NO_TRY_LEXICAL)
ENDIF (Boost_VERSION LESS 105600)
ENDIF (Boost_VERSION VERSION_LESS 1.56.00)

#zlib, useful for volume reading
FIND_PACKAGE(ZLIB)
Expand Down