Changeset 2578 for trunk


Ignore:
Timestamp:
06/27/12 16:42:59 (13 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: build asap

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Minor change to support before and after switch to swig.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/withcasa.cmake

    r2573 r2578  
    124124endif()
    125125message( STATUS "LIBXML2_LIBRARY = " ${LIBXML2_LIBRARY} )
    126 #set( ASDM_INCLUDE_DIR_OLD ${CASA_CODE_PATH}/alma/ASDM
    127 #                          ${CASA_CODE_PATH}/alma/Enumerations
    128 #                          ${CASA_CODE_PATH}/alma/ASDMBinaries
    129 #                          ${CASA_CODE_PATH}/alma/Enumtcl
     126
     127set( ASDM_INCLUDE_ROOT ${CASA_CODE_PATH} )
     128if ( EXISTS ${CASA_CODE_PATH}/include/alma )
     129   set( ASDM_INCLUDE_ROOT ${CASA_CODE_PATH}/include )
     130endif()
     131#set( ASDM_INCLUDE_DIR_OLD ${ASDM_INCLUDE_ROOT}/alma/ASDM
     132#                          ${ASDM_INCLUDE_ROOT}/alma/Enumerations
     133#                          ${ASDM_INCLUDE_ROOT}/alma/ASDMBinaries
     134#                          ${ASDM_INCLUDE_ROOT}/alma/Enumtcl
    130135#                          ${LIBXML2_INCLUDE_DIR} )
    131136#set( ASDM_LIBRARY_OLD ${casaroot}/${arch}/lib/libalma${CMAKE_SHARED_LIBRARY_SUFFIX}
    132137#                      ${LIBXML2_LIBRARY}/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX} )
    133 #set( ASDM_INCLUDE_DIR ${CASA_CODE_PATH}/alma_v3/ASDM
    134 #                      ${CASA_CODE_PATH}/alma_v3/Enumerations
    135 #                      ${CASA_CODE_PATH}/alma_v3/ASDMBinaries
    136 #                      ${CASA_CODE_PATH}/alma_v3/Enumtcl
     138#set( ASDM_INCLUDE_DIR ${ASDM_INCLUDE_ROOT}/alma_v3/ASDM
     139#                      ${ASDM_INCLUDE_ROOT}/alma_v3/Enumerations
     140#                      ${ASDM_INCLUDE_ROOT}/alma_v3/ASDMBinaries
     141#                      ${ASDM_INCLUDE_ROOT}/alma_v3/Enumtcl
    137142#                      ${LIBXML2_INCLUDE_DIR} )
    138143#set( ASDM_LIBRARY ${casaroot}/${arch}/lib/libalma_v3${CMAKE_SHARED_LIBRARY_SUFFIX}
    139144#                  ${LIBXML2_LIBRARY}/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX} )
    140 set( ASDM_INCLUDE_DIR ${CASA_CODE_PATH}/alma/ASDM
    141                       ${CASA_CODE_PATH}/alma/Enumerations
    142                       ${CASA_CODE_PATH}/alma/ASDMBinaries
    143                       ${CASA_CODE_PATH}/alma/Enumtcl
     145set( ASDM_INCLUDE_DIR ${ASDM_INCLUDE_ROOT}/alma/ASDM
     146                      ${ASDM_INCLUDE_ROOT}/alma/Enumerations
     147                      ${ASDM_INCLUDE_ROOT}/alma/ASDMBinaries
     148                      ${ASDM_INCLUDE_ROOT}/alma/Enumtcl
    144149                      ${LIBXML2_INCLUDE_DIR} )
    145150if ( NOT ALMA_LIB_PATH )
Note: See TracChangeset for help on using the changeset viewer.