Changeset 2182


Ignore:
Timestamp:
05/30/11 16:09:55 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: Yes/No

JIRA Issue: No/Yes List JIRA ticket.

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Back to previous code except for appending new path to CMAKE_MODULE_PATH
variable instead of resetting it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/withcasa.cmake

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