~ubuntu-branches/debian/experimental/openscenegraph/experimental

« back to all changes in this revision

Viewing changes to OpenSceneGraph/CMakeModules/FindQuickTime.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Luaces
  • Date: 2010-05-03 21:42:01 UTC
  • mfrom: (1.1.9 upstream) (2.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20100503214201-iy060qxb94vsfv87
Tags: 2.8.3-3
* Added README.source. Thanks Manuel Montecelo.
* Removed FindGDAL.cmake file supplied by upstream since it does not
  detect current libgdal1-1.6.0. The script provided by CMake works
  fine.
* Removed openthreads-doc since OpenThreads documentation is shared with
  OpenSceneGraph's, hence this package was empty.
* Now ccache handling is being done automatically by CMake.
* Drop conflict dependencies with previous versions to let them coexist
  with current ones (Closes: #580079 #580081).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
IF(APPLE)
16
16
  FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h)
17
17
  FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
18
 
ELSE(APPLE)
 
18
ELSE()
19
19
  FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h
20
20
    $ENV{QUICKTIME_DIR}/include
21
21
    $ENV{QUICKTIME_DIR}
39
39
    PATH_SUFFIXES lib64 lib
40
40
  )
41
41
  FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
42
 
ENDIF(APPLE)
 
42
ENDIF()
 
43
 
43
44
 
44
45
SET(QUICKTIME_FOUND "NO")
45
46
IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
46
47
  SET(QUICKTIME_FOUND "YES")
47
 
ENDIF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
48
 
 
49
 
 
 
48
ENDIF()
 
49
 
 
50
IF(APPLE)
 
51
    #Quicktime is not supported under 64bit OSX build so we need to detect it and disable it.
 
52
    #First check to see if we are running with a native 64-bit compiler (10.6 default) and implicit arch
 
53
    IF(NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SIZEOF_VOID_P EQUAL 8)
 
54
        SET(QUICKTIME_FOUND "NO")
 
55
    ELSE()
 
56
        #Otherwise check to see if 64-bit is explicitly called for.
 
57
        LIST(FIND CMAKE_OSX_ARCHITECTURES "x86_64" has64Compile)
 
58
        IF(NOT has64Compile EQUAL -1)
 
59
            SET(QUICKTIME_FOUND "NO")
 
60
        ENDIF()
 
61
    ENDIF()
 
62
ENDIF()