[CMake] Changed behavior of CPACK_PACKAGE_VERSION generation?

2018-12-12 Thread Björn Blissing
}.${CPACK_PACKAGE_VERSION_PATCH}") My question is: Is this change of behavior intended? Are only numbers allowed to be part of the CPack version variable? Regards Björn Blissing -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Björn Blissing
“optimized.lib”. Other people seem to struggle with similar issues as well: https://www.google.com/search?q=optimized.lib+cmake Regards, Björn From: Marc CHEVRIER Sent: Thursday, October 4, 2018 6:59 PM To: Björn Blissing Cc: Andrew Fuller ; Eric Noulard ; CMake Mailinglist Subject: Re

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Björn Blissing
side target_link_libraries. I don't know if other CMake functions will react similarly bad to the list/bool operator combo. Regards, Björn From: Andrew Fuller Sent: Thursday, October 4, 2018 6:16 PM To: Björn Blissing ; Eric Noulard Cc: CMake Mailinglist Subject: Re: [CMake] Trouble

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Björn Blissing
Hi Andrew, When I put the genex inside double quotes I get: optimized.lib;foo.lib;debug.lib;foo_d.lib;bar.lib; --- for both debug and release builds Regards, Björn From: Andrew Fuller Sent: Thursday, October 4, 2018 5:54 PM To: Björn Blissing ; Eric Noulard Cc: CMake Mailinglist

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Björn Blissing
ds $<1:optimized;foo.lib;>.lib;bar.lib-- for release builds So something goes really wrong when I try to use a list inside a conditional generator expression inside target_link_libraries(). Regards, Björn From: Eric Noulard Sent: Thursday, October 4, 2018 5:10 PM To: Björn Blissing

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Björn Blissing
his external find module. Regards, Björn From: Eric Noulard Sent: Thursday, October 4, 2018 4:37 PM To: Björn Blissing Cc: CMake Mailinglist Subject: Re: [CMake] Trouble with conditional generator expression inside target_link_libraries Le jeu. 4 oct. 2018 à 16:06, Björn Blissing mailto

[CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Björn Blissing
Hello, I am having trouble with a conditional generator expression inside target link libraries, which seems to expand incorrectly (or at least not the way I expect). In short, I have a list of libraries that is found by a CMake module. The list is composed of a number of elements each

[CMake] Advice on converting legacy project to modern CMake

2017-08-07 Thread Björn Blissing
Hi, I have some legacy projects which I intend to update to modern CMake. The documentation is good but do not really cover "best practices". So I have some questions which I hope some of you could help to answer: 1. Which version if CMake should I target? I.e. Which version should I require