[CMake] FindZLIB doesn't work for PGI compiler

2019-07-22 Thread 李 三乎
[https://tr.cloudmagic.com/h/v6/emailtag/tag/2.0/1563859234/288db9ab62ba963e3c33af4ebd3cc1bc/11/be623dafddc53423015ac812773b3c39/19c8011ecf80ea93f8a632d2fbd6f857/b453bc4819eacec2a20aaea0348ea875/newton.gif] Dear CMake Community, I’m here to report an error occurred when using PGI compiler. The rea

Re: [CMake] FetchContent/ExternalProject and URL_HASH

2019-07-22 Thread fdk17
On Mon, Jul 22, 2019, at 11:51 AM, Dustyn Blasig wrote: > *"I don't think it is realistic to expect CMake or the underlying tools to > still give you a successful file download if you interrupt it. ;)"* > > Sorry, I didn't word that well : ) > > I was curious if CMake uses handlers behind the

Re: [CMake] Getting library name from library target to pass to legacy Makefile

2019-07-22 Thread Marc CHEVRIER
An alternate solution is to use generator expression TARGET_LINKER_FILE_NAME because the linker is also able to use full path names rather than radical names as library input. Le 22 juil. 2019 à 17:55 +0200, Dustyn Blasig , a écrit : > Thanks, Marc. That is exactly what I need, but I'm stuck with

Re: [CMake] Getting library name from library target to pass to legacy Makefile

2019-07-22 Thread Dustyn Blasig
Thanks, Marc. That is exactly what I need, but I'm stuck with 3.12.4 for the foreseeable future. Is there a way to get the equivalent behavior in older versions? On Mon, Jul 22, 2019 at 1:04 AM Marc CHEVRIER wrote: > You can use generator expression TARGET_FILE_BASE_NAME, available with > versio

Re: [CMake] FetchContent/ExternalProject and URL_HASH

2019-07-22 Thread Dustyn Blasig
*"I don't think it is realistic to expect CMake or the underlying tools to still give you a successful file download if you interrupt it. ;)"* Sorry, I didn't word that well : ) I was curious if CMake uses handlers behind the scenes similar to GNU Make such that if a signal occurs it will cleanup

Re: [CMake] FetchContent/ExternalProject and URL_HASH

2019-07-22 Thread Craig Scott
On Mon, Jul 22, 2019 at 10:37 AM Dustyn Blasig wrote: > Thanks for the info, Craig. > > I'm not very familiar with the intricacies of network downloads. If the > download itself guarantees the file was transferred correctly and the > checksum is only be used to verify its authenticity, then we pr