[Paraview] Conflict with FindBoost.cmake included with paraview?

Mike Jackson mike.jackson at bluequartz.net
Thu Apr 16 16:11:43 EDT 2009


I have using the PARAVIEW_EXTRA_EXTERNAL_MODULES method to compile my
plugin into paraview. My own code needs boost and makes its own calls
to find_package(..) to find boost. This works just fine with the
FindBoost.cmake that comes with CMake 2.6.3 so I know what I am doing
works correctly. Now when I run cmake on ParaView (Latest CVS) I get
the following error:


WARNING: You are using Qt 4.4.3. Officially supported version is Qt 4.3
-- [PVRoboMet] MXADATAMODEL_TARGET_ADDED: ''
-- Plugin: [PVRoboMet] adding MXADataModel Library
CMake Error at /Users/Shared/Kitware-CVS/ParaView3/VTK/CMake/FindBoost.cmake:362
(IF):
  if had incorrect arguments: ${Boost_MINOR_VERSION} GREATER 35 (Unknown
  arguments specified).
Call Stack (most recent call first):
  /Users/mjackson/Workspace/MXADataModel/Resources/CMake/FindSupportLibraries.cmake:13
(FIND_PACKAGE)
  /Users/mjackson/Workspace/MXADataModel/CMakeLists.txt:98 (INCLUDE)


-- Configuring incomplete, errors occurred!

The contents of my cmake file at the line where the error occurred is
the following:

SET (Boost_FIND_REQUIRED TRUE)
SET (Boost_FIND_QUIETLY TRUE)
set (Boost_USE_MULTITHREADED TRUE)
set (Boost_USE_STATIC_LIBS TRUE)

FIND_PACKAGE(Boost 1.36 COMPONENTS  program_options
unit_test_framework test_exec_monitor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


I put in some debug statements into the FindBoost.cmake file and it
seems that the Boost_VERSION is not getting defined.
520:[mjackson at Ferb:Build]$ cmake ../
WARNING: You are using Qt 4.4.3. Officially supported version is Qt 4.3
-- [PVRoboMet] MXADATAMODEL_TARGET_ADDED: ''
-- Plugin: [PVRoboMet] adding MXADataModel Library
-- Boost_VERSION:
-- Boost_MINOR_VERSION:


And replacing the FindBoost.cmake with the one from CMake 2.6.3 allows
the configuration to proceed to completion without errors.

So would it be possible to update the FindBoost.cmake that is included
to the one from CMake 2.6.3?

Thanks
Mike Jackson


More information about the ParaView mailing list