summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-10-19 17:45:41 +0000
committerasn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-10-19 17:45:41 +0000
commit435fa0484cb8d33b230fae02a0b345f75e6037d3 (patch)
tree3215a8930baacc2728f5d363d7e4218d43f3bf3f
parent0ac2e44132236c70523cddfacfcd424c85bd66c2 (diff)
downloadpki-435fa0484cb8d33b230fae02a0b345f75e6037d3.tar.gz
pki-435fa0484cb8d33b230fae02a0b345f75e6037d3.tar.xz
pki-435fa0484cb8d33b230fae02a0b345f75e6037d3.zip
cmake: Only install migrate project on RHCS.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1413 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
-rw-r--r--pki/CMakeLists.txt11
-rw-r--r--pki/base/CMakeLists.txt4
2 files changed, 11 insertions, 4 deletions
diff --git a/pki/CMakeLists.txt b/pki/CMakeLists.txt
index efa96e0a6..20384861c 100644
--- a/pki/CMakeLists.txt
+++ b/pki/CMakeLists.txt
@@ -5,7 +5,12 @@ cmake_minimum_required(VERSION 2.6.0)
# global needed variables
set(APPLICATION_NAME ${PROJECT_NAME})
-set(APPLICATION_FLAVOUR "dogtag")
+if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dogtag")
+ set(APPLICATION_FLAVOUR_DOGTAG TRUE)
+endif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dogtag")
+if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rhcs")
+ set(APPLICATION_FLAVOUR_RHCS TRUE)
+endif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rhcs")
set(APPLICATION_VERSION_MAJOR "1")
set(APPLICATION_VERSION_MINOR "0")
@@ -54,6 +59,6 @@ add_definitions(-DHAVE_CONFIG_H)
# check subdirectories
add_subdirectory(base)
-if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dogtag")
+if (APPLICATION_FLAVOUR_DOGTAG)
add_subdirectory(dogtag)
-endif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dogtag")
+endif (APPLICATION_FLAVOUR_DOGTAG)
diff --git a/pki/base/CMakeLists.txt b/pki/base/CMakeLists.txt
index 6f4e31ecc..ae14313b7 100644
--- a/pki/base/CMakeLists.txt
+++ b/pki/base/CMakeLists.txt
@@ -18,4 +18,6 @@ add_subdirectory(tks)
add_subdirectory(ra)
add_subdirectory(tps)
add_subdirectory(manage)
-add_subdirectory(migrate)
+if (APPLICATION_FLAVOUR_RHCS)
+ add_subdirectory(migrate)
+endif (APPLICATION_FLAVOUR_RHCS)