From 693272ecdf7c15ead3c716f55fa7e0dd4b0a3ded Mon Sep 17 00:00:00 2001 From: "Edward J. Schwartz" Date: Tue, 16 Feb 2016 09:20:41 -0500 Subject: [PATCH] Fix build when odbc is not available --- packages/myddas/odbc/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/myddas/odbc/CMakeLists.txt b/packages/myddas/odbc/CMakeLists.txt index fb0701890..a16b26ac2 100644 --- a/packages/myddas/odbc/CMakeLists.txt +++ b/packages/myddas/odbc/CMakeLists.txt @@ -21,9 +21,6 @@ add_definitions (-DMYDDAS_ODBC=1) add_library (Yapodbc SHARED ${YAPODBC_SOURCES}) target_link_libraries(Yapodbc libYap ${ODBC_LIBRARIES}) include_directories (${ODBC_INCLUDE_DIRECTORIES} ..) -else() - add_definitions (-DMYDDAS_ODBC=0) - endif (ODBC_FOUND) set_target_properties (Yapodbc PROPERTIES POSITION_INDEPENDENT_CODE ON @@ -31,9 +28,11 @@ set_target_properties (Yapodbc PROPERTIES SOVERSION ${SO_MAJOR} ) - install(TARGETS Yapodbc LIBRARY DESTINATION ${libdir} ARCHIVE DESTINATION ${libdir} ) +else() + add_definitions (-DMYDDAS_ODBC=0) + endif (ODBC_FOUND)