<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Alunduil&#039;s Hosting &#187; build</title> <atom:link href="http://www.alunduil.com/tag/build/feed/" rel="self" type="application/rss+xml" /><link>http://www.alunduil.com</link> <description>Gentoo Hackery and Other Fun ...</description> <lastBuildDate>Sun, 27 Jun 2010 20:50:03 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>CMake &#8230; Java &#8230; Pain &#8230;</title><link>http://www.alunduil.com/2010/01/22/cmake-java-pain/</link> <comments>http://www.alunduil.com/2010/01/22/cmake-java-pain/#comments</comments> <pubDate>Fri, 22 Jan 2010 19:17:34 +0000</pubDate> <dc:creator>Alex Brandt</dc:creator> <category><![CDATA[Linux Guides]]></category> <category><![CDATA[build]]></category> <category><![CDATA[cmake]]></category> <category><![CDATA[java]]></category><guid isPermaLink="false">http://www.alunduil.com/?p=85</guid> <description><![CDATA[I&#8217;ve been working quite fervently to get CMake working for a Java project I&#8217;ve taken on and have found that it has a couple of issues still. The first issue is an undefined CMAKE_Java_LINK_EXECUTABLE variable, which because Java doesn&#8217;t really do linking (JIT takes care of doing something that I haven&#8217;t looked into yet) we [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve been working quite fervently to get CMake working for a Java project I&#8217;ve taken on and have found that it has a couple of issues still.  The first issue is an undefined CMAKE_Java_LINK_EXECUTABLE variable, which because Java doesn&#8217;t really do linking (JIT takes care of doing something that I haven&#8217;t looked into yet) we don&#8217;t really need, but CMake expects it to be there.  By simply making it a mv string and setting up the classpath option (via INCLUDE_DIRECTORIES directives) correctly, we can compile our java project using CMake almost the same way we would expect to make a CXX project.</p><p>If anyone knows of the platform agnostic way to move files in CMake I&#8217;d love to know.</p><p>Unfortunately the following changes are required to some CMake 2.8 system files for this to work:</p><p>In /usr/share/cmake/Modules/CMakeJavaInformation.cmake:</p><pre><code>IF(NOT ${CMAKE_Java_LINK_EXECUTABLE})
SET(CMAKE_Java_LINK_EXECUTABLE 
    "mv &lt;OBJECTS&gt; &lt;TARGET&gt;")
ENDIF(NOT ${CMAKE_Java_LINK_EXECUTABLE})
</code></pre><p>In /usr/share/cmake/Modules/CMakeJavaCompiler.cmake.in:</p><pre><code>SET(CMAKE_Java_LINK_EXECUTABLE "@CMAKE_Java_LINK_EXECUTABLE@")
</code></pre>]]></content:encoded> <wfw:commentRss>http://www.alunduil.com/2010/01/22/cmake-java-pain/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using memcached (user agent is rejected)
Database Caching 6/12 queries in 0.028 seconds using memcached

Served from: www.alunduil.com @ 2010-07-30 19:48:39 -->