[CMake] Question about dependencies

Martin O'Brien martin.matthew.obrien at gmail.com
Tue Feb 8 19:50:01 EST 2011


You have a number of typos there - are you sure that's not the problem?

CMAKE_BINAARY_DIR
Factfile v. Facfile
FACTILE v. FACTFILE

Mm
On Feb 8, 2011 6:48 PM, "Carminati Federico" <federico.carminati at cern.ch>
wrote:
> Hello,
> May be this is a very simple question but... I have a fully qualified path
name
>
> ${CMAKE_BINAARY_DIR}/factFile.xml
>
> and I do
>
> set(FACTILE ${CMAKE_BINARY_DIR}/facFile.xml)
>
> I am defining in subdirectories custom targets depending on this file
>
> define_custom_target(PACK-check ${FACTFILE})
>
> and the dependency is generated as
>
> PACK-check: factFile.xml
>
> instead of
>
> PACK-check: <expansion of CMAKE_BINARY_DIR}>/factFile.xml
>
> Obviously when I am in the subdir I have the message that there is no way
to build factFile.xml which is considered local to the subdirectory... I
hope I have been clear. Please help. Thanks,
>
>
> Federico Carminati
> CERN-PH
> 1211 Geneva 23
> Switzerland
> Tel: +41 22 76 74959
> Fax: +41 22 76 68505
> Mobile: +41 76 487 4843
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110208/e538a714/attachment.htm>


More information about the CMake mailing list