[CMake] Question about dependencies
Carminati Federico
Federico.Carminati at cern.ch
Wed Feb 9 10:24:10 EST 2011
Hello Micheal & *,
sorry for the messed up posting, please forget it. Thanks to a bad connection I ended up posting a draft, I should have been more careful I realise I need some more work to submit a meaningful question to the list. Best,
Federico Carminati
CERN-PH
1211 Geneva 23
Switzerland
Tel: +41 22 76 74959
Fax: +41 22 76 68505
Mobile: +41 76 487 4843
On 9 Feb 2011, at 08:59, Michael Wild wrote:
> Apart from the typos already pointed out by Martin, what is the
> "define_custom_target()" command? Did you mean "add_custom_command()" or
> "add_custom_target()"? If so, the syntax is completely wrong. If you
> meant "add_dependencies()", then that is also wrong, because
> add_dependencies only operates on CMake-targets, not on individual
> files. In order to help, we need some more information, such as:
>
> - How is factFile.xml (or whatever its name is) generated?
> - What is PACK-check? How is it defined?
> - What is the define_custom_target command? It certainly isn't a
> standard CMake command, so either it's another typo (is there a single
> word that isn't misspelled?!) or it's a custom macro/function in your
> project.
>
> It would be best if you could post the relevant parts of your code.
>
>
> Michael
>
> PS: Please, be more careful to avoid such ridiculous typos when posting.
> People here are not paid to help you (you could always get a support
> contract from Kitware, though) and are much less likely to answer if
> they have to first through heaps of sloppiness in order to figure out
> what you actually want from them. Just saying "sorry" without providing
> a fixed posting doesn't help to fix this situation either. IMHO it's
> also a matter of respect.
>
> On 02/09/2011 02:38 AM, Carminati Federico wrote:
>> Martin,
>> sorry for the stupid misspelling. The problem is real, only the message is misspelled. Best,
>>
>> Federico Carminati
>>
>>
>> On 9 Feb 2011, at 01:50, Martin O'Brien wrote:
>>
>>> 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
>
> _______________________________________________
> 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
More information about the CMake
mailing list