summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2014-05-15 16:19:55 +0200
committerTomas Bzatek <tbzatek@redhat.com>2014-05-15 16:19:55 +0200
commit09432ee848ff28d470cfc43d54f84fca2073c1fc (patch)
treec900d3c36cafc4ffa299bf8466601c4f619d9868 /tools
parent85a373f1a64a7b63f291fe9df9aabd89dd2835a9 (diff)
downloadopenlmi-providers-09432ee848ff28d470cfc43d54f84fca2073c1fc.tar.gz
openlmi-providers-09432ee848ff28d470cfc43d54f84fca2073c1fc.tar.xz
openlmi-providers-09432ee848ff28d470cfc43d54f84fca2073c1fc.zip
Include profile (un)registration in the (un)register-PROVIDER make targets
This is an attempt to include profile (un)registration within the (un)register-PROVIDER make target. This commit extends the cim_registration macro by an extra argument of the profile file or list of profile files. To preserve API of the CMake modules this extra argument is an variable arg in fact and does not need to be specified. Pass a list variable to specify multiple profile files.
Diffstat (limited to 'tools')
-rw-r--r--tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl b/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl
index 237f20e..37aac2f 100644
--- a/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl
+++ b/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl
@@ -41,7 +41,7 @@ set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_{{ PROJECT_NAME }}_Profile.mof")
profile_mof_generate("90_LMI_{{ PROJECT_NAME }}_Profile.mof.skel" "${TARGET_MOF}" "${CIM_PROVIDERS_CLASSES}")
# Create registration file
-cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers)
+cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers "${TARGET_MOF}")
install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/)
install(PROGRAMS ${CIMPROVAGT_SCRIPT} DESTINATION libexec/pegasus)