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 | | |