[CMake] Passing empty arguments to add_custom_command

2014-06-30 Thread abid rahman
Hello, I need to execute following command with add_custom_command: *python test.py src dst* The first argument is empty. Sometimes it may have some text. So Python process the args as [test.py, , src, dst]. But when I do the same with add_custom_command, the empty argument is not

Re: [CMake] Passing empty arguments to add_custom_command

2014-06-30 Thread abid rahman
...@gmail.com wrote: On 06/30/2014 09:42 AM, abid rahman wrote: Hello, I need to execute following command with add_custom_command: *python test.py src dst* The first argument is empty. Sometimes it may have some text. So Python process the args as [test.py, , src, dst]. But when I do

Re: [CMake] Passing empty arguments to add_custom_command

2014-06-30 Thread abid rahman
made the empty quotes appear because they were put directly as parameter. I think if you set(prefix \\) it'll do the trick. *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *abid rahman *Sent:* Montag, 30. Juni 2014 13:14 *To:* Nils Gladitz *Cc:* cmake@cmake.org *Subject:* Re

[CMake] adding dependencies to a target

2014-06-27 Thread abid rahman
Hello, I am adding a new target using add_library(target source1 source2). Then add the dependencies of targets by target_link_libraries(target deps) But this source2 is generated by another python script based on dependencies of target. ie, I need to specify the dependencies of target before

[CMake] Return value of cmake string find

2014-06-09 Thread abid rahman
Hello, What is returned if string(FIND) matches a substring, and what is returned if it doesn't match anything? Abid K. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the

[CMake] Matching with two strngs

2014-06-05 Thread abid rahman
Hello, How can I match a string to any of two strings? For example, I want to check if a string is either abc or xyz. How can I check it? IF(string1 MATCHES abc\|xyz doesn't work? Regards Abid K. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: