From: Alan W. I. <ai...@us...> - 2006-11-30 23:36:12
|
Update of /cvsroot/plplot/plplot/cmake/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9068/cmake/modules Modified Files: plplot.cmake Log Message: Test for whether bash is available. Also, test for whether any shell is available. Index: plplot.cmake =================================================================== RCS file: /cvsroot/plplot/plplot/cmake/modules/plplot.cmake,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- plplot.cmake 30 Nov 2006 08:07:26 -0000 1.39 +++ plplot.cmake 30 Nov 2006 23:36:10 -0000 1.40 @@ -52,7 +52,25 @@ include(double) include(instdirs) include(rpath) + option(BUILD_TEST "Compile examples in the build tree and enable ctest" OFF) +# Use bash when available for ctest and install tree test support +find_program(SH_EXECUTABLE bashxx) +if(SH_EXECUTABLE) + set(HAVE_BASH ON) +else(SH_EXECUTABLE) + find_program(SH_EXECUTABLE sh) +endif(SH_EXECUTABLE) + +if(NOT SH_EXECUTABLE) + message(STATUS + "WARNING: shell not found, disabling ctest and install tree examples tests" + ) + set(BUILD_TEST OFF + CACHE BOOL "Compile examples in the build tree and enable ctest" FORCE + ) +endif(NOT SH_EXECUTABLE) + option(PREBUILD_DIST "Pre-build all components required for distribution" OFF) if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") set( |