]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix cmake build error. 15425/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Fri, 2 Jun 2017 04:11:59 +0000 (12:11 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Fri, 2 Jun 2017 04:11:59 +0000 (12:11 +0800)
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/rgw/CMakeLists.txt

index 59a5406ca004dbb37d91c95de1f4e41f48d83f35..6d2a5928164173f76c808bde026acbf692146be7 100644 (file)
@@ -239,8 +239,12 @@ install(TARGETS rgw DESTINATION ${CMAKE_INSTALL_LIBDIR})
 if(WITH_EMBEDDED)
   include(MergeStaticLibraries)
   add_library(cephd_rgw_base STATIC rgw_main.cc ${radosgw_admin_srcs})
-  target_include_directories(cephd_rgw_base PUBLIC ${FCGI_INCLUDE_DIR})
+  if(WITH_RADOSGW_FCGI_FRONTEND)  
+    target_include_directories(cephd_rgw_base PUBLIC ${FCGI_INCLUDE_DIR})
+  endif()
   set_target_properties(cephd_rgw_base PROPERTIES COMPILE_DEFINITIONS BUILDING_FOR_EMBEDDED)
   merge_static_libraries(cephd_rgw cephd_rgw_base rgw_a radosgw_a)
-  target_link_libraries(cephd_rgw ${FCGI_LIBRARY})
+  if(WITH_RADOSGW_FCGI_FRONTEND) 
+    target_link_libraries(cephd_rgw ${FCGI_LIBRARY})
+  endif()
 endif()