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 wrote:
Hi e
On Fri, 2019-05-31 at 19:07 +0200, 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 ...
There are two problems with the following line:
if(${_var} MATCHES "^WITH_LIB_([AZaz]+)$")
T
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 variables li
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 t