<div dir="ltr">${PLINK_EXECUTABLE} contains spaces...<br><br>Maybe you need escaped quotes:<br>SET(CMAKE_CXX_LINK_EXECUTABLE "\"${PLINK_EXECUTABLE}\"<br><br>\" 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"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></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>
> I'm back on this, after a week at a conference and a week of vacation.<br>
><br>
> I have the GET_FILENAME_COMPONENT call working, and it returns what I'd<br>
> expect (c:/progra~1/dignus), but the FIND_PROGRAM resolves the path with<br>
> blanks (c:/Program Files/Dignus/plink.exe). Here's the CMAKE code I'm<br>
> using, in ZOS.cmake:<br>
><br>
> GET_FILENAME_COMPONENT(PLINKPATH "${CMAKE_C_COMPILER}" PATH)<br>
> MESSAGE(STATUS "PLINK path is ${PLINKPATH}!")<br>
> FIND_PROGRAM(PLINK_EXECUTABLE NAMES plink PATHS "${PLINKPATH}"<br>
> NO_DEFAULT_PATH) MESSAGE(STATUS "PLINK_EXECUTABLE is ${PLINK_EXECUTABLE}!")<br>
> SET(CMAKE_CXX_LINK_EXECUTABLE "${PLINK_EXECUTABLE}<br>
> \"-Sc:/progra~1/dignus/objs_rent/&M\" <OBJECTS> -o <TARGET>")<br>
> SET(CMAKE_C_LINK_EXECUTABLE "${PLINK_EXECUTABLE}<br>
> \"-Sc:/progra~1/dignus/objs_rent/&M\" <OBJECTS> -o <TARGET>")<br>
><br>
> That barfs all over the place. The two MESSAGE calls show:<br>
> -- PLINK path is c:/progra~1/dignus!<br>
> -- PLINK_EXECUTABLE is C:/Program Files/Dignus/plink.exe!<br>
> (And if I put the "progra~1"-format path back in manually, it works again.)<br>
<br>
</div>Hmm, the output from MESSAGE() looks as I would expect. What's wrong with<br>
it/what exactly does "barfs all over the place" mean ?<br>
<div class="Ih2E3d"><br>
> I also realized that I think there will be a change needed to<br>
> CheckTypeSize.cmake after all: the -fasciiout flag only makes sense during<br>
> that call, as during actual compiles, one will NOT want it set. Something<br>
> like (around line 60): IF(ZOS)<br>
> SET(MACRO_CHECK_TYPE_SIZE_FLAGS "${MACRO_CHECK_TYPE_SIZE_FLAGS}<br>
> -fasciiout") ENDIF(ZOS)<br>
<br>
</div>Hmm, looks ugly but maybe we'll have to do something like this :-/<br>
<div class="Ih2E3d"><br>
> Finally, I'm also still trying to figure out how to name things most<br>
correctly. You said a couple of things before:<br>
> >Well, the initial tests for the compiler should work without the<br>
> >CMakeForceCompiler stuff. If this works, then CMakeC[XX]<a href="http://CompilerId.c.in" target="_blank">CompilerId.c.in</a><br>
> > cmake should be able to detect that it's the Dignus compiler, and set<br>
> >CMAKE_C_COMPILER_ID to "Dignus". Once this is works, it then tries to load<br>
> >Modules/Platform/ZOS-Dignus-C.cmake (and ZOS-Dignus-CXX.cmake).<br>
> >These files should then contain the settings which are specific for that<br>
> >combination of operating system, and compiler.<br>
> >E.g CMAKE_C_LINK_EXECUTABLE and maybe more.<br>
><br>
> and:<br>
> > No, it's <SYSTEM>-<COMPILER_ID>-<LANGUAGE>.cmake<br>
> >with SYSTEM being the name of the operating system.<br>
><br>
> But what I don't see is how it's going to figure out that the compiler is<br>
> named Dignus, since the CMAKE_FORCE_C_COMPILER stuff breaks everything.<br>
<br>
</div>"breaks everything" ?<br>
Aren't we trying right now to get rid of the FORCE_C_COMPILER stuff ? It<br>
shouldn't break anything, since it's not called anymore :-)<br>
<div class="Ih2E3d"><br>
> Maybe I don't care that much that the compiler gets identified fully -- do<br>
> I? It'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>