File: find_ccp.cmake

package info (click to toggle)
openmpi 1.6.5-9.1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 91,628 kB
  • ctags: 44,305
  • sloc: ansic: 408,966; cpp: 44,454; sh: 27,828; makefile: 10,486; asm: 3,882; python: 1,239; lex: 805; perl: 549; csh: 253; fortran: 232; f90: 126; tcl: 12
file content (42 lines) | stat: -rw-r--r-- 1,292 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) 2009      High Performance Computing Center Stuttgart, 
#                         University of Stuttgart.  All rights reserved.
# $COPYRIGHT$
# 
# Additional copyrights may follow
# 
# $HEADER$
#

# The CCP components need to import the type library ccpapi.tlb,
# if it's not installed, the CCP components won't be built.

# This module is included in a .windows file, it must return two variables:
# RESULT               : find result
# RESULT_INCLUDE_PATH  : the path need to include if RESULT is true

IF(NOT ORTE_WANT_CCP)
  SET(RESULT FALSE)
ELSEIF(NOT CCP_FOUND)
  MESSAGE(STATUS "looking for ccp...")

  IF(CMAKE_CL_64)
    FIND_PATH(CCP_LIB_PATH ccpapi.tlb PATHS $ENV{CCP_LIB64} )
  ELSE(CMAKE_CL_64)
    FIND_PATH(CCP_LIB_PATH ccpapi.tlb PATHS $ENV{CCP_LIB32} )
  ENDIF(CMAKE_CL_64)

  IF(CCP_LIB_PATH)
    SET(CCP_FOUND TRUE CACHE INTERNAL "find result of CCP.")
    SET(RESULT TRUE)
    SET(RESULT_INCLUDE_PATH ${CCP_LIB_PATH})
    MESSAGE(STATUS "looking for ccp...found.")
  ELSE(CCP_LIB_PATH)
    SET(CCP_FOUND FALSE CACHE INTERNAL "find result of CCP.")
    SET(RESULT FALSE)   
    MESSAGE(STATUS "looking for ccp...not found.")
  ENDIF(CCP_LIB_PATH)

ELSE(NOT CCP_FOUND)
  SET(RESULT_INCLUDE_PATH ${CCP_LIB_PATH})
  SET(RESULT TRUE)
ENDIF(NOT ORTE_WANT_CCP)