Hi Jim,

thanks for having tested SOCI on FreeBSD!


2012/1/31 Jim Carroll <[email protected]>

> There are a series of options selected in the SociConfig.cmake file that
> are
> tripping up our particular platform.
> Specifically, c++ was being invoked with -ansi -std=c++98
>

The option for g++ in the CMake configuration should be conditional, not
suppressed.
According to
http://www.openguru.com/2009/04/cmake-detecting-platformoperating.html , we
could have something like:
    if (CMAKE_COMPILER_IS_GNUCXX)
      if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
        set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98")
      endif()
    endif()

(note that I have not tested it)

If it works, you can generate a pull request (you have to clone
https://github.com/SOCI/soci , commit your patch on your clone and create a
pull request: https://github.com/SOCI/soci/pulls), and Mateusz may
integrate it within the SOCI Git repository.

Cheers

Denis
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to