[CMake] OS X spaces in paths issue

David Gobbi david.gobbi at gmail.com
Fri Sep 7 11:31:21 EDT 2012


I see.  I just wasn't looking hard enough.  Thanks!

 - David


On Fri, Sep 7, 2012 at 9:28 AM, David Cole <david.cole at kitware.com> wrote:
> Yes, actually, the location of CMake does appear in the script. It's
> ${CMAKE_COMMAND}.
>
> You just need to add quotes here if you're going to define your own
> CTEST_CONFIGURE_COMMAND like that. Most people don't define
> CTEST_CONFIGURE_COMMAND in the new-style ctest scripts...
>
> Add escaped quotes here embedded in this SET call:
>
> set(CTEST_CONFIGURE_COMMAND "\"${CMAKE_COMMAND}\"
> -DCMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION}")
>
>
> Cheers,
> David
>
>
> On Fri, Sep 7, 2012 at 11:14 AM, David Gobbi <david.gobbi at gmail.com> wrote:
>> I've attached the script.  The location of cmake doesn't appear anywhere
>> in the script, ctest finds cmake automatically in /usr/local/bin/cmake,
>> which is a symlink to /Applications/CMake 2.8-9.app/Contents.bin/cmake.
>> CMake was installed with the OS X cmake installer.  We had exactly
>> the same issue with CMake 2.8-5 before upgrading to 2.8-9.
>>
>>  - David
>>
>>
>> On Thu, Sep 6, 2012 at 9:22 AM, David Cole <david.cole at kitware.com> wrote:
>>> This probably just means there's an error with double-quoting (or lack
>>> of it) in the script.
>>>
>>> Can you post the script?
>>>
>>>
>>> On Wed, Sep 5, 2012 at 5:12 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>>>> This might have already been answered on the list but it didn't come
>>>> up in a search.
>>>>
>>>> Someone that I work with was trying to run a ctest
>>>> dashboard-generation script on OS X, and ctest was reporting "There
>>>> was an error: No such file or directory".  Running "ctest -VV" gave
>>>> more info about the error:
>>>>
>>>> Run command: "/Applications/CMake" "2.8-9.app/Contents/bin/cmake"
>>>> "-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo"
>>>> "-DBUILD_DOCUMENTATION:BOOL=OFF" "-GUnix Makefiles"
>>>> "/Users/ellen/TestBinDir"
>>>>
>>>> So ctest was finding cmake automatically, but was failing because the
>>>> absolute path to cmake contained a space.  Has anyone else seen this
>>>> error when using ctest to build a dashboard?  I always build cmake
>>>> from source, so I didn't encounter this until I tried running ctest on
>>>> someone else's machine.
>>>>
>>>>  - David
>>>> --
>>>>
>>>> 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