Re: [CMake] Question about find_package

2019-03-16 Thread workbe...@gmx.at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862328 On 16.03.19 13:34, workbe...@gmx.at wrote: > > The ClangConfig.cmake file is in /usr/share/llvm4.0/cmake ... > > On 16.03.19 13:11, workbe...@gmx.at wrote: >> Hi everyone, >> >> i'm on debian strech and there

Re: [CMake] Question about find_package

2019-03-16 Thread workbe...@gmx.at
The ClangConfig.cmake file is in /usr/share/llvm4.0/cmake ... On 16.03.19 13:11, workbe...@gmx.at wrote: > Hi everyone, > > i'm on debian strech and there is a package called clang-4.0 that > contains a ClangConfig.cmake in the > > path /usr/local/llvm/cmake but find_package(

[CMake] Question about find_package

2019-03-16 Thread workbe...@gmx.at
Hi everyone, i'm on debian strech and there is a package called clang-4.0 that contains a ClangConfig.cmake in the path /usr/local/llvm/cmake but find_package(Clang 4.0 REQUIRED) is not able to find it.. it worked the day before.. i don't know what i'm doing wrong here. best regards!

Re: [CMake] Question about find_packages.

2019-03-15 Thread workbe...@gmx.at
ion prefix of "Clang" to CMAKE_PREFIX_PATH or set   "Clang_DIR" to a directory containing one of the above files.  If "Clang"   provides a separate development package or SDK, be sure it has been   installed. -- Configuring incomplete, errors occurred! On 15.03.19 17:0

[CMake] Question about find_packages.

2019-03-15 Thread workbe...@gmx.at
Hi everyone, i try to use find_packages for clang, i'm on debian and have installed libclang-4.0-dev package, now i've the files in /usr/lib/llvm4-0/lib/libclang-4.0.so and the include in /usr/lib/llvm-4.0/include/clang - how can i make find_package find those ?? best regards! pEpkey.asc

[CMake] Basic question how to find -lm include and lib dir with find_package or otherwise

2019-03-14 Thread workbe...@gmx.at
Hi everyone, i'm searching for a way to find the right include dir so that -lm can be found, the is not find_package for this, is /usr/lib and /usr/include a default because he find it without me adding any include or lib path for the build. best regards! pEpkey.asc Description:

[cmake-developers] Question about fetching big repositories with ExternalProject_Add

2019-03-11 Thread workbe...@gmx.at
Hi everyone, i play around much with ExternalProject_Add and i found some kind of "error". When fetching big repositories like llvm cmake don't show any output when cloning the repository which makes the user believe cmake stucks, is there a way to show the clone process with

Re: [CMake] Troubles with include_directories

2019-03-10 Thread workbe...@gmx.at
2019 à 08:44, workbe...@gmx.at > <mailto:workbe...@gmx.at> mailto:workbe...@gmx.at>> > a écrit : > > Hi everyone, > > i've a project setup that looks like this: > > > abc.h > > def.h > > and all my other .cpp and .h files are

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
I finally got it working, for other who might have the same problem: You just have to use ExternalProject_Add(ftgl-dl ... ) add_executable(Test01 ${SRC}) add_dependencies(Test01 ftgl-dl) That all! Happy coding! best regards! On 10.03.19 13:20, workbe...@gmx.at wrote: > >

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
of the problems alone, i hope this time someone can help me out. best regards! On 10.03.19 12:38, workbe...@gmx.at wrote: > > I came a step forward, now it looks like this: > > include(ExternalProject) > ExternalProject_Add(glfw3 >     PREFIX ${CMAKE_BINARY_DIR}/glfw-log >    

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
ated after the configure procedure, how can i solve this issue ?? best regards! On 10.03.19 11:44, workbe...@gmx.at wrote: > > Now i've managed to create the right INSTALL_COMMAND but i don't know > how to link with my executable. i tried > > add_executable(MyApp $

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
of type UTILITY may not be linked into another target.   One may link only to INTERFACE, OBJECT, STATIC or SHARED libraries, or to   executables with the ENABLE_EXPORTS property set. target_link_libraries(M On 10.03.19 10:40, workbe...@gmx.at wrote: > Hi everyone, > > i've managed to use Extern

[CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
Hi everyone, i've managed to use ExternalProject_Add to install GLFW but i have troubles with glad... Here is my code for GLFW wich is working: include(ExternalProject) ExternalProject_Add(GLFW     PREFIX ${LIBDIR}/${CMAKE_BUILD_TYPE}/glfw-log     GIT_REPOSITORY https://github.com/glfw/glfw.git

Re: [CMake] Troubles with include_directories

2019-03-08 Thread workbe...@gmx.at
I mean belov, all files bellow BS_IEventConsumer.hpp (beginning with BS_Application) are in the intern folder in the same path as the other files above BS_Application. best regards! On 09.03.19 08:38, workbe...@gmx.at wrote: Hi everyone, i've a project setup that looks like this: abc.h

[CMake] Troubles with include_directories

2019-03-08 Thread workbe...@gmx.at
Hi everyone, i've a project setup that looks like this: abc.h def.h and all my other .cpp and .h files are in the folder intern. Now my CMakeLists.txt looks like this: cmake_minimum_required(VERSION 3.7) project(BS_Application) set(SRC     BS_AppTypes.hpp     BS_IEvent.hpp    

[cmake-developers] Error in ExternalProject_Add ??

2019-02-19 Thread workbe...@gmx.at
Hi everyone, i'm trying to get ExternalProject_Add to work for a day now and i come to a strange error, first the code: set(BUILD_DIR "${CMAKE_BINARY_DIR}/build_files" CACHE STRING INTERNAL) set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE STRING INTERNAL) set(LIBRARY_DIR

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 && ./c

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
EST ON         LOG_INSTALL ON         ) Envoyé de mon iPad Le 19 févr. 2019 à 06:51, workbe...@gmx.at <mailto:workbe...@gmx.at> mailto:workbe...@gmx.at>> a écrit : I played around a bit a now have the following: set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE S

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
o 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 to install my dependencies with ExternalProjectAdd but it gives me troubles... what's wrong with Exte

Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread workbe...@gmx.at
"/home/stuv/data/projects/programming/bsUltimate/build/CMakeFiles/CMakeOutput.log". On 19.02.19 05:58, workbe...@gmx.at wrote: Hi again, i try to install my dependencies with ExternalProjectAdd but it gives me troubles... what's wrong with     ExternalProject_Add(       

[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] Question about set

2019-02-18 Thread workbe...@gmx.at
s 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 <mailto:workbe...@gmx.at>: > > > > Hi everyone, > >

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

2019-02-18 Thread workbe...@gmx.at
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 certain values, like bool varia

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

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

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

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 wit

[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

[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] Question about searching for another toolchain

2019-02-16 Thread workbe...@gmx.at
Hello everyone, i'm realtively new to CMake and i find it awesome, the best building system ever ! Now to my question: I want to support either intel or amd specific functions in my application, that means i need either the amd or the intel sdk, i know how i can set another toolchain and