Changeset 2183 for trunk/cmake


Ignore:
Timestamp:
05/30/11 16:34:36 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added CASA_CODE_PATH option in asap cmake system.
It specifies where CASA code tree is checked out.
By default, CASA_CODE_PATH is set to $CASAROOT/code or
$CMAKE_SOURCE_DIR/../code depending on an existence of
$CASAROOT/code/install directory.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/withcasa.cmake

    r2182 r2183  
    6363
    6464# modules
    65 IF ( EXISTS ${casaroot}/code/install )
    66     set( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${casaroot}/code/install" )
    67 ELSE()
    68     set( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/../code/install" )
     65IF ( NOT DEFINED CASA_CODE_PATH )
     66    IF ( EXISTS ${casaroot}/code/install )
     67        set( CASA_CODE_PATH ${casaroot}/code )
     68    ELSE()
     69        set( CASA_CODE_PATH ${CMAKE_SOURCE_DIR}/../code )
     70    ENDIF()
    6971ENDIF()
     72message( STATUS "CASA_CODE_PATH = " ${CASA_CODE_PATH} )
     73set( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CASA_CODE_PATH}/install" )
     74#unset( CASA_CODE_PATH CACHE )
    7075message( STATUS "CMAKE_MODULE_PATH = " ${CMAKE_MODULE_PATH} )
    7176
Note: See TracChangeset for help on using the changeset viewer.