Ticket #31034: patch-findsqlite.diff

File patch-findsqlite.diff, 1.1 KB (added by cmutel (Chris Mutel), 13 years ago)
  • cmake/FindSqlite3.cmake

    old new  
    1919# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
    2020# searching for the same item do nothing.
    2121
    22 # try to use framework on mac
    23 # want clean framework path, not unix compatibility path
    24 IF (APPLE)
    25   IF (CMAKE_FIND_FRAMEWORK MATCHES "FIRST"
    26       OR CMAKE_FRAMEWORK_PATH MATCHES "ONLY"
    27       OR NOT CMAKE_FIND_FRAMEWORK)
    28     SET (CMAKE_FIND_FRAMEWORK_save ${CMAKE_FIND_FRAMEWORK} CACHE STRING "" FORCE)
    29     SET (CMAKE_FIND_FRAMEWORK "ONLY" CACHE STRING "" FORCE)
    30     #FIND_PATH(SQLITE3_INCLUDE_DIR SQLite3/sqlite3.h)
    31     FIND_LIBRARY(SQLITE3_LIBRARY SQLite3)
    32     IF (SQLITE3_LIBRARY)
    33       # FIND_PATH doesn't add "Headers" for a framework
    34       SET (SQLITE3_INCLUDE_DIR ${SQLITE3_LIBRARY}/Headers CACHE PATH "Path to a file.")
    35     ENDIF (SQLITE3_LIBRARY)
    36     SET (CMAKE_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK_save} CACHE STRING "" FORCE)
    37   ENDIF ()
    38 ENDIF (APPLE)
    39 
    4022FIND_PATH(SQLITE3_INCLUDE_DIR sqlite3.h
    4123  "$ENV{LIB_DIR}/include"
    4224  "$ENV{LIB_DIR}/include/sqlite"