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:
http://www.
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
op
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!
--
Power
On Tue, 2019-06-04 at 17:11 +0200, Steven Truppe wrote:
> 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 travers
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
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_EXAMPLE_([A-Za-z]+)")
>
> m
I found the solution:
get_cmake_property(_vars VARIABLES)
foreach(_var ${_vars})
string(TOUPPER ${lib} lib_upper)
if(_var MATCHES "^WITH_LIB_${lib_upper}_EXAMPLE_([A-Za-z]+)$")
message(STATUS "Number of examples found: ${CMAKE_MATCH_COUNT}")
On Tue, 2019-06-04 at 19:19 +0200, Steven Truppe wrote:
> I found the solution:
> get_cmake_property(_vars VARIABLES)
> foreach(_var ${_vars})
> string(TOUPPER ${lib} lib_upper)
> if(_var MATCHES "^WITH_LIB_${lib_upper}_EXAMPLE_([A-Za-
> z]+)$")
> message(STATU
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
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 "
So, a couple things:
string(TOUPPER ${lib} lib_upper)
> set(WITH_LIB_${lib_upper}_EXAMPLES "")
>
> This needs to be outside the foreach loop. It's getting reset to empty on
every iteration rather than accumulating results
list(APPEND ${WITH_LIB_${lib_upper}_
Hi,
I've got a general question.
Regular cmake FindFoo.cmake modules are documented by putting the docs at the
top of the file.
This documentation should list the variables, macros etc. provided by that
module.
Now if I switch to using FooConfig.cmake files and just very simple
FindFoo.cmake f
12 matches
Mail list logo