Skip to content
Snippets Groups Projects
Commit 82c3fc5d authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Bug 1310: New FindCPPLapack macro. Several small fixes

parent b9047ac2
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,7 @@ CEP/Pipeline/bootstrap -text
CEP/Pipeline/library/lioff.clusterdesc -text
CEP/Pipeline/library/makevds.bash -text
CMake/FindBlitz.cmake -text
CMake/FindCPPLapack.cmake -text
CMake/makeversion -text
CMake/variants/variants.bgfen0 -text
CMake/variants/variants.rs002 -text
......
......@@ -34,7 +34,8 @@ if(NOT BLITZ_FOUND)
find_path(BLITZ_INCLUDE_DIR blitz/blitz.h)
find_library(BLITZ_LIBRARY blitz)
mark_as_advanced(BLITZ_INCLUDE_DIR BLITZ_LIBRARY)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Blitz DEFAULT_MSG
BLITZ_LIBRARY BLITZ_INCLUDE_DIR)
......
# $Id: FindCPPLapack.cmake 13415 2009-06-17 12:51:37Z loose $
#
# Copyright (C) 2008-2009
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Try to find CPPLapack, a C++ class wrapper for BLAS and LAPACK.
#
# This will define:
#
# CPPLAPACK_FOUND - system has CPPLapack
# CPPLAPACK_INCLUDE_DIR - the CPPLapack include directory (cached)
# CPPLAPACK_INCLUDE_DIRS - the CPPLapack include directories
# (identical to CPPLAPACK_INCLUDE_DIR)
# CPPLAPACK_LIBRARIES - libraries that CPPLapack depends upon
if(NOT CPPLAPACK_FOUND)
find_path(CPPLAPACK_INCLUDE_DIR cpplapack.h)
find_library(LAPACK_LIBRARY lapack)
find_library(BLAS_LIBRARY blas)
mark_as_advanced(CPPLAPACK_INCLUDE_DIR LAPACK_LIBRARY BLAS_LIBRARY)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CPPLapack DEFAULT_MSG
CPPLAPACK_INCLUDE_DIR LAPACK_LIBRARY BLAS_LIBRARY)
set(CPPLAPACK_INCLUDE_DIRS ${CPPLAPACK_INCLUDE_DIR})
set(CPPLAPACK_LIBRARIES ${LAPACK_LIBRARY} ${BLAS_LIBRARY})
endif(NOT CPPLAPACK_FOUND)
......@@ -35,7 +35,8 @@ if(NOT PQXX_FOUND)
find_path(PQXX_INCLUDE_DIR pqxx/pqxx)
find_library(PQXX_LIBRARY pqxx)
find_library(PQ_LIBRARY pq)
mark_as_advanced(PQXX_INCLUDE_DIR PQXX_LIBRARY PQ_LIBRARY)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PQXX DEFAULT_MSG
PQXX_LIBRARY PQ_LIBRARY PQXX_INCLUDE_DIR)
......
......@@ -74,6 +74,7 @@ if(NOT PVSS_FOUND)
NAMES VersInfo.mk
PATHS ENV PVSSHOME
PATH_SUFFIXES api)
mark_as_advanced(PVSS_VERSINFO_MK)
if(NOT PVSS_VERSINFO_MK)
set(pvss_version "V37_304")
else()
......@@ -102,6 +103,9 @@ if(NOT PVSS_FOUND)
list(APPEND pvss_check_list PVSS_${lib}_LIBRARY)
endforeach(lib Manager Messages Datapoint Basics bcm)
# Mark all variables in pvss_check_list as advanced
mark_as_advanced(${pvss_check_list})
# Handle the QUIETLY and REQUIRED arguments and set PVSS_FOUND to TRUE if
# all elements of pvss_check_list are TRUE.
include(FindPackageHandleStandardArgs)
......
......@@ -34,6 +34,7 @@ macro(mac_add_protocol _protocol _templ_dir)
# Search for the autogen program
find_program(AUTOGEN_EXECUTABLE autogen)
mark_as_advanced(AUTOGEN_EXECUTABLE)
if(NOT AUTOGEN_EXECUTABLE)
message(FATAL_ERROR
"Could not find autogen - the Automated Program Generator")
......
......@@ -23,3 +23,6 @@ option(USE_BACKTRACE "Use backtrace" OFF)
# Where to find Postgres libraries
set(PQXX_PREFIX_PATH /usr/local/pgsql)
# Search Lapack in /usr first, because Lapack library in /usr/local is broken!
set(CPPLAPACK_PREFIX_PATH /usr)
......@@ -39,6 +39,7 @@ lofar_add_package(${PROJECT_NAME} 1.0 DEPENDS Common)
## ---------------------------------------------------------------------------
include(LofarFindPackage)
lofar_find_package(Casacore COMPONENTS casa)
lofar_find_package(Blitz)
## ---------------------------------------------------------------------------
## Generate configuration header file.
......
......@@ -53,6 +53,7 @@ dnl
lofar_GENERAL
lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,)
lofar_AIPSPP(0,"-lcasa")
lofar_BLITZ(0)
dnl
dnl Output Makefiles
......
......@@ -13,6 +13,12 @@
/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H 1
/* Define to 1 if you have the <net/ethernet.h> header file. */
#cmakedefine HAVE_NET_ETHERNET_H 1
/* Define to 1 if you have the <netinet/in.h> header file. */
#cmakedefine HAVE_NETINET_IN_H 1
/* Define to 1 if you have the <signal.h> header file. */
#cmakedefine HAVE_SIGNAL_H 1
......@@ -84,6 +90,9 @@
/* Define if BG/L MPICH is installed */
#cmakedefine HAVE_BGLMPICH 1
/* Define if Blitz is installed */
#cmakedefine HAVE_BLITZ 1
/* Define if BOOST is installed */
#cmakedefine HAVE_BOOST 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment