[CMake] Creating a custom target on Windows - strange problem
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Tue Sep 12 13:51:38 EDT 2006
On 2006-09-12 13:05-0400 Brad King wrote:
> Arjen Markus wrote:
>> add_custom_target(${CMAKE_CURRENT_BINARY_DIR}/${file} ALL
> [snip]
>> When I run this in ..\build, using
>> cmake -G "NMake makefiles" ..\src
> [snip]
>> CMake Error: Cannot open file for write:
>> C:/arjen/plplot-5.6.1-cmake/testcbs/build/CMakeFiles/C:/arjen/plplot-5.6.1-cmake/testcbs/build/x02.dir/build.make.tmp
>
> You're creating a high-level target named
> "C:/arjen/plplot-5.6.1-cmake/testcbs/build/x02" which is invalid. I'll
> look into adding a better diagnostic for this.
Thanks for this explanation, Brad. This high-level target style (with
absolute path part of the target name) works fine for the PLplot Unix build,
but was causing the problems Arjen mentioned for the PLplot windows build.
Now that we know the reason for the problem for the windows build, I will
change styles.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the CMake
mailing list