From: <ai...@us...> - 2010-12-13 01:22:06
|
Revision: 11369 http://plplot.svn.sourceforge.net/plplot/?rev=11369&view=rev Author: airwin Date: 2010-12-13 01:22:00 +0000 (Mon, 13 Dec 2010) Log Message: ----------- Work around an Ada language support issue on Windows. This workaround (suggested by one of our users in his bug report 3081443) works for me on my MinGW/MSYS/wine platform. However, in the long term a more fundamental fix of our Ada language support should be done to take care of this issue. Modified Paths: -------------- trunk/bindings/ada/CMakeLists.txt Modified: trunk/bindings/ada/CMakeLists.txt =================================================================== --- trunk/bindings/ada/CMakeLists.txt 2010-12-12 06:54:25 UTC (rev 11368) +++ trunk/bindings/ada/CMakeLists.txt 2010-12-13 01:22:00 UTC (rev 11369) @@ -56,6 +56,19 @@ add_library(plplotada${LIB_TAG} ${plplotada${LIB_TAG}_LIB_SRCS}) + # Work around an issue in our CMake Ada language + # support for MinGW/Windows. FIXME. This issue should be fixed + # at the Ada language support level and not worked around here. + if(WIN32 AND NOT CYGWIN) + add_custom_command( + TARGET plplotada${LIB_TAG} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + libplplotadad.dll libplplotadad.dll.a + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/dll + VERBATIM + ) + endif(WIN32 AND NOT CYGWIN) + target_link_libraries(plplotada${LIB_TAG} plplot${LIB_TAG} ${GNAT_LIB} ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |