El 30/5/19 a las 22:16, Gonzalo Garramuño escribió:
El 30/5/19 a las 21:36, Zan Lynx escribió:
RPM files are not cpio. They contain a cpio. Use rpm2cpio as a filter.
Thanks for that. Using:
rpm2cpio mrViewer-v5.0.7-Linux-64.rpm | cpio -idmv
I can extract all the contents of the archive wi
The `${ }` syntax deferences the variable, so what you are asking is
if the variable `1_INC_PATH` exists.
What you want is `if(DEFINED WITH_LIB_GLAD_INC_PATH)` to check for the
existence of the variable `WITH_LIB_GLAD_INC_PATH`
On Fri, May 31, 2019 at 4:11 PM Steven Truppe wrote:
>
> Hi everyone
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 on-
On Fri, 2019-05-31 at 20:43 +0200, Steven Truppe wrote:
> macro(bsAddLibrary lib)
> # get all WITH_LIB varables
> message(STATUS "${lib}")
>
> get_cmake_property(_variables VARIABLES)
> foreach(_var ${_variables})
>
> -->> (${lib} is "WITH_LIB_GLAD" but allways return fals
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")
set(WI
It seems like the error might be related to the download/extract step. I think
the fact that you are using the same dir for PREFIX, SOURCE_DIR and
DOWNLOAD_DIR might be confusing things. I would try commenting out those three
properties and see if it makes any difference, and then you can fine-t
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
We are pleased to announce that CMake 3.14.5 is now available for download.
The Visual Studio 2019 16.1 update introduced a regression in MSBuild's
evaluation of custom command dependencies causing them to re-run on every build.
CMake 3.14.5 includes a workaround, for more details on the issue see
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
Hello
First off, much thanks to all the contributors of cmake. A truly invaluable
build utility. Your efforts
are greatly appreciated.
I've been successfully using cmake to build an external project (the client
library for redis, hiredis)
that has already been downloaded. I was able to do this wit
set(HIREDIS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hiredis)
set(HIREDIS_INCLUDE_DIRS ${HIREDIS_DIR}/include)
ExternalProject_Add(hiredis
URL https://github.com/redis/hiredis/archive/v0.9.0.tar.gz
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/hiredis
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/hiredis
DOWNLOAD_DIR
We have a program written in Fortran that asks for the user’s HOME environment
variable. If I run the program from my typical terminal then I get what I would
expect on macOS: /Users/mjackson, BUT if I run CTest to execute the program I
get an empty HOME variable. Is there something special that
14 matches
Mail list logo