]> git.uio.no Git - u/mrichter/AliRoot.git/blob - cmake/modules/Findfink.cmake
Using ALICE_TARGET to define the system
[u/mrichter/AliRoot.git] / cmake / modules / Findfink.cmake
1 # -*- mode: cmake -*-
2 # - Finds fink instalation
3
4 If(APPLE)
5   Find_program(FINK fink)
6
7   If (${FINK} MATCHES "ROOT_CONFIG-NOTFOUND")
8     Set(FINK_FOUND FALSE)
9     Message(SEND_ERROR "Could not find fink, will continue but probably fail...")
10     Set(FINK_ROOT "/usr/local")
11   Else (${FINK} MATCHES "ROOT_CONFIG-NOTFOUND")
12     String(REPLACE "/bin/fink" "" FINK_ROOT ${FINK})
13     Message(STATUS "Found fink in ${FINK_ROOT}")
14   EndIf (${FINK} MATCHES "ROOT_CONFIG-NOTFOUND")
15
16 Else(APPLE)
17   Message(FATAL "fink only needed on Mac, something is very wrong...")
18 Endif(APPLE)
19