[CMake] Problems with EnternalProjectAdd

Workbench@gmx.at workbench at gmx.at
Tue Feb 19 01:25:43 EST 2019


Can't i somehow output the pwd ??

best regards!

On 19.02.19 07:04, Workbench at gmx.at wrote:
>
> Now i'm getting:
>
>  Command failed: No such file or directory
>
>    'cd 
> /home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype 
> && ./autogen.sh && ./configure && make'
>
> but when i go to my bsUltimate path and type that command it works...
>
>
> best regards!
>
> On 19.02.19 06:57, Romain LEGUAY wrote:
>> Hi,
>>
>> I think you need to set the variable CONFIGURE_COMMAND to empty like 
>> this:
>>
>>> ExternalProject_Add(
>>>         freetype
>>>         PREFIX "${BUILD_ENV}/freetype"
>>>         GIT_REPOSITORY "https://github.com/brooklynpacket/freetype2.git"
>>>         GIT_TAG 64bit
>> CONFIGURE_COMMAND ""
>>>         BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype 
>>> && ./autgen.sh && ./configure && make"
>>>         LOG_DOWNLOAD ON
>>>         LOG_INSTALL ON
>>>         LOG_CONFIGURE ON
>>>         LOG_BUILD ON
>>>         LOG_TEST ON
>>>         LOG_INSTALL ON
>>>         )
>>
>> Envoyé de mon iPad
>>
>> Le 19 févr. 2019 à 06:51, Workbench at gmx.at <mailto:Workbench at gmx.at> 
>> <workbench at gmx.at <mailto:workbench at gmx.at>> a écrit :
>>
>>> I played around a bit a now have the following:
>>>
>>> set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE STRING INTERNAL)
>>> set(LIBRARY_DIR "${CMAKE_BINARY_DIR}/lib" CACHE STRING INTERNAL)
>>>
>>>     ExternalProject_Add(
>>>         freetype
>>>         PREFIX "${BUILD_ENV}/freetype"
>>>         GIT_REPOSITORY "https://github.com/brooklynpacket/freetype2.git"
>>>         GIT_TAG 64bit
>>>         BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype 
>>> && ./autgen.sh && ./configure && make"
>>>         LOG_DOWNLOAD ON
>>>         LOG_INSTALL ON
>>>         LOG_CONFIGURE ON
>>>         LOG_BUILD ON
>>>         LOG_TEST ON
>>>         LOG_INSTALL ON
>>>         )
>>>
>>> The logs are telling me: CMake Error: The source directory 
>>> "/home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype" 
>>> does not appear to contain CMakeLists.txt.
>>>
>>> Isn't the BUILD_COMMAND there if there is no CMakeLists.txt file 
>>> available for building ? not many project provide cmake build files....
>>>
>>>
>>> best regards!
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 19.02.19 06:43, Michael Ellery wrote:
>>>> CMAKE_BUILD_DIR is not a standard variable (did you mean 
>>>> CMAKE_BINARY_DIR ?) - and the error seems to indicate that the 
>>>> variable is indeed empty so it tries to create the project 
>>>> directory at the root level.
>>>>
>>>> -Mike
>>>>
>>>>> On Feb 18, 2019, at 8:58 PM, Workbench at gmx.at 
>>>>> <mailto:Workbench at gmx.at> <workbench at gmx.at 
>>>>> <mailto:workbench at gmx.at>> wrote:
>>>>>
>>>>> Hi again,
>>>>>
>>>>> i try to install my dependencies with ExternalProjectAdd but it 
>>>>> gives me troubles... what's wrong with
>>>>>
>>>>>
>>>>>     ExternalProject_Add(
>>>>>         freetype
>>>>>         PREFIX "${CMAKE_BUILD_DIR}/freetype"
>>>>>         GIT_REPOSITORY 
>>>>> "https://github.com/brooklynpacket/freetype2.git"
>>>>>         GIT_TAG 64bit
>>>>>         BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype 
>>>>> && ./autgen.sh && ./configure && make"
>>>>>         LOG_DOWNLOAD ON
>>>>>         LOG_INSTALL ON
>>>>>         LOG_CONFIGURE ON
>>>>>         LOG_BUILD ON
>>>>>         LOG_TEST ON
>>>>>         LOG_INSTALL ON
>>>>>         )
>>>>>
>>>>> best regards!
>>>>>
>>>>> -- 
>>>>>
>>>>> Powered by www.kitware.com <http://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 community. 
>>>>> For more information on each offering, please visit:
>>>>>
>>>>> CMake Support: http://cmake.org/cmake/help/support.html
>>>>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>>>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>>>
>>>>> Visit other Kitware open-source projects at 
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> https://cmake.org/mailman/listinfo/cmake
>>>>
>>> -- 
>>>
>>> Powered by www.kitware.com <http://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 community. For 
>>> more information on each offering, please visit:
>>>
>>> CMake Support: http://cmake.org/cmake/help/support.html
>>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>
>>> Visit other Kitware open-source projects at 
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> https://cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190219/52e30233/attachment-0001.html>


More information about the CMake mailing list