On 2009-04-30 09:22-0600 Orion Poplawski wrote:
> in plplot/cmake/modules/CMakeDetermineDCompiler.cmake:
>
> # configure variables set in this file for fast reload later on
> IF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/Modules/CMakeDCompiler.cmake.in)
>
> CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmake/Modules/CMakeDCompiler.cmake.in
>                "${CMAKE_PLATFORM_ROOT_BIN}/CMakeDCompiler.cmake" IMMEDIATE)
> ELSE(EXISTS ${CMAKE_SOURCE_DIR}/cmake/Modules/CMakeDCompiler.cmake.in)
>         CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeDCompiler.cmake.in
>                "${CMAKE_PLATFORM_ROOT_BIN}/CMakeDCompiler.cmake" IMMEDIATE)
> ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/Modules/CMakeDCompiler.cmake.in)
>
>
> So it expects CMakeDCompiler.cmake.in to be in
> /usr/share/cmake/Modules/CMakeDCompiler.cmake.in
>
>
> plplot/cmake/modules/CMakeDetermineAdaCompiler.cmake uses:
>
> CONFIGURE_FILE(${CMAKE_MODULE_PATH}/CMakeAdaCompiler.cmake.in
>
> "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeAdaCompiler.cmake"
> IMMEDIATE)
>
> And that works.

Hi Orion:

I confirmed the issue using -DENABLE_d=ON (which I had never tested before)
and tested and applied your fix (revision 9870).  Thanks!

Werner:

The issue was
${CMAKE_SOURCE_DIR}/cmake/Modules does not exist for PLplot (we use
${CMAKE_SOURCE_DIR}/cmake/modules instead).  Using ${CMAKE_MODULE_PATH} is a
much cleaner approach that works for PLplot.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to