Werner Smekal wrote:
> Hi Orion,
> 
> On 30.04.2009, at 00:47, Orion Poplawski wrote:
> 
>> CMake Error: File /usr/share/cmake/Modules/CMakeDCompiler.cmake.in does
>> not exist.
>> CMake Error at cmake/modules/CMakeDetermineDCompiler.cmake:102
>> (CONFIGURE_FILE):
>>   configure_file Problem configuring file
>>
>> Call Stack (most recent call first):
>>
>>   cmake/modules/d.cmake:33 (include)
>>
>>   cmake/modules/plplot.cmake:391 (include)
>>
>>   CMakeLists.txt:77 (include)
>>
>> -- WARNING: D compiler not found. Disabling D bindings
>>
>> Looks like it isn't looking for CMakeDCompiler.cmake.in in the right
>> place?  It is in plplot, not cmake (yet).
> 
> I don't fully understand this. Since in plplot/CMakeLists.txt we have:
> 
> # Location where PLplot cmake build system first looks for cmake modules.
> set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules)
> 
> so it should look in plplot/cmake/modules first and there we have this 
> file? Which cmake version are you using?

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.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  or...@cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com

------------------------------------------------------------------------------
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