<div dir="ltr">${PLINK_EXECUTABLE} contains spaces...<br><br>Maybe you need escaped quotes:<br>SET(CMAKE_CXX_LINK_EXECUTABLE &quot;\&quot;${PLINK_EXECUTABLE}\&quot;<br><br>\&quot; around the executable variable reference...?<br>
<br><br><div class="gmail_quote">On Wed, Sep 3, 2008 at 6:04 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Monday 25 August 2008, Phil Smith wrote:<br>
&gt; I&#39;m back on this, after a week at a conference and a week of vacation.<br>
&gt;<br>
&gt; I have the GET_FILENAME_COMPONENT call working, and it returns what I&#39;d<br>
&gt; expect (c:/progra~1/dignus), but the FIND_PROGRAM resolves the path with<br>
&gt; blanks (c:/Program Files/Dignus/plink.exe). &nbsp;Here&#39;s the CMAKE code I&#39;m<br>
&gt; using, in ZOS.cmake:<br>
&gt;<br>
&gt; GET_FILENAME_COMPONENT(PLINKPATH &quot;${CMAKE_C_COMPILER}&quot; PATH)<br>
&gt; MESSAGE(STATUS &quot;PLINK path is ${PLINKPATH}!&quot;)<br>
&gt; FIND_PROGRAM(PLINK_EXECUTABLE NAMES plink PATHS &quot;${PLINKPATH}&quot;<br>
&gt; NO_DEFAULT_PATH) MESSAGE(STATUS &quot;PLINK_EXECUTABLE is ${PLINK_EXECUTABLE}!&quot;)<br>
&gt; SET(CMAKE_CXX_LINK_EXECUTABLE &quot;${PLINK_EXECUTABLE}<br>
&gt; \&quot;-Sc:/progra~1/dignus/objs_rent/&amp;M\&quot; &lt;OBJECTS&gt; -o &lt;TARGET&gt;&quot;)<br>
&gt; SET(CMAKE_C_LINK_EXECUTABLE &nbsp; &quot;${PLINK_EXECUTABLE}<br>
&gt; \&quot;-Sc:/progra~1/dignus/objs_rent/&amp;M\&quot; &lt;OBJECTS&gt; -o &lt;TARGET&gt;&quot;)<br>
&gt;<br>
&gt; That barfs all over the place. The two MESSAGE calls show:<br>
&gt; -- PLINK path is c:/progra~1/dignus!<br>
&gt; -- PLINK_EXECUTABLE is C:/Program Files/Dignus/plink.exe!<br>
&gt; (And if I put the &quot;progra~1&quot;-format path back in manually, it works again.)<br>
<br>
</div>Hmm, the output from MESSAGE() looks as I would expect. What&#39;s wrong with<br>
it/what exactly does &quot;barfs all over the place&quot; mean ?<br>
<div class="Ih2E3d"><br>
&gt; I also realized that I think there will be a change needed to<br>
&gt; CheckTypeSize.cmake after all: the -fasciiout flag only makes sense during<br>
&gt; that call, as during actual compiles, one will NOT want it set. &nbsp;Something<br>
&gt; like (around line 60): IF(ZOS)<br>
&gt; &nbsp; &nbsp; &nbsp; SET(MACRO_CHECK_TYPE_SIZE_FLAGS &quot;${MACRO_CHECK_TYPE_SIZE_FLAGS}<br>
&gt; -fasciiout&quot;) ENDIF(ZOS)<br>
<br>
</div>Hmm, looks ugly but maybe we&#39;ll have to do something like this :-/<br>
<div class="Ih2E3d"><br>
&gt; Finally, I&#39;m also still trying to figure out how to name things most<br>
correctly. &nbsp;You said a couple of things before:<br>
&gt; &gt;Well, the initial tests for the compiler should work without the<br>
&gt; &gt;CMakeForceCompiler stuff. If this works, then CMakeC[XX]<a href="http://CompilerId.c.in" target="_blank">CompilerId.c.in</a><br>
&gt; &gt; cmake should be able to detect that it&#39;s the Dignus compiler, and set<br>
&gt; &gt;CMAKE_C_COMPILER_ID to &quot;Dignus&quot;. Once this is works, it then tries to load<br>
&gt; &gt;Modules/Platform/ZOS-Dignus-C.cmake (and ZOS-Dignus-CXX.cmake).<br>
&gt; &gt;These files should then contain the settings which are specific for that<br>
&gt; &gt;combination of operating system, and compiler.<br>
&gt; &gt;E.g CMAKE_C_LINK_EXECUTABLE and maybe more.<br>
&gt;<br>
&gt; and:<br>
&gt; &gt; No, it&#39;s &lt;SYSTEM&gt;-&lt;COMPILER_ID&gt;-&lt;LANGUAGE&gt;.cmake<br>
&gt; &gt;with SYSTEM being the name of the operating system.<br>
&gt;<br>
&gt; But what I don&#39;t see is how it&#39;s going to figure out that the compiler is<br>
&gt; named Dignus, since the CMAKE_FORCE_C_COMPILER stuff breaks everything.<br>
<br>
</div>&quot;breaks everything&quot; ?<br>
Aren&#39;t we trying right now to get rid of the FORCE_C_COMPILER stuff ? It<br>
shouldn&#39;t break anything, since it&#39;s not called anymore :-)<br>
<div class="Ih2E3d"><br>
&gt; Maybe I don&#39;t care that much that the compiler gets identified fully -- do<br>
&gt; I? &nbsp;It&#39;s the one and only likely compiler to be used for z, now and forever<br>
<br>
</div>But I guess zOS is not the only OS the compiler can be used for ?<br>
So getting this to work should help using Dignus on other platforms.<br>
<div><div></div><div class="Wj3C7c"><br>
Alex<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>