CMake Build Linux Boost

Description

1) CMake links twice against later versions of boost thread date_time.

Dependencies.cmake:
-----------------------------

find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
..
if(Boost_FOUND AND Boost_VERSION GREATER 104900)
..
set(OGRE_BOOST_COMPONENTS thread date_time system chrono)

link.txt
--------
-lboost_thread -lpthread -lboost_date_time -lboost_thread -lpthread -lboost_date_time -lboost_system -lboost_chrono -lfreeimage /usr/local/lib/libzzip.so -lz -ldl -lboost_system -lboost_chrono

The second thread date_time is not needed or LIST(REMOVE_DUPLICATES Boost_LIBRARIES)

2) The shared lib Ogre.pc pkgconfig files need to be updated to link against boost_system for boost>104900 (not sure why chrono is needed in I so can't say whether it is needed. It isn't here).

3) FindOgre.cmake needs to be updated to return the OGRE_BOOST_COMPONENTS (boost>104900) for Static builds

4) The static build Ogre.pc links against -lboost-thread-mt, this will not exist on some systems. The libraries should be as per(3).

5) Why is FindOgre restricted to finding Ogre dependencies for Ogre static builds on platforms such as windows?

Environment

None

Assignee

Unassigned

Reporter

Dermont Gill

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure