Permalink
Browse files

CMAKE: Fix Oracle finder on Win64

  • Loading branch information...
1 parent 551d5f4 commit 4e3c9aa770d65d290c98eefddf7f72cc157e044c @szekerest szekerest committed Apr 2, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 cmake/FindOracle.cmake
@@ -49,7 +49,9 @@ if(DEFINED ENV{ORACLE_HOME})
find_library(ORACLE_OCI_LIBRARY NAMES ${ORACLE_OCI_NAMES} PATHS ${ORACLE_LIB_DIR})
find_library(ORACLE_OCCI_LIBRARY NAMES ${ORACLE_OCCI_NAMES} PATHS ${ORACLE_LIB_DIR})
- find_library(ORACLE_NNZ_LIBRARY NAMES ${ORACLE_NNZ_NAMES} PATHS ${ORACLE_LIB_DIR})
+ if (NOT CMAKE_CL_64)
+ find_library(ORACLE_NNZ_LIBRARY NAMES ${ORACLE_NNZ_NAMES} PATHS ${ORACLE_LIB_DIR})
+ endif()
set(ORACLE_LIBRARY ${ORACLE_OCI_LIBRARY} ${ORACLE_OCCI_LIBRARY} ${ORACLE_NNZ_LIBRARY})

0 comments on commit 4e3c9aa

Please sign in to comment.