Changeset 2833 for trunk/CMakeLists.txt


Ignore:
Timestamp:
07/31/13 22:35:35 (11 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: Yes (CAS-3620)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: Yes

Module(s): sd

Description: modified so that building standalone ASAP using cmake doesn't require pgplot, doesn't compile/link plotter2 module, and plotter2 is excluded from asap module.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r2830 r2833  
    515515# PGPLOT (FORTRAN plotting package).
    516516# depends on X11
    517 if( STANDALONE )
    518   ############
    519   find_path( PGPLOT_INCLUDE_DIRS cpgplot.h
    520              PATHS /usr
    521              PATH_SUFFIXES include )
    522   if( PGPLOT_INCLUDE_DIRS MATCHES "NOTFOUND$" )
    523     message( FATAL ERROR "cpgplot.h could not be found. Please check!" )
    524   endif()
    525   find_library( CPGPLOT_LIB libcpgplot.${SO}
    526                 PATHS /usr
    527                 PATH_SUFFIXES lib64 lib )
    528   if( CPGPLOT_LIB MATCHES "NOTFOUND$" )
    529     message( FATAL ERROR "libcpgplot could not be found. Please check!" )
    530   endif()
    531   find_library( PGPLOT_LIB libpgplot.${SO}
    532                 PATHS /usr
    533                 PATH_SUFFIXES lib64 lib )
    534   if( PGPLOT_LIB MATCHES "NOTFOUND$" )
    535     message( FATAL ERROR "libpgplot could not be found. Please check!" )
    536   endif()
    537   set( PGPLOT_LIBRARIES "${CPGPLOT_LIB} ${PGPLOT_LIB} ${X11_LIBRARIES} ${FORTRAN_LIBRARIES} " )
    538   ############
    539 else()
     517# not require in standalone mode
     518if( NOT STANDALONE )
    540519  if( APPLE )
    541520    set( _deps FORTRAN )
     
    558537    LIBS pgplot${pgplot_ext} cpgplot${pgplot_ext}
    559538    DEPENDS ${_deps} )
     539
     540  add_definitions( -DENABLE_PLOTTER2 )
    560541endif()
    561542
Note: See TracChangeset for help on using the changeset viewer.