Skip to content
Snippets Groups Projects
Commit f3eecfed authored by Eric Cano's avatar Eric Cano
Browse files

Moved some sql compilation/installation into server only sections of the cmake...

Moved some sql compilation/installation into server only sections of the cmake file to fix client-only packaging.
parent 6cb92d72
No related branches found
No related tags found
No related merge requests found
......@@ -290,14 +290,15 @@ if (${COMPILE_SERVER} STREQUAL "1")
CastorInstallSysconfigExample(nsd.normal)
CastorInstallSysconfigExample(nsd.secure)
CastorInstallLogrotate(castor-ns-server)
################################################################################
# Rules to build and install the ns oracle SQL schema
################################################################################
add_custom_target(cns_oracle_create.sql ALL
COMMAND ${CMAKE_SOURCE_DIR}/tools/makeSqlScripts.sh cns ${CASTOR_DB_VERSION} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS oracleSchema.sql oracleTrailer.sql
COMMENT Creating cns_oracle_create.sql
)
CastorInstallSQL(cns_oracle_create.sql)
endif (${COMPILE_SERVER} STREQUAL "1")
################################################################################
# Rules to build and install the ns oracle SQL schema
################################################################################
add_custom_target(cns_oracle_create.sql ALL
COMMAND ${CMAKE_SOURCE_DIR}/tools/makeSqlScripts.sh cns ${CASTOR_DB_VERSION} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS oracleSchema.sql oracleTrailer.sql
COMMENT Creating cns_oracle_create.sql
)
CastorInstallSQL(cns_oracle_create.sql)
......@@ -69,14 +69,17 @@ CastorAddProC(Cupv_oracle_ifce)
CastorInstallInitScript(cupvd)
CastorInstallSysconfigExample(cupvd)
CastorInstallLogrotate(castor-upv-server)
################################################################################
# Rules to build and install the CUPV oracle SQL schema
################################################################################
add_custom_target(cupv_oracle_create.sql ALL
COMMAND ${CMAKE_SOURCE_DIR}/tools/makeSqlScripts.sh cupv ${CASTOR_DB_VERSION} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS oracleSchema.sql oracleTrailer.sql
COMMENT Creating cupv_oracle_create.sql
)
CastorInstallSQL(cupv_oracle_create.sql)
endif (${COMPILE_SERVER} STREQUAL "1")
################################################################################
# Rules to build and install the CUPV oracle SQL schema
################################################################################
add_custom_target(cupv_oracle_create.sql ALL
COMMAND ${CMAKE_SOURCE_DIR}/tools/makeSqlScripts.sh cupv ${CASTOR_DB_VERSION} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS oracleSchema.sql oracleTrailer.sql
COMMENT Creating cupv_oracle_create.sql
)
CastorInstallSQL(cupv_oracle_create.sql)
......@@ -147,6 +147,16 @@ if (${COMPILE_SERVER} STREQUAL "1")
CastorInstallSysconfigExample (vmgrd)
CastorInstallInitScript (vmgrd)
CastorInstallConfigFile (VMGR)
################################################################################
# Rules to build and install the VMGR oracle SQL schema
################################################################################
add_custom_target(vmgr_oracle_create.sql ALL
COMMAND ${CMAKE_SOURCE_DIR}/tools/makeSqlScripts.sh vmgr ${CASTOR_DB_VERSION} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS oracleSchema.sql oracleTrailer.sql
COMMENT Creating vmgr_oracle_create.sql
)
CastorInstallSQL(vmgr_oracle_create.sql)
endif (${COMPILE_SERVER} STREQUAL "1")
################################################################################
......@@ -190,13 +200,3 @@ foreach (CLIENT_EXE ${VMGR_CLIENT_EXES})
endforeach ()
target_link_libraries (vmgrdeletetape castorns)
install(TARGETS ${VMGR_CLIENT_EXES} DESTINATION ${CASTOR_DEST_BIN_DIR})
################################################################################
# Rules to build and install the VMGR oracle SQL schema
################################################################################
add_custom_target(vmgr_oracle_create.sql ALL
COMMAND ${CMAKE_SOURCE_DIR}/tools/makeSqlScripts.sh vmgr ${CASTOR_DB_VERSION} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS oracleSchema.sql oracleTrailer.sql
COMMENT Creating vmgr_oracle_create.sql
)
CastorInstallSQL(vmgr_oracle_create.sql)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment