Hi opensg developers,
I have a request for a change in CMake/OSGConfigurePackages.cmake.
The boost library selection settings are hardcoded at the moment:
SET(Boost_USE_MULTITHREADED ON )
IF(NOT Boost_USE_STATIC_LIBS)
SET(Boost_USE_STATIC_LIBS OFF CACHE INTERNAL "")
ENDIF(NOT Boost_USE_STATIC_LIBS)
SET(Boost_USE_STATIC_LIBS OFF CACHE INTERNAL "")
ENDIF(NOT Boost_USE_STATIC_LIBS)
(By the way, the IF statement is redundant, because this is the default semantics for cache variables.)
It is much better to give a user the chance to change the settings at will:
SET(Boost_USE_MULTITHREADED ON CACHE BOOL "boost built with multithreading support")
SET(Boost_USE_STATIC_LIBS OFF CACHE BOOL "boost built as static library")
SET(Boost_USE_STATIC_RUNTIME OFF CACHE BOOL "boost built against static msvcrt")
SET(Boost_USE_STATIC_LIBS OFF CACHE BOOL "boost built as static library")
SET(Boost_USE_STATIC_RUNTIME OFF CACHE BOOL "boost built against static msvcrt")
Now a user can change the settings in cmake if necessary. And the default settings are set as before.
You can set the variables as advanced if you wish using mark_as_advanced():
mark_as_advanced(Boost_USE_MULTITHREADED Boost_USE_STATIC_LIBS Boost_USE_STATIC_RUNTIME)
Could you please make the boost setting more user friendly?
------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
