[Liblas-commits] libpc: make libLAS 1.6.0 a required dependency for now

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Mar 15 14:34:25 EDT 2011


details:   http://hg.liblas.orglibpc/rev/f8363d37cf4f
changeset: 240:f8363d37cf4f
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Mar 15 13:32:40 2011 -0500
description:
make libLAS 1.6.0 a required dependency for now

diffstat:

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

diffs (28 lines):

diff -r f2c1db8836e9 -r f8363d37cf4f CMakeLists.txt
--- a/CMakeLists.txt	Tue Mar 15 14:24:49 2011 -0400
+++ b/CMakeLists.txt	Tue Mar 15 13:32:40 2011 -0500
@@ -310,8 +310,7 @@
 set(WITH_STATIC_LIBLAS FALSE CACHE BOOL "Choose if libLAS should be statically linked")
 mark_as_advanced(WITH_STATIC_LIBLAS)
 
-if(WITH_LIBLAS)
-    find_package(LibLAS 1.6.0)
+find_package(LibLAS 1.6.0)
     if(LIBLAS_FOUND)
         set(CMAKE_REQUIRED_LIBRARIES ${LIBLAS_LIBRARY})
         include_directories(${LIBLAS_INCLUDE_DIR})
@@ -320,10 +319,13 @@
         mark_as_advanced(CLEAR LIBLAS_VERSION) 
         set(LIBPC_HAVE_LIBLAS 1)
     endif()
+
+if (NOT LIBLAS_FOUND)
+  message(FATAL_ERROR
+    "libPC currently requires a working libLAS installation 1.6.0 or greater")
 endif()
 
 
-
 #------------------------------------------------------------------------------
 # installation path settings
 #------------------------------------------------------------------------------


More information about the Liblas-commits mailing list