summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2014-05-05 09:46:08 +0200
committerRadek Novacek <rnovacek@redhat.com>2014-05-09 09:31:59 +0200
commit16e07602babccec25e1e0dfe2d5a1bead5417530 (patch)
treeb4ea9d6fa67fd28e4dbc4999929f5da98d43dec3
parent5b1484af041c30c0a463d50244af0f57f7f844d6 (diff)
downloadopenlmi-providers-16e07602babccec25e1e0dfe2d5a1bead5417530.tar.gz
openlmi-providers-16e07602babccec25e1e0dfe2d5a1bead5417530.tar.xz
openlmi-providers-16e07602babccec25e1e0dfe2d5a1bead5417530.zip
cmake: install mof for service-legacy
-rw-r--r--mof/CMakeLists.txt5
-rw-r--r--src/service/CMakeLists.txt2
2 files changed, 6 insertions, 1 deletions
diff --git a/mof/CMakeLists.txt b/mof/CMakeLists.txt
index f367434..0c020a1 100644
--- a/mof/CMakeLists.txt
+++ b/mof/CMakeLists.txt
@@ -13,6 +13,11 @@ if (WITH-SERVICE)
install(FILES 60_LMI_Service.mof DESTINATION share/openlmi-providers/)
endif (WITH-SERVICE)
+if (WITH-SERVICE-LEGACY)
+ install(FILES 60_LMI_Service-legacy.mof DESTINATION share/openlmi-providers
+ RENAME 60_LMI_Service.mof)
+endif (WITH-SERVICE-LEGACY)
+
if (WITH-ACCOUNT)
install(FILES 60_LMI_Account.mof DESTINATION share/openlmi-providers/)
endif (WITH-ACCOUNT)
diff --git a/src/service/CMakeLists.txt b/src/service/CMakeLists.txt
index 6d75d38..92e94dc 100644
--- a/src/service/CMakeLists.txt
+++ b/src/service/CMakeLists.txt
@@ -24,7 +24,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMPI_INCLUDE_DIR})
target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES})
# Create registration file
-cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers)
+cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} "60_LMI_Service.mof" share/openlmi-providers)
set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_Service_Profile.mof")
profile_mof_generate("90_LMI_Service_Profile.mof.skel" "${TARGET_MOF}" "LMI_Service")