Blame SOURCES/scap-security-guide-0.1.33-fix-guide-role-install-dir.patch

9c64d1
diff --git a/cmake/SSGCommon.cmake b/cmake/SSGCommon.cmake
9c64d1
index 45a841f..83a3ad0 100644
9c64d1
--- a/cmake/SSGCommon.cmake
9c64d1
+++ b/cmake/SSGCommon.cmake
9c64d1
@@ -753,7 +753,7 @@ macro(ssg_build_product PRODUCT)
9c64d1
     install(
9c64d1
        CODE "
9c64d1
            file(GLOB GUIDE_FILES \"${CMAKE_BINARY_DIR}/guides/ssg-${PRODUCT}-guide-*.html\") \n
9c64d1
-           file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${SSG_GUIDE_INSTALL_DIR}\"
9c64d1
+           file(INSTALL DESTINATION \"${SSG_GUIDE_INSTALL_DIR}\"
9c64d1
            TYPE FILE FILES \${GUIDE_FILES}
9c64d1
        )"
9c64d1
        COMPONENT doc
9c64d1
@@ -761,14 +761,14 @@ macro(ssg_build_product PRODUCT)
9c64d1
     install(
9c64d1
        CODE "
9c64d1
        file(GLOB ROLE_FILES \"${CMAKE_BINARY_DIR}/roles/ssg-${PRODUCT}-role-*.yml\") \n
9c64d1
-           file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${SSG_ROLE_INSTALL_DIR}\"
9c64d1
+           file(INSTALL DESTINATION \"${SSG_ROLE_INSTALL_DIR}\"
9c64d1
                TYPE FILE FILES \${ROLE_FILES}
9c64d1
        )"
9c64d1
     )
9c64d1
     install(
9c64d1
        CODE "
9c64d1
        file(GLOB ROLE_FILES \"${CMAKE_BINARY_DIR}/roles/ssg-${PRODUCT}-role-*.sh\") \n
9c64d1
-           file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${SSG_ROLE_INSTALL_DIR}\"
9c64d1
+           file(INSTALL DESTINATION \"${SSG_ROLE_INSTALL_DIR}\"
9c64d1
                TYPE FILE FILES \${ROLE_FILES}
9c64d1
        )"
9c64d1
     )
9c64d1
@@ -878,7 +878,7 @@ macro(ssg_build_derivative_product ORIGINAL SHORTNAME DERIVATIVE)
9c64d1
     install(
9c64d1
        CODE "
9c64d1
        file(GLOB GUIDE_FILES \"${CMAKE_BINARY_DIR}/guides/ssg-${DERIVATIVE}-guide-*.html\") \n
9c64d1
-           file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${SSG_GUIDE_INSTALL_DIR}\"
9c64d1
+           file(INSTALL DESTINATION \"${SSG_GUIDE_INSTALL_DIR}\"
9c64d1
            TYPE FILE FILES \${GUIDE_FILES}
9c64d1
        )"
9c64d1
        COMPONENT doc
9c64d1
@@ -886,14 +886,14 @@ macro(ssg_build_derivative_product ORIGINAL SHORTNAME DERIVATIVE)
9c64d1
     install(
9c64d1
        CODE "
9c64d1
        file(GLOB ROLE_FILES \"${CMAKE_BINARY_DIR}/roles/ssg-${DERIVATIVE}-role-*.yml\") \n
9c64d1
-           file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${SSG_ROLE_INSTALL_DIR}\"
9c64d1
+           file(INSTALL DESTINATION \"${SSG_ROLE_INSTALL_DIR}\"
9c64d1
                TYPE FILE FILES \${ROLE_FILES}
9c64d1
        )"
9c64d1
     )
9c64d1
     install(
9c64d1
        CODE "
9c64d1
        file(GLOB ROLE_FILES \"${CMAKE_BINARY_DIR}/roles/ssg-${DERIVATIVE}-role-*.sh\") \n
9c64d1
-           file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${SSG_ROLE_INSTALL_DIR}\"
9c64d1
+           file(INSTALL DESTINATION \"${SSG_ROLE_INSTALL_DIR}\"
9c64d1
                TYPE FILE FILES \${ROLE_FILES}
9c64d1
        )"
9c64d1
     )