summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2014-05-05 10:02:07 +0200
committerRadek Novacek <rnovacek@redhat.com>2014-05-09 09:31:59 +0200
commit126ad3eb0c041b03908cad78d2840d07602b84d1 (patch)
tree1dcdec1e7d0d25d399de964f0fe588fb8c45d918 /src
parent16e07602babccec25e1e0dfe2d5a1bead5417530 (diff)
downloadopenlmi-providers-126ad3eb0c041b03908cad78d2840d07602b84d1.tar.gz
openlmi-providers-126ad3eb0c041b03908cad78d2840d07602b84d1.tar.xz
openlmi-providers-126ad3eb0c041b03908cad78d2840d07602b84d1.zip
spec: modularize spec file
Add support for easier enabling/disabling providers on different versions of hosting operating system. Also add support for RHEL-6.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 75e655c..e0fbb4e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -22,6 +22,10 @@ if (WITH-SERVICE-LEGACY)
add_subdirectory(service)
endif (WITH-SERVICE-LEGACY)
+if (WITH-SERVICE AND WITH-SERVICE-LEGACY)
+ message(FATAL_ERROR "Service and Service-legacy can't be enabled together")
+endif (WITH-SERVICE AND WITH-SERVICE-LEGACY)
+
if (WITH-ACCOUNT)
add_subdirectory(account)
endif (WITH-ACCOUNT)