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] 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

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

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

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

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
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 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

[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

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, > >

[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

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: > > >

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

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

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] 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

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

[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

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] 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(

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

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

[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

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

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

[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)

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

[cmake-developers] Dead CMake Redesign Projects

2019-02-18 Thread Taylor Holberton
Hello! Since about July of 2018, I've been trying to design an interpreter library for the CMake language, common for the cmake, cpack, and ctest tools. It was my idea that I could create an extensible library for the CMake project, that could make it easier to add commands, generators, and

[Cmake-commits] CMake branch, master, updated. v3.14.0-rc2-119-g2a1f661

2019-02-18 Thread Kitware Robot via Cmake-commits
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 6af2c8e..9c45022 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,5 +1,5 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 14) -set(CMake_VERSION_PATCH 20190218) +set(CMake_VER

[cmake-developers] 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

[Cmake-commits] CMake branch, master, updated. v3.14.0-rc2-112-gbafd0ff

2019-02-18 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via bafd0ffa987bea9216e7722c027478f26d5e8f6a (commit) via

[Cmake-commits] CMake branch, release, updated. v3.14.0-rc2-5-g1f8ed41

2019-02-18 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, release has been updated via 1f8ed4141979ee4e2f2cc6aab8ad31a4942bd056 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.14.0-rc2-114-g0923246

2019-02-18 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 0923246b2e2fb5be0d2fa1b256879a326aeee13b (commit) via

[Cmake-commits] CMake branch, master, updated. v3.14.0-rc2-116-g566652b

2019-02-18 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 566652b0c8ffe6896d3d3ae1cafd5834eecd (commit) via

[Cmake-commits] CMake branch, master, updated. v3.14.0-rc2-118-g75b4595

2019-02-18 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 75b45956e044701c0ebe6dbc433f629e0558bdb8 (commit) via

[Cmake-commits] CMake branch, release, updated. v3.14.0-rc2-7-g926a97e

2019-02-18 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, release has been updated via 926a97e97520bcdf509126e03a3d2f40ee20d479 (commit) via