File: getLocalConfig.cmake

package info (click to toggle)
scotchpy 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,476 kB
  • sloc: python: 4,882; ansic: 68; sh: 34; makefile: 32
file content (22 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# checks for scotch
if (DEFINED ENV{SCOTCHPY_SCOTCH})
  message(STATUS "SCOTCHPY_SCOTCH IS DEFINED")
  find_library(SCOTCH_LIB scotch PATHS $ENV{SCOTCHPY_SCOTCH} NO_DEFAULT_PATH)
else()
  message(STATUS "SEARCH FOR SYSTEM-INSTALLED SCOTCH")
  find_library(SCOTCH_LIB scotch)
endif()
if (NOT SCOTCH_LIB)
  set(PIP_BUILD_SCOTCH ON)
endif()

if(BUILD_PTSCOTCH)
  if (DEFINED ENV{SCOTCHPY_SCOTCH})
    find_library(PTSCOTCH_LIB ptscotch $ENV{SCOTCHPY_SCOTCH} NO_DEFAULT_PATH)
  else()
    find_library(PTSCOTCH_LIB ptscotch)
  endif()
  if (NOT PTSCOTCH_LIB)
    set(PIP_BUILD_PTSCOTCH ON)
   endif()
endif(BUILD_PTSCOTCH)