Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
Can't i somehow output the pwd ?? best regards! On 19.02.19 07:04, workbe...@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

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
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

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread Romain LEGUAY
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 "" >

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
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://g

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread Michael Ellery
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, workbe...@gmx.at wrote: > > Hi again, > > i try

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
I forgot the error message: CMake Error at /usr/local/share/cmake-3.13/Modules/ExternalProject.cmake:1659 (file):   file problem creating directory: /freetype/src/freetype-stamp Call Stack (most recent call first):   /usr/local/share/cmake-3.13/Modules/ExternalProject.cmake:3057 (_ep_set_direc

[CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
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 64b

Re: [CMake] Question about set

2019-02-18 Thread workbe...@gmx.at
Thank you. On 18.02.19 21:46, Craig Scott wrote: On Tue, Feb 19, 2019 at 4:16 AM Kyle Edwards via CMake mailto:cmake@cmake.org>> wrote: On Mon, 2019-02-18 at 17:59 +0100, Andreas Naumann wrote: > Hey, > > I would introduce a list with the allowed values and introduce a >

[CMake] Using CMake as a package manager vs using a dedicated package management tool (like Conan)

2019-02-18 Thread Timothy Wrona
I have been working on a new C++ project and I am trying to decide whether I should use CMake as my package management system or if I should use a dedicated package management tool such as Conan. For more information on Conan see: https://conan.io/ I am trying to understand the main difference be

Re: [CMake] Question about set

2019-02-18 Thread Craig Scott
On Tue, Feb 19, 2019 at 4:16 AM Kyle Edwards via CMake wrote: > On Mon, 2019-02-18 at 17:59 +0100, Andreas Naumann wrote: > > Hey, > > > > I would introduce a list with the allowed values and introduce a > > macro > > "checked_set", which tests the setting or aborts. > > > > Regards, > > Andreas"

Re: [CMake] Question about functions

2019-02-18 Thread Andreas Naumann
Am 18.02.19 um 20:43 schrieb workbe...@gmx.at: Hi everyone, i have a function like: FUNCTION(checksyste_64Bit arg1)     IF(CMAKE_SIZEOF_VOID_P EQUAL 8)         SET(${arg1} TRUE PARENT_SCOPE) ENDFUNCTION() but when i call it with an INTERNAL variable i've set before with SET(SYSTEM_64BIT F

[CMake] Question about functions

2019-02-18 Thread workbe...@gmx.at
Hi everyone, i have a function like: FUNCTION(checksyste_64Bit arg1)     IF(CMAKE_SIZEOF_VOID_P EQUAL 8)         SET(${arg1} TRUE PARENT_SCOPE) ENDFUNCTION() but when i call it with an INTERNAL variable i've set before with SET(SYSTEM_64BIT FALSE CACHE INTERNAL) checksystem_64bit(${SYSTEM

Re: [CMake] Question about set

2019-02-18 Thread workbe...@gmx.at
I need it for an INTERNAL variable, for the different android architecture types that are supported. so he can only set one of the available arch types. On 18.02.19 18:16, Kyle Edwards wrote: On Mon, 2019-02-18 at 17:59 +0100, Andreas Naumann wrote: Hey, I would introduce a list with the al

Re: [CMake] Static libraries depending on libraries: only on headers/options/defines

2019-02-18 Thread Paul Smith
FYI, this function appears to work for me with one caveat: there appears to be a bug where SYSTEM_INCLUDE_DIRECTORIES are not handled properly so you can't use this function if you need that property to be propagated. I filed https://gitlab.kitware.com/cmake/cmake/issues/18940 for that. I think I

Re: [CMake] fixup-bundle usability

2019-02-18 Thread Andreas Naumann
Thank you very much for your explaination. At the moment, I link only to boost and some in-house libraries. When experimenting with CMake and reading the docs, I got the same impression as you described. And I hoped to miss something obvious. When I understand you correctly, one have to set th

Re: [CMake] Question about set

2019-02-18 Thread Kyle Edwards via CMake
On Mon, 2019-02-18 at 17:59 +0100, Andreas Naumann wrote: > Hey, > > I would introduce a list with the allowed values and introduce a > macro  > "checked_set", which tests the setting or aborts. > > Regards, > Andreas" > > Am 18.02.19 um 15:06 schrieb workbe...@gmx.at: > > > > Hi everyone, > >

Re: [CMake] Question about set

2019-02-18 Thread Andreas Naumann
Hey, I would introduce a list with the allowed values and introduce a macro "checked_set", which tests the setting or aborts. Regards, Andreas Am 18.02.19 um 15:06 schrieb workbe...@gmx.at: Hi everyone, i've looked the web but found no result. I need a string variable that allows only cert

Re: [CMake] Fwd: Re: Question about CMAKE_MODULE_PATH

2019-02-18 Thread workbe...@gmx.at
Thanks alot! On 18.02.19 17:20, Gonzalo Garramuño wrote: El 18/2/19 a las 13:15, workbe...@gmx.at escribió: Thank you, that did the trick. Now my other question is there a function in cmake that does abort the build/makefile generation process ? for example if i find out the system is not 64b

Re: [CMake] Fwd: Re: Question about CMAKE_MODULE_PATH

2019-02-18 Thread Gonzalo Garramuño
El 18/2/19 a las 13:15, workbe...@gmx.at escribió: Thank you, that did the trick. Now my other question is there a function in cmake that does abort the build/makefile generation process ? for example if i find out the system is not 64bit - is there something like quit() ? message( FATAL_E

Re: [CMake] Fwd: Re: Question about CMAKE_MODULE_PATH

2019-02-18 Thread workbe...@gmx.at
Thank you, that did the trick. Now my other question is there a function in cmake that does abort the build/makefile generation process ? for example if i find out the system is not 64bit - is there something like quit() ? On 18.02.19 17:04, workbe...@gmx.at wrote: Forwarded Mess

Re: [CMake] Fwd: Re: Question about CMAKE_MODULE_PATH

2019-02-18 Thread Kyle Edwards via CMake
On Mon, 2019-02-18 at 17:04 +0100, workbe...@gmx.at wrote: > > > > Forwarded Message > Subject: Re: [CMake] Question about CMAKE_MODULE_PATH > Date: Mon, 18 Feb 2019 16:58:26 +0100 > From: workbe...@gmx.at > To: Kyle Edwards > > here is my code: > > > set(MODULE_PAT

[CMake] Fwd: Re: Question about CMAKE_MODULE_PATH

2019-02-18 Thread workbe...@gmx.at
Forwarded Message Subject:Re: [CMake] Question about CMAKE_MODULE_PATH Date: Mon, 18 Feb 2019 16:58:26 +0100 From: workbe...@gmx.at To: Kyle Edwards here is my code: set(MODULE_PATH "compile/tools/cmake/modules") LIST(APPEND CMAKE_MODULE_PATH ${MODULE_P

Re: [CMake] Question about CMAKE_MODULE_PATH

2019-02-18 Thread Kyle Edwards via CMake
On Mon, 2019-02-18 at 16:50 +0100, workbe...@gmx.at wrote: > Doesn't the content of CMAKE_MODULE_PATH should also include the path > to  > the default modules ?? The default modules are automatically checked by CMake, independently of the contents of CMAKE_MODULE_PATH. They should not normally be

Re: [CMake] Question about CMAKE_MODULE_PATH

2019-02-18 Thread workbe...@gmx.at
Doesn't the content of CMAKE_MODULE_PATH should also include the path to the default modules ?? On 18.02.19 16:48, workbe...@gmx.at wrote: Hi everyone, i try to load custom modules. i use list(append CMAKE_MODULE_PATH "/mypathtomdoules") and then i try to load the module with include(mymo

[CMake] Question about CMAKE_MODULE_PATH

2019-02-18 Thread workbe...@gmx.at
Hi everyone, i try to load custom modules. i use list(append CMAKE_MODULE_PATH "/mypathtomdoules") and then i try to load the module with include(mymodule) but he can't find it. now i tried to output the content of CMAKE_MODULE_PATH with the cmake_print_variable from the CMakePrintHelpers

Re: [CMake] fixup-bundle usability

2019-02-18 Thread Francis Giraldeau
You are right, the fixup bundle is difficult to use. Here are some undocumented tips: Put the install(CODE) with the fixup_bundle() call in a CMakeLists.txt in its own directory. In your main CMakeLists.txt file, add this directory with add_subdirectory() last. This install(CODE) will run after al

[CMake] Question about set

2019-02-18 Thread workbe...@gmx.at
Hi everyone, i've looked the web but found no result. I need a string variable that allows only certain values, like bool variables only allow true/false my string should be either "A" or "B" ... best regards! -- Powered by www.kitware.com Please keep messages on-topic and check the CMake