FindNUMA.cmake 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. # - Try to find the Numa library
  17. # Once done this will define
  18. #
  19. # NUMA_FOUND - system has the numa library
  20. # NUMA_INCLUDE_DIR - the numa include directory
  21. # NUMA_LIBRARIES - The libraries needed to use numa
  22. IF (NOT NUMA_FOUND)
  23. SET (numa_lib "numa")
  24. FIND_PATH (NUMA_INCLUDE_DIR NAMES numa.h PATHS /usr/include /usr/local/include /usr/share/include)
  25. FIND_LIBRARY (NUMA_LIBRARIES NAMES ${numa_lib} PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /usr/share)
  26. find_package_handle_standard_args(numa DEFAULT_MSG
  27. NUMA_LIBRARIES
  28. NUMA_INCLUDE_DIR
  29. )
  30. MARK_AS_ADVANCED(NUMA_INCLUDE_DIR NUMA_LIBRARIES)
  31. ENDIF()