]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: move install(.. ./mgr) down to mgr
authorKefu Chai <kchai@redhat.com>
Fri, 15 Feb 2019 11:57:02 +0000 (19:57 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Feb 2019 13:03:11 +0000 (21:03 +0800)
this helps to modularize the CMakeLists.txt

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/CMakeLists.txt
src/pybind/mgr/CMakeLists.txt

index 1538b6fec996023b7ed6202c8f1b5c826ac36ea2..664543172a121fdf0567a8289c7d746dd287286a 100644 (file)
@@ -96,15 +96,5 @@ if(WITH_MGR)
       message(WARNING "could not determine ssl version of python crypto lib")
     endif()
   endif(USE_OPENSSL)
-
-  # Location needs to match default setting for mgr_module_path, currently:
-  # OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr")
-  install(DIRECTORY
-    ${CMAKE_CURRENT_SOURCE_DIR}/mgr
-    DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}
-    REGEX ".*/CMakeLists.txt" EXCLUDE
-    REGEX ".*/\\.gitignore" EXCLUDE
-    REGEX ".*/hello/.*" EXCLUDE
-    REGEX ".*/osd_perf_query/.*" EXCLUDE)
   add_subdirectory(mgr)
 endif(WITH_MGR)
index 8f48689fe406b1b006c37b1651914cd33d5a3657..216cda718c35d9721dec5b66ec33e4e32097aeba 100644 (file)
@@ -2,3 +2,13 @@ add_subdirectory(dashboard)
 add_subdirectory(insights)
 add_subdirectory(ansible)
 add_subdirectory(orchestrator_cli)
+
+# Location needs to match default setting for mgr_module_path, currently:
+# OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr")
+install(DIRECTORY
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}
+  REGEX "CMakeLists.txt" EXCLUDE
+  REGEX "\\.gitignore" EXCLUDE
+  REGEX "hello/.*" EXCLUDE
+  REGEX "osd_perf_query/.*" EXCLUDE)