Changeset View
Changeset View
Standalone View
Standalone View
databases/mariadb100-server/files/patch-storage_oqgraph_CMakeLists.txt
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- storage/oqgraph/CMakeLists.txt.orig 2015-05-08 14:37:46 UTC | |||||
+++ storage/oqgraph/CMakeLists.txt | |||||
@@ -24,6 +24,8 @@ IF(MSVC) | |||||
# ENDIF() | |||||
ELSE() | |||||
# See if that works. On old gcc it'll fail because of -fno-rtti | |||||
+SET(CMAKE_REQUIRED_INCLUDES_SAVE ${CMAKE_REQUIRED_INCLUDES}) | |||||
+SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};${Boost_INCLUDES_DIRS}") | |||||
CHECK_CXX_SOURCE_COMPILES( | |||||
" | |||||
#define BOOST_NO_RTTI 1 | |||||
@@ -32,6 +34,7 @@ CHECK_CXX_SOURCE_COMPILES( | |||||
#include <boost/property_map/property_map.hpp> | |||||
int main() { return 0; } | |||||
" BOOST_OK) | |||||
+SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_SAVE}) | |||||
ENDIF() | |||||
IF(BOOST_OK) |