]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: remove unneeded C++ from cython build
authorJosh Durgin <jdurgin@redhat.com>
Wed, 30 Mar 2016 18:22:24 +0000 (11:22 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 30 Mar 2016 20:20:28 +0000 (13:20 -0700)
It looks like the unnecessary internal include dirs in the cephfs
cmake file were the reason language="c++" was added to pybind. The
system utime.h was being aliased by ceph's include/utime.h. Fix this
by using -iquote instead of -I, to only add ceph's include dir as a
search path for quoted #includes, not sytem headers. The automake
build already uses -iquote here.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/pybind/cephfs/CMakeLists.txt
src/pybind/rados/CMakeLists.txt
src/pybind/rbd/CMakeLists.txt

index 91d36ceaa9d5ecfad7a5433c7c5a9d21377b7464..61c469823c2fee49990b101d6afcd672996bfcb6 100644 (file)
@@ -2,7 +2,7 @@ add_custom_target(cython_cephfs
   COMMAND
   LDFLAGS=-L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
   CYTHON_BUILD_DIR=${CMAKE_BINARY_DIR}/src/pybind/cephfs
-  CFLAGS=\"-I${CMAKE_SOURCE_DIR}/src -I${CMAKE_BINARY_DIR}/include -I${CMAKE_SOURCE_DIR}/src/include -std=c++11\"
+  CFLAGS=\"-iquote ${CMAKE_SOURCE_DIR}/src/include\"
   python ${CMAKE_SOURCE_DIR}/src/pybind/cephfs/setup.py build --build-base ${CYTHON_MODULE_DIR} --verbose 
   WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/cephfs
   DEPENDS rados cephfs)
index 3b2cd38ff38e5cab5d2ee9d7a7b51c6e33adc18a..750c8cacafc04619f83a56c7c3f610f931a4c7fe 100644 (file)
@@ -2,7 +2,7 @@ add_custom_target(cython_rados
   COMMAND
   LDFLAGS=-L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
   CYTHON_BUILD_DIR=${CMAKE_BINARY_DIR}/src/pybind/rados
-  CFLAGS=\"-I${CMAKE_SOURCE_DIR}/src/include -std=c++11\"
+  CFLAGS=\"-iquote ${CMAKE_SOURCE_DIR}/src/include\"
   python ${CMAKE_SOURCE_DIR}/src/pybind/rados/setup.py build --build-base ${CYTHON_MODULE_DIR} --verbose 
   WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/rados
   DEPENDS rados)
index b5881530e049841020921dbd2e8f4bfd7edff094..84cecd8e1de433014b3a14f566b4153249c2a4a7 100644 (file)
@@ -2,7 +2,7 @@ add_custom_target(cython_rbd
   COMMAND
   LDFLAGS=-L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
   CYTHON_BUILD_DIR=${CMAKE_BINARY_DIR}/src/pybind/rbd
-  CFLAGS=\"-I${CMAKE_SOURCE_DIR}/src/include -std=c++11\"
+  CFLAGS=\"-iquote ${CMAKE_SOURCE_DIR}/src/include\"
   python ${CMAKE_SOURCE_DIR}/src/pybind/rbd/setup.py build --build-base ${CYTHON_MODULE_DIR} --verbose
   WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/rbd
   DEPENDS rbd)