On 7/2/2012 11:22 AM, Matthew Schuchard wrote:
Attached tarball of CMakeTmp after failed Ada TryCompile.

Relevant from CMakeTestAdaCompiler:

IF(NOT CMAKE_Ada_COMPILER_WORKS)
   PrintTestCompilerStatus("Ada" "")
   FILE(WRITE 
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/cmTryCompileExec.adb
     "with Ada.Text_IO;\n"
     "use Ada.Text_IO;\n"
     "procedure cmTryCompileExec is\n"
     "begin\n"
     "Put(\"Hello World\");\n"
     "end cmTryCompileExec;\n")
   TRY_COMPILE(CMAKE_Ada_COMPILER_WORKS ${CMAKE_BINARY_DIR}
     ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/cmTryCompileExec.adb
     OUTPUT_VARIABLE OUTPUT)
   SET(Ada_TEST_WAS_RUN 1)
ENDIF(NOT CMAKE_Ada_COMPILER_WORKS)

So, the generated CMake file looks like this:

ADD_EXECUTABLE(cmTryCompileExec2054790633 "/users/ms503/gtsims/bld/CMakeFiles/CMakeTmp/cmTryCompileExec.adb")

That does not look bad to me. However, since you did not include the Platform ADA files you are using, the problem could be there. Does the executable name have to match the .adb file?

-Bill
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to