[Liblas-commits] hg: [cmake] Add */spatialindex subdirectory to INCLUDE_DIRECTORI...

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Oct 19 17:37:31 EDT 2009


changeset 219d4c382d12 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=219d4c382d12
summary: [cmake] Add */spatialindex subdirectory to INCLUDE_DIRECTORIES because installation layout vs include convention in libLAS may be not match.

diffstat:

 CMakeLists.txt |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 86bdc137f776 -r 219d4c382d12 CMakeLists.txt
--- a/CMakeLists.txt	Mon Oct 19 22:15:30 2009 +0100
+++ b/CMakeLists.txt	Mon Oct 19 22:37:15 2009 +0100
@@ -171,6 +171,9 @@
 
     IF(SPATIALINDEX_FOUND)
         INCLUDE_DIRECTORIES(${SPATIALINDEX_INCLUDE_DIR})
+        IF (IS_DIRECTORY ${SPATIALINDEX_INCLUDE_DIR}/spatialindex)
+            INCLUDE_DIRECTORIES(${SPATIALINDEX_INCLUDE_DIR}/spatialindex)
+        ENDIF()
         ADD_DEFINITIONS(-DHAVE_SPATIALINDEX=1)
     ENDIF()
 ENDIF()


More information about the Liblas-commits mailing list