Alan W. Irwin wrote:
> The issue is that for 2.4.8, rpath is set appropriately for the Ada
> executable
> to find the Ada shared library that was built, but for 2.6.0, rpath is not
> set at all.  Note, I do nothing special with rpath for this simple test
> project so it just has the default rpath behaviour.  But that default
> behaviour seems to have changed between 2.4.8 and 2.6.0 (probably due to
> some limitation in my Ada language support files).
> 
> I hope this one is as easy to solve as the OUTPUT_EXTENSION issue.

# CMakeAdaInformation.cmake
IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG)
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG 
${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG)

IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP)
  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP 
${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP})
ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP)

IF(NOT CMAKE_EXECUTABLE_RUNTIME_Ada_FLAG)
  SET(CMAKE_EXECUTABLE_RUNTIME_Ada_FLAG 
${CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG})
ENDIF(NOT CMAKE_EXECUTABLE_RUNTIME_Ada_FLAG)

IF(NOT CMAKE_EXECUTABLE_RUNTIME_Ada_FLAG_SEP)
  SET(CMAKE_EXECUTABLE_RUNTIME_Ada_FLAG_SEP 
${CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP})
ENDIF(NOT CMAKE_EXECUTABLE_RUNTIME_Ada_FLAG_SEP)

-Brad

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to