Try to fix sqlite problem

pull/1/head
Timothy Pearson 13 years ago
parent 1104088efc
commit 2d47470461

@ -15,6 +15,7 @@ include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src/svnqt
)
link_directories(

@ -45,7 +45,7 @@ SET(SOURCES
cache/DatabaseException.cpp
)
IF (SQLITE_FOUND)
# IF (SQLITE_FOUND)
MESSAGE(STATUS "Build own sqlite3 database modul")
SET(SOURCES
${SOURCES}
@ -54,9 +54,9 @@ SET(SOURCES
cache/sqlite3/qsqlcachedresult.h
cache/sqlite3/qsql_sqlite3.h
)
ELSE (SQLITE_FOUND)
MESSAGE(SEND_ERROR "The QT3 version requires sqlite3 but could not found")
ENDIF (SQLITE_FOUND)
# ELSE (SQLITE_FOUND)
# MESSAGE(SEND_ERROR "The QT3 version requires sqlite3 but could not found")
# ENDIF (SQLITE_FOUND)
SET(CACHEINST_HEADERS
cache/LogCache.hpp
@ -148,12 +148,12 @@ SET(ALL_LINKFLAGS "${ALL_LINKFLAGS} ${APU_EXTRA_LIBFLAGS}")
SET_TARGET_PROPERTIES(${svnqt-name} PROPERTIES LINK_FLAGS "${ALL_LINKFLAGS} ${LINK_NO_UNDEFINED}")
TARGET_LINK_LIBRARIES(${svnqt-name} ${QT_LIBRARIES} ${SUBVERSION_ALL_LIBS})
IF (SQLITE_FOUND)
# IF (SQLITE_FOUND)
TARGET_LINK_LIBRARIES(${svnqt-name} ${SQLITE_LIBRARIES})
INCLUDE_DIRECTORIES(SQLITE_INCLUDE_DIR)
ELSE (SQLITE_FOUND)
TARGET_LINK_LIBRARIES(${svnqt-name} ${QT_QTSQL_LIBRARY})
ENDIF (SQLITE_FOUND)
# ELSE (SQLITE_FOUND)
# TARGET_LINK_LIBRARIES(${svnqt-name} ${QT_QTSQL_LIBRARY})
# ENDIF (SQLITE_FOUND)
# Just a small linking test
IF (BUILD_TESTS)

Loading…
Cancel
Save