Commit 28fe25bc authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Reduce differences to Gaudi FindOracle


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@19604 4525493e-7705-40b1-a816-d608a930855b
parent 34b4e4d9
......@@ -7,26 +7,23 @@
# ORACLE_LIBRARY
# ORACLE_LIBRARIES (not cached)
# ORACLE_LIBRARY_DIRS (not cached)
# ORACLE_EXECUTABLE
# SQLPLUS_EXECUTABLE
# ORACLE_BINARY_PATH (not cached)
find_path(ORACLE_INCLUDE_DIR oci.h)
find_library(ORACLE_LIBRARY NAMES clntsh oci)
find_program(ORACLE_EXECUTABLE NAMES sqlplus)
find_program(SQLPLUS_EXECUTABLE NAMES sqlplus
HINTS ${ORACLE_INCLUDE_DIR}/../bin)
# handle the QUIETLY and REQUIRED arguments and set ORACLE_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Oracle DEFAULT_MSG ORACLE_INCLUDE_DIR ORACLE_LIBRARY ORACLE_EXECUTABLE)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Oracle DEFAULT_MSG ORACLE_INCLUDE_DIR ORACLE_LIBRARY)
mark_as_advanced(ORACLE_FOUND ORACLE_INCLUDE_DIR ORACLE_LIBRARY ORACLE_EXECUTABLE)
mark_as_advanced(ORACLE_FOUND ORACLE_INCLUDE_DIR ORACLE_LIBRARY SQLPLUS_EXECUTABLE)
set(ORACLE_INCLUDE_DIRS ${ORACLE_INCLUDE_DIR})
get_filename_component(ORACLE_LIBRARY_DIRS ${ORACLE_LIBRARY} PATH)
get_filename_component(ORACLE_BINARY_PATH ${ORACLE_EXECUTABLE} PATH)
get_filename_component(ORACLE_BINARY_PATH ${SQLPLUS_EXECUTABLE} PATH)
set(ORACLE_LIBRARIES ${ORACLE_LIBRARY})
# Oracle-specific environment variables (as in LCGCMT)
set(ORACLE_ENVIRONMENT SET NLS_LANG american_america.WE8ISO8859P1
SET ORA_FPU_PRECISION EXTENDED)
......@@ -31,9 +31,12 @@ coral_env_for_package(MySQL)
coral_env_for_package(SQLite)
coral_env_for_package(Frontier_Client)
# Runtime environment for CERN's Oracle databases
# New deployment strategy for tnsnames.ora (CORALCOOL-2756, SPI-758, SPI-726).
# Also workaround for obsolete tnsnames.ora in LHCb cvmfs (CORALCOOL-2164).
# Disable Kerberos authentication on mac (CORALCOOL-2763 and CORALCOOL-1244).
coral_build_and_release_env(SET NLS_LANG american_america.WE8ISO8859P1)
coral_build_and_release_env(SET ORA_FPU_PRECISION EXTENDED)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
coral_build_and_release_env(SET TNS_ADMIN /afs/cern.ch/sw/lcg/app/releases/CORAL/internal/oracle/admin/adminNoKerberos)
else()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment