[Kde-pim] Review Request 119762: FindSqlite: Use CMAKE_FLAGS the right way in try_compile().

Raphael Kubo da Costa rakuco at FreeBSD.org
Wed Aug 13 12:47:42 BST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119762/
-----------------------------------------------------------

Review request for Akonadi and Dan Vrátil.


Repository: akonadi


Description
-------

This fixes f90774f1 ("Check whether Sqlite is compiled with
SQLITE_ENABLE_UNLOCK_NOTIFY"), so that SQLITE_INCLUDE_DIR is really
passed to the try_compile() call. So far, it was just a NOP and the
compilation only worked if sqlite3.h was in a directory the compiler
uses automatically.

try_compile()'s syntax is a bit complicated, and CMAKE_FLAGS expects a
series of arguments as if they had been passed to the command line, so
instead of "CMAKE_FLAGS INCLUDE_DIRECTORIES /some/dir" one needs to use
"CMAKE_FLAGS -DINCLUDE_DIRECTORIES:PATH=/some/dir".


Diffs
-----

  cmake/modules/FindSqlite.cmake ad8cdb4dfea9a68772751c9fafab933f4a0fe232 

Diff: https://git.reviewboard.kde.org/r/119762/diff/


Testing
-------

SQLite is properly detected when it is in /usr/local.


Thanks,

Raphael Kubo da Costa

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list