Hi everyone,
i'm trying to create a build system that download all needed libraries
with ExternalProject_Add.
i've the following lines in my CMakeLists.txt:
option(WITH_LIB_GLFW "Support for the GLFW library. (default: 1)" 1)
option(WITH_LIB_NLOHMANN_JSON "Support for the nlohmann JSON
Hi everyone,
i had the same question a few days ago but can't rember the command (and
can't find it in the cods):
I have a regular expression like "WITH_LIB${lib}_EXAMPLE_([A-Za-z]+)"
and i want the get the content of the found variables in the (), the
command i used stored them if MATCH_XYZ
Hi everyone again,
i've the following code:
https://paste.debian.net/1086040/
and i just try to traverse a list and include files whose part of the
name are the list entries.
best regards!
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
Hi everyone,
i have the following code:
set(ALL_LIBS "glad;glfw")
# WITH_LIB_GLAD
option(WITH_LIB_GLAD 1)
option(WITH_LIB_GLAD_EXAMPLE_BASIC "Build the basic Glad example (default:0)" 1)
option(WITH_LIB_GLAD_EXAMPLE_SECOND "Build the second Glad example (default:0)"
1)
# WITH_LIB_GLFW
Hello again,
i've the following variable defined:
set(WITH_LIB_GLAD_EXAMPLE_BASIC 1)
And the if the line
foreach(_var VARIABLES)
if(_var MATCHES "WITH_LIB_GLAD_EXAMPLE_([A-Za-z]+)")
message(STATUS "Found a match")
endforeach()
I never get the message "Found match", what am
I want the output not to be 'in' but 'glade' ...
On 04.06.19 17:10, Steven Truppe wrote:
Hi everyone again,
i've the following code:
https://paste.debian.net/1086040/
and i just try to traverse a list and include files whose part of the
name are the list entries.
best regards
for this ?
On 04.06.19 18:47, Kornel Benko wrote:
Am Dienstag, 4. Juni 2019, 18:10:19 CEST schrieb Steven Truppe:
Hello again,
i've the following variable defined:
set(WITH_LIB_GLAD_EXAMPLE_BASIC 1)
And the if the line
foreach(_var VARIABLES)
if(_var MATCHES "WITH_LIB_GLAD_EXAMP
Hi everyone,
i've the following code:
macro(bsBuildLibExamples lib)
# get all examples
get_cmake_property(_vars VARIABLES)
foreach(_var ${_vars})
string(TOUPPER ${lib} lib_upper)
set(WITH_LIB_${lib_upper}_EXAMPLES "")
if(_var MATCHES
Thanks alot. My other problem i have no how can i loop over the result,
there are just variables and ${CMAKE_CATCH_COUNT) what command can i use
the iterate over the result ??
best regrads!
On 04.06.19 19:22, Kyle Edwards wrote:
On Tue, 2019-06-04 at 19:19 +0200, Steven Truppe wrote:
I found
I've made the code more readable and easy to understand so you don't
have to read through all the code:
https://wandbox.org/permlink/qp7ScGBeMOtolfxb
On 05.06.19 00:47, Steven Truppe wrote:
Hi everyone,
i finaly have solved the issues i had and now have the working code on:
https://wandbox.org
Hi everyone,
i finaly have solved the issues i had and now have the working code on:
https://wandbox.org/permlink/ujEH8F91SVzMyt1D
The problem is that the i only get the last result as output, he create
the variables and stores them (i tested with cmake_print_variables) but
at the end the
the macro seems to make all the variables show up.
Regards,
Stephan
-Original Message-
From: CMake On Behalf Of Steven Truppe
Sent: Tuesday, June 4, 2019 3:56 PM
To: cmake@cmake.org
Subject: Re: [CMake] Troubles with small CMakeLists.txt
I've made the code more readable and easy to underst
Hi everyone, like you know i'm relative new the cmake and i'm working my
way through the book and the documentation but there is something that i
don't understand in the docs.
I just want to write a macro that uses as first argument a list and then
iterates over it.
The docs show the example:
The problem is the line:
if(${_var} MATCHES "^WITH_LIB_([AZaz]+)$")
cmake_print_variables(CMAKE_MATCH_0)
doesn't print me any output ...
On 31.05.19 18:53, Steven Truppe wrote:
Hi everyone,
i try to create a build system where you can decide which libraries
you want to use with
Found the problem, my regex was wrong [AZaz] should be [A-Za-z] ...
On 31.05.19 19:07, Steven Truppe wrote:
The problem is the line:
if(${_var} MATCHES "^WITH_LIB_([AZaz]+)$")
cmake_print_variables(CMAKE_MATCH_0)
doesn't print me any output ...
On 31.05.19 18:53, Steven Truppe w
Hi everyone,
i try to create a build system where you can decide which libraries you
want to use with variables like "WITH_LIB_GLFW" for example. every lib
variable has other variables like WITH_LIB_GLFW_INC_PATH,
WITH_LIB_GLFW_LIB_PATH, etc. so i can decide with cmake what libraries
i'm going
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
include(CMakePrintHelpers)
set(BSEDIT_INC_PATH "/usr/local/include")
set(BSEDIT_LIB_PATH "/usr/incude/lib")
set(WITH_LIB_GLAD "Support the GLAD library" 1)
set(LIB_GLAD_INC_PATH "/usr/include/glad")
set(LIB_GLAD_LIB_PATH "/usr/lib/glad")
Hi everyone,
i'm relative new to cmake (a few weeks now) and i have the following
problem:
set(WITH_LIB_GLAD 1)
IF(DEFINED ${WITH_LIB_GLAD}_INC_PATH)
I try to check if the variable WITH_LIB_GLAD_INC_PATH can be found.
best regards!
--
Powered by www.kitware.com
Please keep messages
Hi everyone,
I've troubles with ExternalProject_Add:
when i do build the library manualy (clone the repo and build it with
mkdir build;cd build; cmake -DCMAKE_BUILD_TYPE:String=Release
-DGLAD_INSTALL=ON -DCMAKE_INSTALL_PREFIX=/home/stuv/glad_examples) it
does work and i've the installation at
Found the error, thank you anyway - you guys are allways a good way to
get help about cmake, i'm starting to understand cmake slowly but it's
getting easier and easier, cmake is a great build system.
best regards!
On 08.06.19 14:47, Steven Truppe wrote:
Hi everyone,
I've troubles
I made a few misakes
On 06.06.19 16:54, Steven Truppe wrote:
It's also odd that i have to include(ExternalProject) to use the command
but i'm on cmake version 3.14 ...
On 06.06.19 16:51, Steven Truppe wrote
#-
# This is the start
It's also odd that i have to include(ExternalProject) to use the command
but i'm on cmake version 3.14 ...
On 06.06.19 16:51, Steven Truppe wrote
Hi again,
i solved most of the problems, i have a single issue left: i have two
files, in one file i do:
set(WITH_LIB_GLAD_EXAMPLE_CBASIC_OUTPUT_NAME_RELEASE "demo")
and in the next file i include i have:
set_target_properties(LIB_GLAD_EXAMPLE_CBASIC PROPERTIES
OUTPUT_NAME_RELEASE
On 06.06.19 19:37, Steven Truppe wrote:
Hi again,
i solved most of the problems, i have a single issue left: i have two
files, in one file i do:
set(WITH_LIB_GLAD_EXAMPLE_CBASIC_OUTPUT_NAME_RELEASE "demo")
and in the next file i include i have:
set_target_properties(LIB_GLAD_EXAM
I missed the property - it's DEBUG_OUTPUT_NAME and RELEASE_OUTPUT_NAME,
sry..
On 06.06.19 19:51, Steven Truppe wrote:
On 06.06.19 19:37, Steven Truppe wrote:
Hi again,
i solved most of the problems, i have a single issue left: i have two
files, in one file i do:
set
Hi everyone,
i'm relative new the cmake and i'm asking myself if i need the install
command for ExternalProject_Add() since these commands also "install"
the libraries needed at runtime.
Or do i need the install command only for targets that i want to compile ?
best regards!
--
Powered by
Hi again,
i'm reading up on properties and i see how to use set_properties and
get_properties but i don't know how i can find out which properties
exists for each entry (GLOBAL, DIRECTORY, TARGET, SOURCE, ...).
How can i retrieve a property if i don't have a list with all available
properties
Hi everyone,
i'm trying to search for a way for win32 to get the cpu core count. i
found the c code:
|SYSTEM_INFO sysinfo;GetSystemInfo();intnumCPU
=sysinfo.dwNumberOfProcessors; Is there a way i can get the return value
numCPU and create a variable out of it ? for apple and linux i allready
ow studying the hole chapter again, hopefully i understand it then.
I hope you guys can help me.
best regards!
On 09.06.19 08:26, Steven Truppe wrote:
ARGV1 gives me the first list entry of my first arguments, but i don't
know how i can access the hole list.
best regards!
On 09.06.19 07:20,
Hi everyone,
i'm a c,c++,asm and a few other languages, but i still have troubles
with macros and their arguments.
As a simple example i would like to have a macro that list(APPEND the
two passed arguments), here the code i tried:
https://wandbox.org/permlink/WQZGty9PQaOz3422.
Let's forget
ARGV1 gives me the first list entry of my first arguments, but i don't
know how i can access the hole list.
best regards!
On 09.06.19 07:20, Steven Truppe wrote:
Do i need cmake_parse_arguments ??
On 09.06.19 07:01, Steven Truppe wrote:
Hi everyone,
i'm a c,c++,asm and a few other
Do i need cmake_parse_arguments ??
On 09.06.19 07:01, Steven Truppe wrote:
Hi everyone,
i'm a c,c++,asm and a few other languages, but i still have troubles
with macros and their arguments.
As a simple example i would like to have a macro that list(APPEND the
two passed arguments), here
Problem solved - thanks anyway...
On 09.06.19 09:11, Steven Truppe wrote:
How on earth can i create a variables out of the string flags_to_add ???
On 09.06.19 08:41, Steven Truppe wrote:
OK, i don't realy understand why it does work but i got it working:
include(CMakePrintHelpers)
macro
How on earth can i create a variables out of the string flags_to_add ???
On 09.06.19 08:41, Steven Truppe wrote:
OK, i don't realy understand why it does work but i got it working:
include(CMakePrintHelpers)
macro(bsMergeFlags flags_to_add flags)
set(flags_to_add ${flags_to_add} ${ARGN
Hi everyone,
currently i'm trying to build my doxygen documentation from my
CMakeLists.txt file. I found the following example that seems to be
correct:
##
## bsBuildDoxygen() ##
##
macro(bsBuildDocs)
if(GENERATE_DOCS)
# check if
Hi everyone,
i want to have code lines like:
#define BUILD_VERSION
and the BUILD_VERSION should be the name of the actual branch the code
was compiled with, this way i can create a branch for each version and
name it like 0.1 so each version i'm using for release is an own branch.
I found
ST_URL}.
I now play around with this for nearnly an hour and i allways get the same
error.
I hope someone here can help me out.
best regards,
Steven Truppe
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitwar
Hi everyone,
i'm trying to get the boost library working with cmake and
externalproject_add:
https://paste.debian.net/1082645/
best regards!
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers
Hi everyone,
i'm trying to compile llvm with ExternalProject_Add and get the
following error:
-- Installing: /usr/lib/ocaml/llvm/llvm.mli
CMake Error at bindings/ocaml/llvm/cmake_install.cmake:49 (file):
file INSTALL cannot copy file
-> glfw in in front of glad")
endif()
message(STATUS "YES glfw is before glad in the list ")
I've never use list(FIND and i never knoe if i should pass a variable
with %{VAR} or VAR only..
best regards,
Steven Truppe
--
Powered by www.kitware.com
Please keep messages on-to
st/project-config.jam
Hunk #1 FAILED at 18.
I have no idea what i'm doing wrong here, i hope someone here can help
me out.
best regards,
Steven Truppe
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitw
42 matches
Mail list logo