Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-31 Thread Gonzalo Garramuño
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

Re: [CMake] Question about Variables

2019-05-31 Thread Robert Maynard via CMake
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

[CMake] Question about Variables

2019-05-31 Thread Steven Truppe
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-

Re: [CMake] Troubles with macros and STREQUAL

2019-05-31 Thread Kyle Edwards via CMake
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] Troubles with macros and STREQUAL

2019-05-31 Thread Steven Truppe
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

Re: [CMake] ExternalProject_Add() setting build command to run external project's makefile

2019-05-31 Thread Michael Ellery
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

Re: [CMake] Question about IF and STRINGS

2019-05-31 Thread Steven Truppe
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

Re: [CMake] Question about IF and STRINGS

2019-05-31 Thread Kyle Edwards via CMake
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

Re: [CMake] Question about IF and STRINGS

2019-05-31 Thread Steven Truppe
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

[CMake] [ANNOUNCE] CMake 3.14.5 available for download

2019-05-31 Thread Robert Maynard via CMake
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

[CMake] Question about IF and STRINGS

2019-05-31 Thread Steven Truppe
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

[CMake] ExternalProject_Add() setting build command to run external project's makefile

2019-05-31 Thread David Starkweather
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

[CMake] ExternalProject_Add() Trouble Invoking Build Command to run the projects makefile

2019-05-31 Thread David Starkweather
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

[CMake] CTest not exporting users HOME environment variable?

2019-05-31 Thread Michael Jackson
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