<?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, 01 May 2011 22:00:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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 <a href='http://www.alunduil.com/2010/01/22/cmake-java-pain/'>[...]</a>]]></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.</p>
<p>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.  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>IF(NOT ${CMAKE_Java_LINK_EXECUTABLE})
SET(CMAKE_Java_LINK_EXECUTABLE "mv &lt;objects&gt; &lt;target&gt;")
ENDIF(NOT ${CMAKE_Java_LINK_EXECUTABLE})</pre>
<p>In /usr/share/cmake/Modules/CMakeJavaCompiler.cmake.in:</p>
<pre>SET(CMAKE_Java_LINK_EXECUTABLE "@CMAKE_Java_LINK_EXECUTABLE@")</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/

Page Caching using memcached (User agent is rejected)
Database Caching 2/6 queries in 0.005 seconds using memcached
Object Caching 246/246 objects using memcached

Served from: www.alunduil.com @ 2012-02-06 10:21:59 -->
