Skip to content
Snippets Groups Projects
Select Git revision
  • 27c8e3bb8a4e20db314b9a47a1e9993b6687babd
  • master default protected
  • devel
  • adaptive_step_size
4 results

mc_work.go

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    LOFARBeam-buildfix.patch 1.95 KiB
    diff --git a/CMake/FindCasacore.cmake b/CMake/FindCasacore.cmake
    index 51d8339..299530f 100644
    --- a/CMake/FindCasacore.cmake
    +++ b/CMake/FindCasacore.cmake
    @@ -17,6 +17,8 @@
     #
     # Variables used by this module:
     #  CASACORE_ROOT_DIR         - Casacore root directory. 
    +#  BLAS_LIBS                 - override BLAS library
    +#  LAPACK_LIBS               - override LAPACK library
     #
     # Variables defined by this module:
     #  CASACORE_FOUND            - System has Casacore, which means that the
    @@ -232,7 +234,21 @@ else(NOT CASACORE_INCLUDE_DIR)
         elseif(${_comp} STREQUAL fits)
           casacore_find_package(CFITSIO REQUIRED)
         elseif(${_comp} STREQUAL scimath_f)
    -      casacore_find_package(LAPACK REQUIRED)
    +      # If only looking for LAPACK, no library will be added if LAPACK
    +      # is part of BLAS, as it is customary nowadays. So look for both
    +      # to avoid confusing linker errors on symbols used in headers/templates.
    +      if(DEFINED ENV{BLAS_LIBS})
    +        set(BLAS_FOUND YES)
    +        list(APPEND CASACORE_LIBRARIES $ENV{BLAS_LIBS})
    +      else()
    +        casacore_find_package(BLAS   REQUIRED)
    +      endif()
    +      if(DEFINED ENV{LAPACK_LIBS})
    +        set(LAPACK_FOUND YES)
    +        list(APPEND CASACORE_LIBRARIES $ENV{LAPACK_LIBS})
    +      else()
    +        casacore_find_package(LAPACK REQUIRED)
    +      endif()
         endif(${_comp} STREQUAL casa)
       endforeach(_comp ${_find_components})
     endif(NOT CASACORE_INCLUDE_DIR)
    
    # Required to find boost python stuff
    diff --git a/CMakeLists.txt b/CMakeLists.txt
    index bd1de34..c17d181 100644
    --- a/CMakeLists.txt
    +++ b/CMakeLists.txt
    @@ -82,6 +82,7 @@ if (BUILD_PYTHON)
         set(oldboostpy "3")
       endif()
       set(boostpy ${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
    +  set(Boost_NO_BOOST_CMAKE ON) 
       message(STATUS "Trying to find boost-python libraries with version suffix ${boostpy}")
       find_package(Boost 1.67.0 COMPONENTS python${boostpy} numpy${boostpy})
       if(NOT Boost_FOUND)
     	message(STATUS "GTKMM found.")