From 97d3402b9c2260134d317e743f47c9bb29c27c2e Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 29 Jan 2013 17:42:51 +0100 Subject: buildbot fixes for storage/cassandra/CMakeLists.txt storage/cassandra/CMakeLists.txt: more thourough CHECK_CXX_SOURCE_COMPILES test, that checks whether boost::shared_ptr can work with --fno-rtti don't install anything in INSTALL_SYSCONFDIR, if the latter is unset --- storage/cassandra/CMakeLists.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'storage/cassandra') diff --git a/storage/cassandra/CMakeLists.txt b/storage/cassandra/CMakeLists.txt index 2fca1803d3c..251cfe65e6b 100644 --- a/storage/cassandra/CMakeLists.txt +++ b/storage/cassandra/CMakeLists.txt @@ -20,10 +20,17 @@ ENDIF() INCLUDE_DIRECTORIES(AFTER ${Thrift_INCLUDE_DIRS}) SET(CMAKE_REQUIRED_INCLUDES ${Thrift_INCLUDE_DIRS}) +STRING(REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) +STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) + CHECK_CXX_SOURCE_COMPILES( " #include -int main() { return 0; } +#include +int main() { + boost::shared_ptr p(new char(10)); + return 0; +} " CASSANDRASE_OK) IF(CASSANDRASE_OK) @@ -39,11 +46,11 @@ IF(CASSANDRASE_OK) gen-cpp/cassandra_constants.cpp gen-cpp/Cassandra.h) - STRING(REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) - STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) LINK_DIRECTORIES(${LINK_DIR}) MYSQL_ADD_PLUGIN(cassandra ${cassandra_sources} STORAGE_ENGINE MODULE_ONLY LINK_LIBRARIES thrift COMPONENT CassandraSE) - INSTALL(FILES cassandra.cnf DESTINATION ${INSTALL_SYSCONFDIR}/my.cnf.d - COMPONENT CassandraSE) + IF (INSTALL_SYSCONFDIR) + INSTALL(FILES cassandra.cnf DESTINATION ${INSTALL_SYSCONFDIR}/my.cnf.d + COMPONENT CassandraSE) + ENDIF(INSTALL_SYSCONFDIR) ENDIF(CASSANDRASE_OK) -- cgit v1.2.1