Changeset 2833 for trunk/CMakeLists.txt
- Timestamp:
- 07/31/13 22:35:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r2830 r2833 515 515 # PGPLOT (FORTRAN plotting package). 516 516 # 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 518 if( NOT STANDALONE ) 540 519 if( APPLE ) 541 520 set( _deps FORTRAN ) … … 558 537 LIBS pgplot${pgplot_ext} cpgplot${pgplot_ext} 559 538 DEPENDS ${_deps} ) 539 540 add_definitions( -DENABLE_PLOTTER2 ) 560 541 endif() 561 542
Note: See TracChangeset
for help on using the changeset viewer.