FindCBLAS.cmake 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ################################################################################
  16. if(NOT CBLAS_FOUND)
  17. if(WIN32)
  18. set(cblas_lib "cblas")
  19. else()
  20. set(cblas_lib cblas tatlas satlas)
  21. endif()
  22. find_path(CBLAS_INCLUDE_DIR NAMES cblas.h)
  23. find_library(CBLAS_LIBRARIES NAMES ${cblas_lib} PATHS /usr/lib/atlas /usr/lib64/atlas)
  24. include(FindPackageHandleStandardArgs)
  25. find_package_handle_standard_args(CBLAS
  26. DEFAULT_MSG
  27. CBLAS_LIBRARIES
  28. CBLAS_INCLUDE_DIR)
  29. mark_as_advanced(CBLAS_INCLUDE_DIR CBLAS_LIBRARIES)
  30. endif()