File: CGAL_UseMKL.cmake

package info (click to toggle)
cgal 6.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144,952 kB
  • sloc: cpp: 811,597; ansic: 208,576; sh: 493; python: 411; makefile: 286; javascript: 174
file content (24 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This module setups the compiler for the MKL libraries.
# It assumes that find_package(MKL) was already called.

if ( MKL_FOUND AND NOT CGAL_MKL_SETUP )

  message( STATUS "MKL include:     ${MKL_INCLUDE_DIR}" )
  include_directories ( SYSTEM ${MKL_INCLUDE_DIR} )

  message( STATUS "MKL definitions: ${MKL_DEFINITIONS}" )
  add_definitions( ${MKL_DEFINITIONS} )
  if ( "${MKL_DEFINITIONS}" MATCHES ".*MKL_USE_F2C.*" )
    add_definitions( "-DCGAL_USE_F2C" )
  endif()

  if (MKL_LIBRARIES)
    message( STATUS "MKL libraries:   ${MKL_LIBRARIES}" )
    link_libraries( ${MKL_LIBRARIES} )
  endif()

  # Setup is done
  set ( CGAL_MKL_SETUP TRUE )

endif()