[Liblas-commits] hg-main-tree: get rid of WITH_LIBLAS-not-used message

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Mar 18 10:06:10 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/6844ef6afa8d
changeset: 364:6844ef6afa8d
user:      Kirk McKelvey <kirkoman at lizardtech.com>
date:      Fri Mar 18 09:06:04 2011 -0500
description:
get rid of WITH_LIBLAS-not-used message

diffstat:

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

diffs (21 lines):

diff -r d68bcc7451fb -r 6844ef6afa8d CMakeLists.txt
--- a/CMakeLists.txt	Fri Mar 18 09:02:12 2011 -0500
+++ b/CMakeLists.txt	Fri Mar 18 09:06:04 2011 -0500
@@ -317,7 +317,8 @@
 set(WITH_STATIC_LIBLAS FALSE CACHE BOOL "Choose if libLAS should be statically linked")
 mark_as_advanced(WITH_STATIC_LIBLAS)
 
-find_package(LibLAS 1.6.0)
+if(WITH_LIBLAS)
+    find_package(LibLAS 1.6.0)
     if(LIBLAS_FOUND)
         set(CMAKE_REQUIRED_LIBRARIES ${LIBLAS_LIBRARY})
         include_directories(${LIBLAS_INCLUDE_DIR})
@@ -326,6 +327,7 @@
         mark_as_advanced(CLEAR LIBLAS_VERSION) 
         set(LIBPC_HAVE_LIBLAS 1)
     endif()
+endif()
 
 if (NOT LIBLAS_FOUND)
   message(FATAL_ERROR


More information about the Liblas-commits mailing list