Re: [CMake] Passing CMake Arguments to FetchContent

2019-03-22 Thread Craig Scott
On Sat, Mar 23, 2019 at 1:58 PM Jason Beach wrote: > I'm upgrading from cmake 3.5.1 and am trying to understand the new > FetchContent command. So far I have: > > cmake_minimum_required(VERSION 3.14) > project (json_test) > > include(FetchContent) > set(JSON_BuildTests OFF) #if I try this I get a

[CMake] Passing CMake Arguments to FetchContent

2019-03-22 Thread Jason Beach
I'm upgrading from cmake 3.5.1 and am trying to understand the new FetchContent command. So far I have: cmake_minimum_required(VERSION 3.14) project (json_test) include(FetchContent) set(JSON_BuildTests OFF) #if I try this I get a warning as it appears to be deprecated FetchContent_Declare(

Re: [CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

2019-03-22 Thread Stewart, Robert
Have a look at the code I quoted from CPackRPM.cmake: if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE OR NOT CPACK_RPM_USER_BINARY_SPECFILE) set(RPMBUILD_FLAGS "-bb") If CPACK_RPM_USER_BINARY_SPECFILE is defined, then RPMBUILD_FLAGS is not set to -bb. ___ Rob From: Eric Noulard [mail

Re: [CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

2019-03-22 Thread Stewart, Robert
I’m pretty certain that I did use CPACK_RPM_SPEC_MORE_DEFINE and CPACK_RPM_USER_FILELIST. CPACK_PROJECT_CONFIG_FILE might help. I’ll take a look. As for proposing a patch, I’m not certain how things are supposed to work yet, so that seems premature. Thanks for your thoughts. ___ Rob From: Eri

Re: [CMake] Strange issue with 3.14.0 and copying files

2019-03-22 Thread Robert Maynard via CMake
Just as a follow-up for the general community, this is a bug and can be tracked at: https://gitlab.kitware.com/cmake/cmake/issues/19075 On Wed, Mar 20, 2019 at 2:46 PM Ron Olson wrote: > > Hi all- > > As a way of introduction, I’m Ron, and I maintain Apple’s Swift > programming language package

[CMake] conflict between configure & build steps in gitlab-runner script for Windows: Debug or Release build directory not found

2019-03-22 Thread Joachim Wuttke
A gitlab-runner configuration script .gitlab-ci.yml, for execution in the Powershell: === windows: tags: - windows stage: build script: - New-Item -ItemType "directory" -Confirm:$false -Force:$true -Name "build" - cd build - cmd.exe "C:\Program Files (x86)\Microsoft Visual S

Re: [CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

2019-03-22 Thread Eric Noulard
Le mer. 6 mars 2019 à 21:33, Stewart, Robert a écrit : > We've recently upgraded CMake from 2.8+ to 3.5+ (different versions on > different platforms). In so doing, our CMake invocation of CPack to create > RPMs now fails and I'm hoping someone can help. I have a spec file and I > want to run r

Re: [CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

2019-03-22 Thread Eric Noulard
Le mer. 6 mars 2019 à 21:33, Stewart, Robert a écrit : > We've recently upgraded CMake from 2.8+ to 3.5+ (different versions on > different platforms). In so doing, our CMake invocation of CPack to create > RPMs now fails and I'm hoping someone can help. I have a spec file and I > want to run r

Re: [CMake] Custom RPM build failing for want of RPMBUILD_FLAGS

2019-03-22 Thread Stewart, Robert
On Wednesday, March 06, 2019 3:33 PM, I wrote: > > We've recently upgraded CMake from 2.8+ to 3.5+ (different versions on > different platforms). In > so doing, our CMake invocation of CPack to create RPMs now fails and I'm > hoping someone can help. > I have a spec file and I want to run rp