Re: [CMake] Cmake/Cpack creates a corrupt .rpm
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 with no errors. However, rpm -i bails out with a cpio: read error. I don't know what to try next. I have to wonder if the pre/post install scripts are the problem. Okay. I found the root of the problem in the OS I was trying the RPM. Fedora 30 has the problem installing. CentOS 7, for example, works just fine. Not sure what has changed in Fedora (or if it ever worked on it). Can someone confirm that their cmake .rpm's work in Fedora 30 (thus, throwing my assumption out of the water)? Thanks in advance. -- Gonzalo Garramuño -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] Question about Variables
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, > > 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-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] Question about Variables
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-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] Troubles with macros and STREQUAL
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 false =( > if(_var STREQUAL ${lib}) Should be: if(_var STREQUAL lib) due to how if() expands variable references. https://cmake.org/cmake/help/v3.14/command/if.html#variable-expansion Kyle -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] Troubles with macros and STREQUAL
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(WITH_LIB_GLFW "Support for the GLFW library" 1) list(APPEND BSEDIT_INC_PATH ${LIB_GLAD_INC_PATH}) 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 false =( if(_var STREQUAL ${lib}) message(STATUS "Found library: ${_var}") if(DEFINED ${${CMAKE_MATCH_0}_INC_PATH}) message(STATUS "FOUND GLAD_INC_PATH") endif() endif() endforeach() endmacro() bsAddLibrary(WITH_LIB_GLAD) message(STATUS "BSEDIT_INC_PATH = ${BSEDIT_INC_PATH}") message(STATUS "BSEDIT_LIB_PATH = ${BSEDIT_LIB_PATH}") -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] ExternalProject_Add() setting build command to run external project's makefile
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-tune those properties as needed once you get it working (maybe but just setting PREFIX). -Mike > On May 31, 2019, at 7:41 AM, David Starkweather wrote: > > 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 with BUILD_IN_SOURCE > set to true, like so: > > ExternalProject_Add(hiredis > PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/hiredis > SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hiredis > BUILD_IN_SOURCE 1 > CONFIGURE_COMMAND echo configure > BUILD_COMMAND make static > INSTALL_COMMAND echo install) > > > However, now i'd like to automatically download the source from github. So, > I switch to > the following: > > 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_CURRENT_BINARY_DIR}/hiredis > BUILD_IN_SOURCE 1 > CONFIGURE_COMMAND "" > BUILD_COMMAND make static > INSTALL_COMMAND "") > > And I get the following error: > > [ 3%] Creating directories for 'hiredis' > [ 6%] Performing download step (download, verify and extract) for 'hiredis' > -- Downloading... >dst='/home/david/projects/clipseekr/hiredis/v0.9.0.tar.gz' >timeout='none' > -- Using src='https://github.com/redis/hiredis/archive/v0.9.0.tar.gz' > -- Downloading... done > -- extracting... > src='/home/david/projects/clipseekr/hiredis/v0.9.0.tar.gz' > dst='/home/david/projects/clipseekr/hiredis' > -- extracting... [tar xfz] > -- extracting... [analysis] > -- extracting... [rename] > -- extracting... [clean up] > -- extracting... done > make[2]: *** [CMakeFiles/hiredis.dir/build.make:93: > hiredis/src/hiredis-stamp/hiredis-download] Error 1 > make[1]: *** [CMakeFiles/Makefile2:147: CMakeFiles/hiredis.dir/all] Error 2 > make: *** [Makefile:163: all] Error 2 > > It seems cmake is trying to invoke its internal cmake make files, rather than > just run the "make static" > build command. How do I just run the the "make static" command directly? > > Once again, thanks. > starkdg > > > -- > > 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 various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] Question about IF and STRINGS
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 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 to use for the final executable. Now my problem is that i'm relative new to cmake and i'm learning c++11 in the meantime and are coding on a project so i don't have to much time for cmake (but it's a realy important part). Here is the code: cmake_minimum_required(VERSION 3.14 FATAL_ERROR) include(CMakePrintHelpers) set(WITH_LIB_GLAD "Support the GLAD library" 1) set(WITH_LIB_GLFW "Support for the GLFW library" 1) macro(bsAddLibrary lib) # get all WITH_LIB varables get_cmake_property(_variables VARIABLES) foreach(_var ${_variables}) # cmake_print_variables(${_var}) if(${_var} MATCHES "^WITH_LIB_[AZaz]+$" _lib) cmake_print_variables(${_lib}) endif() endforeach() endmacro() bsAddLibrary(WITH_LIB_GLAD) # Adds WITH_LIB_GLAD_INC_PATH and the other variables to a list for the main application that holds all inc path, compiler flags etc. ERROR: == -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:15 (if): if given arguments: "CMAKE_AR" "MATCHES" "^WITH_LIB_[AZaz]+\$" "_lib" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:22 (bsAddLibrary) -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] Question about IF and STRINGS
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]+)$") The first argument should be _var instead of ${_var}. See the if() documentation for more information: https://cmake.org/cmake/help/v3.14/command/if.html#variable-expansion The second problem is your regex. I'm guessing you were trying to do: ^WITH_LIB_([A-Za-z]+)$ Notice the hyphens in the character class brackets. This will get you every character from A to Z and from a to z. Using just [AZaz] will only match A, Z, a, and z (none of the letters in between.) So, if you use the following instead: if(_var MATCHES "^WITH_LIB_([A-Za-z]+)$") cmake_print_variables(CMAKE_MATCH_0) this should do what you want. Kyle -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] Question about IF and STRINGS
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 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 to use for the final executable. Now my problem is that i'm relative new to cmake and i'm learning c++11 in the meantime and are coding on a project so i don't have to much time for cmake (but it's a realy important part). Here is the code: cmake_minimum_required(VERSION 3.14 FATAL_ERROR) include(CMakePrintHelpers) set(WITH_LIB_GLAD "Support the GLAD library" 1) set(WITH_LIB_GLFW "Support for the GLFW library" 1) macro(bsAddLibrary lib) # get all WITH_LIB varables get_cmake_property(_variables VARIABLES) foreach(_var ${_variables}) # cmake_print_variables(${_var}) if(${_var} MATCHES "^WITH_LIB_[AZaz]+$" _lib) cmake_print_variables(${_lib}) endif() endforeach() endmacro() bsAddLibrary(WITH_LIB_GLAD) # Adds WITH_LIB_GLAD_INC_PATH and the other variables to a list for the main application that holds all inc path, compiler flags etc. ERROR: == -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:15 (if): if given arguments: "CMAKE_AR" "MATCHES" "^WITH_LIB_[AZaz]+\$" "_lib" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:22 (bsAddLibrary) -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] [ANNOUNCE] CMake 3.14.5 available for download
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: https://gitlab.kitware.com/cmake/cmake/issues/19303 Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! - Changes in 3.14.5 since 3.14.4: Alex Turbov (1): FindBoost: Add compiler features for Boost Contract library Brad King (5): libarchive: avoid b64_encode name conflict with Solaris built-in function FindThreads: Drop incorrect docs about usage with C++ Do not exclude include directories made implicit by CPATH VS: Isolate custom command input/output generation scopes CMake 3.14.5 Frans van Dorsselaer (2): VS: Clarify name of custom commands AdditionalInputs variable VS: De-duplicate custom command dependencies -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] Question about IF and STRINGS
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 to use for the final executable. Now my problem is that i'm relative new to cmake and i'm learning c++11 in the meantime and are coding on a project so i don't have to much time for cmake (but it's a realy important part). Here is the code: cmake_minimum_required(VERSION 3.14 FATAL_ERROR) include(CMakePrintHelpers) set(WITH_LIB_GLAD "Support the GLAD library" 1) set(WITH_LIB_GLFW "Support for the GLFW library" 1) macro(bsAddLibrary lib) # get all WITH_LIB varables get_cmake_property(_variables VARIABLES) foreach(_var ${_variables}) # cmake_print_variables(${_var}) if(${_var} MATCHES "^WITH_LIB_[AZaz]+$" _lib) cmake_print_variables(${_lib}) endif() endforeach() endmacro() bsAddLibrary(WITH_LIB_GLAD) # Adds WITH_LIB_GLAD_INC_PATH and the other variables to a list for the main application that holds all inc path, compiler flags etc. ERROR: == -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:15 (if): if given arguments: "CMAKE_AR" "MATCHES" "^WITH_LIB_[AZaz]+\$" "_lib" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:22 (bsAddLibrary) -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] ExternalProject_Add() setting build command to run external project's makefile
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 with BUILD_IN_SOURCE set to true, like so: ExternalProject_Add(hiredis PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/hiredis SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hiredis BUILD_IN_SOURCE 1 CONFIGURE_COMMAND echo configure BUILD_COMMAND make static INSTALL_COMMAND echo install) However, now i'd like to automatically download the source from github. So, I switch to the following: 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_CURRENT_BINARY_DIR}/hiredis BUILD_IN_SOURCE 1 CONFIGURE_COMMAND "" BUILD_COMMAND make static INSTALL_COMMAND "") *And I get the following error:* [ 3%] Creating directories for 'hiredis' [ 6%] Performing download step (download, verify and extract) for 'hiredis' -- Downloading... dst='/home/david/projects/clipseekr/hiredis/v0.9.0.tar.gz' timeout='none' -- Using src='https://github.com/redis/hiredis/archive/v0.9.0.tar.gz' -- Downloading... done -- extracting... src='/home/david/projects/clipseekr/hiredis/v0.9.0.tar.gz' dst='/home/david/projects/clipseekr/hiredis' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done make[2]: *** [CMakeFiles/hiredis.dir/build.make:93: hiredis/src/hiredis-stamp/hiredis-download] Error 1 make[1]: *** [CMakeFiles/Makefile2:147: CMakeFiles/hiredis.dir/all] Error 2 make: *** [Makefile:163: all] Error 2 It seems cmake is trying to invoke its internal cmake make files, rather than just run the "make static" build command. How do I just run the the "make static" command directly? Once again, thanks. starkdg -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] ExternalProject_Add() Trouble Invoking Build Command to run the projects makefile
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_CURRENT_BINARY_DIR}/hiredis BUILD_IN_SOURCE 1 CONFIGURE_COMMAND "" BUILD_COMMAND make static INSTALL_COMMAND "") -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] CTest not exporting users HOME environment variable?
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 needs to be done to ensure that CTest exports the HOME variable for the user running the test? -- Michael Jackson | Owner, President BlueQuartz Software [e] mike.jack...@bluequartz.net [w] www.bluequartz.net -- 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 various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake