Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2 from jamercee/master
Fixed a compile error in FreeBSD 8.2, using the lates GCC version 4.2.1
  • Loading branch information
mloskot committed Feb 25, 2012
2 parents 901e1ba + 6e45bdb commit 631977a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cmake/SociConfig.cmake
Expand Up @@ -35,7 +35,11 @@ else()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC ${SOCI_GCC_CLANG_COMMON_FLAGS}")
if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98")
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98")
endif()
endif()

elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER}" MATCHES "clang")
Expand Down

0 comments on commit 631977a

Please sign in to comment.