Re: [CMake] CMake's FindBoost Module Can't Detect Boost Version

2019-12-17 Thread Mateusz Loskot
d with upstream, but is used by downstream to find the files by guessing locations of files with platform-specific hints." Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more i

Re: [CMake] CMake's FindBoost Module Can't Detect Boost Version

2019-12-17 Thread Mateusz Loskot
try to help people help you [2] [1] https://cmake.org/pipermail/cmake/2018-October/068477.html [2] http://www.catb.org/~esr/faqs/smart-questions.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by kitware.com/cmake Kitware offers various services to support the CMa

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
frame "Note" on docs page of the property/variable. Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 th

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
alues are" Hint 2: In CMake, for XXX property there is a corresponding variable https://cmake.org/cmake/help/v3.15/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and ch

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
On Mon, 28 Oct 2019 at 12:22, Osman Zakir wrote: > > And I should do "-DCMAKE_MSVC_RUNTIME_LIBRARY=/MT" Man, read the docs I pasted!!! https://cmake.org/cmake/help/v3.15/prop_tgt/MSVC_RUNTIME_LIBRARY.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

Re: [CMake] How to Switch to Static Runtime on Command Line?

2019-10-28 Thread Mateusz Loskot
cmake/help/latest/policy/CMP0091.html https://cmake.org/cmake/help/v3.15/prop_tgt/MSVC_RUNTIME_LIBRARY.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitwa

Re: [CMake] Alternative locations for boost in cmake

2019-10-25 Thread Mateusz Loskot
ixed in CMake 3.13.0. if CMake is still failing to find Boost, you may try -DBoost_DEBUG=ON to get detailed diagnostics output from FindBoost.cmake module. ``` Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and chec

Re: [CMake] Alternative locations for boost in cmake

2019-10-24 Thread Mateusz Loskot
generic installer for any Linux and Windows Updating CMake is easy-peasy for us lazy programmers with a bit of scripting: https://github.com/mloskot/wsl-config/blob/master/scripts/install-cmake-latest.sh https://github.com/mloskot/wsl-config/blob/master/scripts/install-cmake-latest.ps1 Best regards

Re: [CMake] Alternative locations for boost in cmake

2019-10-24 Thread Mateusz Loskot
/cmake.org/cmake/help/latest/manual/cmake.1.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.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

Re: [CMake] CMake guidelines and design patterns - recommendations?

2019-07-11 Thread Mateusz Loskot
https://crascit.com/professional-cmake/ And search for Daniel Pfeifer's talk on YouTube Mateusz Loskot, mate...@loskot.net (Sent from mobile, may suffer from top-posting) On Thu, 11 Jul 2019, 12:56 hex, wrote: > hello community, > > > Does anyone have a book recommendation

Re: [CMake] c++2a

2019-05-07 Thread Mateusz Loskot
On Tue, 7 May 2019 at 20:38, Angel Campoverde wrote: > Next time please ask what computer I am using. CMake results are intrinsically compiler-specific. Your issue is compiler-specific. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net p.s. Please, stop it. -- Powered

Re: [CMake] c++2a

2019-05-07 Thread Mateusz Loskot
On Tue, 7 May 2019 at 18:24, Angel Campoverde wrote: > > No, It does not work, I told Cmake to use c++ 20, but it still goes back to > c++17. You can see what I get here: > > https://pastebin.com/5ub18cMU Next time, please specify what compiler you are using. Best regards, --

Re: [CMake] c++2a

2019-05-07 Thread Mateusz Loskot
XX_EXTENSIONS=OFF .. and then VERBOSE=1 make you will clearly see that CMake generated the compiler command lines with -std=c++2a IFF, you are using version of GCC or clang that supports c++2a, obviously (i.e. GCC 8/clang 6 or later. I'm not entirely confident about clang) Best

Re: [CMake] Boost 1.70.0 -- FindBoost issues? No linker libraries found

2019-04-15 Thread Mateusz Loskot
the old FindBoost.cmake behaviour https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake#L238 Best regards, -- Mateusz Loskot, http://mateusz.loskot.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

Re: [CMake] Remove compilation flags for a given target

2019-04-04 Thread Mateusz Loskot
pilation flags and don't *add* compilation > flags? Both target_compile_options and set_target_properties seems to > *add* flags and don't replace. See https://cmake.org/pipermail/cmake/2018-December/068716.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by ww

Re: [CMake] Setting MSVC runtime type on CMake command line?

2019-01-12 Thread Mateusz Loskot
what's the correct way to do this? Modify C/C++ flags. For example, something along these lines string(REGEX REPLACE "/MD" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) string(REGEX REPLACE "-MT" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) target_compile_opti

Re: [CMake] target_link_libraries not populating INCLUDE_DIRECTORIES?

2018-12-21 Thread Mateusz Loskot
CTORIES.html#prop_tgt:INCLUDE_DIRECTORIES> property of . Yea, but are missing the actual from your call. Mateusz Loskot, mate...@loskot.net (Sent from mobile) -- 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 v

Re: [CMake] Can CXX_CLANG_TIDY use .clang-tidy file?

2018-12-12 Thread Mateusz Loskot
On Mon, 10 Dec 2018 at 18:31, Bill Hoffman via CMake wrote: > On 12/8/2018 7:47 PM, Mateusz Loskot wrote: > > > > Am I correct clang-tidy run via CXX_CLANG_TIDY > > ignores .clang-tidy configuration file? > > > > I've tried number of ways to help it find

Re: [CMake] [MSVC] Setting warning level on target feels like long-time bug

2018-12-09 Thread Mateusz Loskot
do not explicitly set -W defaults or strip any -W option prior re-setting with (possibly) new value passed to target_compile_options. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www

Re: [CMake] [MSVC] Setting warning level on target feels like long-time bug

2018-12-09 Thread Mateusz Loskot
But with the advent of target_compile_options, the string call requirement is just unacceptable. [1] https://gitlab.kitware.com/cmake/cmake/issues/18317 > I've CC'ed the developer's list and suggest that follow-up discussion should > occur there. FYI, I've just sub

[CMake] Can CXX_CLANG_TIDY use .clang-tidy file?

2018-12-08 Thread Mateusz Loskot
gards, -- Mateusz Loskot, http://mateusz.loskot.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

[CMake] [MSVC] Setting warning level on target feels like long-time bug

2018-12-08 Thread Mateusz Loskot
gn, for MSVC? Could anyone help me to understand if this is actually a bug or am I misunderstanding anything? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kit

[CMake] [MR2579] FindBoost: Improve compiler prefix detection for GCC 5+ and clang 4+

2018-11-08 Thread Mateusz Loskot
Hi, FYI, I proposed changes to FindBoost that may be of interest of users relying on the upcoming Boost 1.69 ie. current master or develop branches https://gitlab.kitware.com/cmake/cmake/merge_requests/2579 Feedback is welcome. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

Re: [CMake] Docker container can't find cmake executable

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 18:10, Osman Zakir wrote: > > So I have to do "ENV export PATH=$HOME/usr/bin:$PATH"? Is that what you mean? Your question is off-topic here. Try Docker forums, StackOverflow, ... Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
ake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr export PATH=$HOME/usr/bin:$PATH Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
e standard prefix /usr/local with cmake executable deployed in /usr/local/bin/cmake and having /usr/local/bin typically in PATH you would get cmake in your PATH out of the box. Just forget about using apt-get with the downloaded .tar.gz, forget it! Or, learn about Debian packages, apt, etc. just no

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
assure you the option 2. works perfectly I use it daily to juggle CMake on number of Linux environments https://github.com/mloskot/wsl-config/blob/master/wsl/scripts/install-cmake-latest.sh Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep mess

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
rm name if supported by generator. For this paricular VS use case, I could have used cmake -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT:PATH=D:\boost.win .. which should be equivalent to cmake -A x64 -DBOOST_ROOT:PATH=D:\boost.win Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
y! ML > > From: CMake on behalf of Mateusz Loskot > > Sent: Tuesday, October 30, 2018 2:55 PM > To: cmake@cmake.org > Subject: Re: [CMake] About FindBoost.cmake > > On Tue, 30 Oct 2018 at 10:54, Mateusz Loskot wrote: > > [...] > > D:

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 10:54, Mateusz Loskot wrote: > [...] > D:\_\workshop\test_boost\_build.vs2017 cmake -A x64 > -DBOOST_ROOT:PATH=D:\boost.win .. > -- Building for: Visual Studio 15 2017 > -- The C compiler identification is MSVC 19.15.26730.0 > -- The CXX compiler iden

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 10:24, Mateusz Loskot wrote: > On Tue, 30 Oct 2018 at 10:17, Osman Zakir wrote: > > > > Yes, but this might also be why it can't find more than "some" of the Boost > > libraries. It looks for "-d" even though I'm using

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
wget -O cmake-linux.sh https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local cmake --version I guess, it may be a good idea to update https://cmake.org/install/ Best regards,, -- Mateusz Loskot, http://mateusz.loskot.net -- Power

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
_ABI_TAG = -gd FindBoost is a complex animal, it deals with tons of cases, it frequently stops working. So, crystal sphere -based investigation does not quite apply :) BTW, pease respond to the mailing list, not privately. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by w

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
esystem-vc141-mt-x64-1_69.lib Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 informa

Re: [CMake] CMake Can't Find Boost.Filesystem in Docker Container

2018-10-28 Thread Mateusz Loskot
see what is happening. You will have to dig the issue deep and the digging may be difficult and frustrating. That is why I would work things on Linux locally (VM) first - Docker just adds up to the overall complexity. I see no way to solve your problem for you. Best regards, -- Mateusz Loskot

Re: [CMake] CMake Can't Find Boost.Filesystem in Docker Container

2018-10-28 Thread Mateusz Loskot
al, not sufficient at all to pin point where may possible problem be. Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 th

Re: [CMake] [ANNOUNCE] CMake 3.13.0-rc2 is ready for testing

2018-10-25 Thread Mateusz Loskot
On Thu, 25 Oct 2018 at 17:12, Brad King wrote: > On 10/25/2018 11:10 AM, Mateusz Loskot wrote: > > FindBoost.cmake changes seem to be missing from this section > > We don't record every version update or implementation change > in release notes. The interface of the modul

Re: [CMake] [ANNOUNCE] CMake 3.13.0-rc2 is ready for testing

2018-10-25 Thread Mateusz Loskot
On Thu, 25 Oct 2018 at 17:06, Robert Maynard wrote: > > CMake 3.13 Release Notes > > [...] > > Modules > --- > [...] FindBoost.cmake changes seem to be missing from this section Best regards, -- Mateusz Loskot, http://mateusz.lo

Re: [CMake] Finding Boost in versioned layout on Linux

2018-10-24 Thread Mateusz Loskot
On Wed, 24 Oct 2018 at 22:17, Brad King wrote: > On 10/24/2018 01:22 PM, Mateusz Loskot wrote: > > So, I had to bend CMake this way to find Boost for me: > > > > cmake -DBoost_COMPILER=-gcc5 -DCMAKE_CXX_COMPILER_ARCHITECTURE_ID=x64 .. > > See these issues: > >

[CMake] Finding Boost in versioned layout on Linux

2018-10-24 Thread Mateusz Loskot
oost.cmake. Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 offeri

Re: [CMake] Writing foo-config.cmake with find_dependency

2018-10-04 Thread Mateusz Loskot
On Mon, 1 Oct 2018 at 21:45, Mateusz Loskot wrote: > > The library has number of dependencies on third-party libraries, > namely database access client libraries. I've reached the point > where I need to 'list' those dependencies in soci-config.cmake [3] > Name

[CMake] Writing foo-config.cmake with find_dependency

2018-10-01 Thread Mateusz Loskot
ml/modern-cmake [3] https://github.com/mloskot/soci/blob/ml/modern-cmake/cmake/soci-config.cmake Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 va

Re: [CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Mateusz Loskot
ps://cmake.org/cmake/help/latest/module/FindXercesC.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 c

Re: [CMake] How to have Visual Studio 15 2017 actually use a 64 bit toolchain.

2018-09-21 Thread Mateusz Loskot
R_TOOLSET.html Best regards -- Mateusz Loskot, http://mateusz.loskot.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 of

Re: [CMake] FindMPI.cmake in 3.11.4

2018-09-14 Thread Mateusz Loskot
ically be cache entries such as FOO_LIBRARY and not output variables like FOO_LIBRARIES. """ Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ K

Re: [CMake] Need info on how cmake messages output is formatted

2018-09-07 Thread Mateusz Loskot
ons of ->IssueMessage and uses of cmake::MessageType and its members eg. cmake::FATAL_ERROR may help to collect a picture on how messages are composed. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake

Re: [CMake] Boost + CMake + Windows + Sanity -> Possible?

2018-08-07 Thread Mateusz Loskot
gitlab.kitware.com/cmake/cmake/issues/17701 Remember, FindBoost.cmake is *always* a step or two behind CMake release. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki

Re: [CMake] Development Workflow with CMake and VS2017

2018-07-15 Thread Mateusz Loskot
I recommend vcpkg and Conan. You may check Boost.GIL configuration for CMake that uses both as alternatives. Conan can automatically pulls libpng etc. https://github.com/boostorg/gil Mateusz Loskot, mate...@loskot.net (Sent from mobile) On Sun, 15 Jul 2018, 09:44 Dvir Yitzchaki, wrote: >

Re: [CMake] Contribute Find-module to CMake vs Config-file to upstream

2018-05-24 Thread Mateusz Loskot
On 24 May 2018 at 08:45, Elvis Stansvik wrote: > Den ons 23 maj 2018 17:18Mateusz Loskot skrev: >> On 23 May 2018 at 16:37, David Demelier wrote: >> > On Mon, 2018-05-21 at 19:39 +0200, Mateusz Loskot wrote: >> >> >> >> >> >> IMHO, CM

Re: [CMake] Contribute Find-module to CMake vs Config-file to upstream

2018-05-23 Thread Mateusz Loskot
On 23 May 2018 at 16:37, David Demelier wrote: > On Mon, 2018-05-21 at 19:39 +0200, Mateusz Loskot wrote: >> >> I've been recently trying to update/add Find-modules to CMake: >> updated FindJPEG, proposed FindODBC and most recently FindLZ4. >> >> Discussion

Re: [CMake] Contribute Find-module to CMake vs Config-file to upstream

2018-05-22 Thread Mateusz Loskot
On 22 May 2018 at 13:36, wrote: > On 2018-05-21 18:39, Mateusz Loskot wrote: >> >> I've been recently trying to update/add Find-modules to CMake: >> updated FindJPEG, proposed FindODBC and most recently FindLZ4. > […] >> >> The FindLZ4 discussion basic

Re: [CMake] Contribute Find-module to CMake vs Config-file to upstream

2018-05-22 Thread Mateusz Loskot
On 22 May 2018 at 12:27, Johannes Zarl-Zierl wrote: > On Montag, 21. Mai 2018 19:39:16 CEST Mateusz Loskot wrote: >> The FindLZ4 discussion basically ended with suggestion from Brad that, >> instead of adding Find-module to CMake, I should approach LZ4 project >> and a

[CMake] Contribute Find-module to CMake vs Config-file to upstream

2018-05-21 Thread Mateusz Loskot
are about Find-modules, it should not care or should care about them equally - thus presence of such find-modules archive deployed should not affect the health of CMake installation and its pursue fo rFind-modules ignorance. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered

Re: [CMake] Approach to both shared and static lib (again, sorry)

2018-05-19 Thread Mateusz Loskot
Sorry for garbage in previous response. I top posted partial response and bottom-posted more completed one. Not easy to edit longish emails on mobile :) Mateusz Loskot, mate...@loskot.net (Sent from mobile) On Sun, 20 May 2018, 00:03 Mateusz Loskot, wrote: > I understand your > >

Re: [CMake] Approach to both shared and static lib (again, sorry)

2018-05-19 Thread Mateusz Loskot
I understand your Mateusz Loskot, mate...@loskot.net (Sent from mobile) On Sat, 19 May 2018, 22:54 Ray Donnelly, wrote: > On Sat, May 19, 2018, 9:38 PM Mateusz Loskot wrote: > >> On 19 May 2018 at 22:16, Ray Donnelly wrote: >> > On Sat, May 19, 2018, 8:50 PM Mat

Re: [CMake] Approach to both shared and static lib (again, sorry)

2018-05-19 Thread Mateusz Loskot
On 19 May 2018 at 22:16, Ray Donnelly wrote: > On Sat, May 19, 2018, 8:50 PM Mateusz Loskot wrote: >> On 19 May 2018 at 15:00, Elvis Stansvik wrote: >> > I know this has been asked before, but I've never seen a really >> > authoritative answer. >> >

Re: [CMake] Approach to both shared and static lib (again, sorry)

2018-05-19 Thread Mateusz Loskot
is, do two separate configure/build/install, in order to get both > a shared and static version. IMHO, there is nothing ugly in this approach. Not every system allows (or recomments) to generate both, static and shared, from the same object files. Why not view static vs shared as the s

[CMake] FindODBC: Add module to search for ODBC library (MR #2069)

2018-05-13 Thread Mateusz Loskot
riables. I posted related question earlier in https://cmake.org/pipermail/cmake/2018-May/067504.html I'd be interested to know if the technique used in the module is sound or if there is a better one recommended. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitw

[CMake] find_package_handle_standard_args for target-only modules

2018-05-11 Thread Mateusz Loskot
variables? Or something else? Best regards, -- Mateusz Loskot, http://mateusz.loskot.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

Re: [CMake] [proposal] Support for modern CMake

2018-03-22 Thread Mateusz Loskot
On 22 March 2018 at 16:51, Brad King wrote: > On 03/22/2018 10:17 AM, Mateusz Loskot wrote: >> It seems folks generally agree there is need for porcelain API. >> It's a pity it's been 5+ years and it is still waiting for implementation. > > [...] > The main dri

Re: [CMake] [proposal] Support for modern CMake

2018-03-22 Thread Mateusz Loskot
On 20 March 2018 at 21:52, Alexander Neundorf wrote: > On 2018 M03 20, Tue 21:14:30 CET Mateusz Loskot wrote: > ... >> Why I can not write: >> >> target_use(app Boost::system Boost::filesystem) >> >> or >> >> target_use_targets(app Boost::system

Re: [CMake] [proposal] Support for modern CMake

2018-03-20 Thread Mateusz Loskot
On 20 March 2018 at 21:52, Alexander Neundorf wrote: > On 2018 M03 20, Tue 21:14:30 CET Mateusz Loskot wrote: > ... >> Why I can not write: >> >> target_use(app Boost::system Boost::filesystem) >> >> or >> >> target_use_targets(app Boost::system

[CMake] [proposal] Support for modern CMake

2018-03-20 Thread Mateusz Loskot
named it to fit in the Daniel's concept of looking at CMake API as OOP, that is OOP like in C in GTK+ :), of course. [1] https://twitter.com/mloskot/status/973914895287713793 [2] https://github.com/vector-of-bool/vscode-cmake-tools [3] https://cpplang.slack.com/archives/C5Y2GDECX/p15

Re: [CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-19 Thread Mateusz Loskot
] https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/ Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 t

Re: [CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-19 Thread Mateusz Loskot
Code". VSCode is generator-agnostic. For current list of generators, refer to the CMake docs. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kit

[CMake] CMAKE_GENERATOR_INSTANCE with absolute path to Visual Studio instance

2018-03-09 Thread Mateusz Loskot
ssional C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional [1] https://gitlab.kitware.com/cmake/cmake/commit/9ffb35386fb923a5959eec482bfa131aa3feaa18 [2] https://cmake.org/cmake/help/v3.11/generator/Visual Studio 15 2017.html [3] https://github.com/Microsoft/vswhere Best regards,

Re: [CMake] To quote (path) variables or not, and everywhere?

2017-09-28 Thread Mateusz Loskot
On 25 September 2017 at 18:40, Zan Lynx wrote: > On 09/25/2017 10:15 AM, Mateusz Loskot wrote: >> What if (Windows) user runs cmake inside >> >> c:\my awesome projects\one-superb\build >> >> and there is xxx_command(${CMAKE_SOURCE_DIR}) > > Indeed. >

Re: [CMake] To quote (path) variables or not, and everywhere?

2017-09-25 Thread Mateusz Loskot
ure and you can reorganize your project to > get rid of the need for quotes. What if (Windows) user runs cmake inside c:\my awesome projects\one-superb\build and there is xxx_command(${CMAKE_SOURCE_DIR}) I find lack of CMake standarised conventions and idioms a mistake, softly saying. Best r

Re: [CMake] To quote (path) variables or not, and everywhere?

2017-09-25 Thread Mateusz Loskot
it > 2) if it's not a pat, but inside an if() or any similar core language > structure, quote it as well > 3) don't quote only if you're sure the string can't have spaces - otherwise > do quote > 4) quoting is free and doesn't hurt That sounds

[CMake] To quote (path) variables or not, and everywhere?

2017-09-25 Thread Mateusz Loskot
ps://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes. [2] https://stackoverflow.com/a/35853080/151641 [3] https://public.kitware.com/pipermail/cmake/2012-July/051138.html [4] https://public.kitware.com/pipermail/cmake/2012-July/051139.html Best regards,

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Mateusz Loskot
ing for: Visual Studio 15 2017 CMake Error at foo/CMakeLists.txt:1 (add_executable): add_executable called with incorrect number of arguments -- Configuring incomplete, errors occurred! See also "D:/tmp/cmake-location/build/CMakeFiles/CMakeOutput.log". Best regards, -- Mateusz Loskot,

Re: [CMake] [Windows] clang-cl.exe detected as MSVC?

2017-09-12 Thread Mateusz Loskot
On 12 September 2017 at 14:53, Konstantin Tokarev wrote: > 11.09.2017, 18:12, "Mateusz Loskot" : >> On 11 September 2017 at 17:04, Konstantin Tokarev wrote: >>> 11.09.2017, 17:59, "Mateusz Loskot" : >>>> >>>> I'm building a p

Re: [CMake] [Windows] clang-cl.exe detected as MSVC?

2017-09-11 Thread Mateusz Loskot
On 11 September 2017 at 17:04, Konstantin Tokarev wrote: > 11.09.2017, 17:59, "Mateusz Loskot" : >> Hi, >> >> I'm building a project with CMake 3.9 using clang-cl.exe driver [1] >> from LLVM/clang 4.0 enabled with Visual Studio 2015 environment. >&

[CMake] [Windows] clang-cl.exe detected as MSVC?

2017-09-11 Thread Mateusz Loskot
lvm.org/docs/UsersManual.html#clang-cl [2] https://cmake.org/cmake/help/v3.9/variable/MSVC.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 off

[CMake] Add BUILD_SHARED_LIBS as an option

2017-03-28 Thread Mateusz Loskot
#x27;m trying to cut number of custom options and I'm never certain how I can actually re/ab-use the standard CMake settings. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://ww

[CMake] CXXFLAGS and CMAKE_REQUIRED_FLAGS correspondance

2015-04-29 Thread Mateusz Loskot
and others) may give unexpected results. Best regards, -- Mateusz Loskot, http://mateusz.loskot.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

Re: [CMake] Detecting -m32 build target on 64-bit host

2015-04-29 Thread Mateusz Loskot
On 24 April 2015 at 21:00, Gregor Jasny wrote: > On 23/04/15 16:54, Mateusz Loskot wrote: >> Surprisingly, I'm having trouble to figure out how to determine, >> that in Linux 64-bit OS, I'm building a project with -m32 specified. >> IOW, any CMake variable or macro

Re: [CMake] FindBoost.cmake issue while targeting 32-bit build on Linux 64-bit

2015-04-23 Thread Mateusz Loskot
's the issue. I'm surprised it hasn't been addressed yet, seems folks apply some workarounds external to FindBoost, but what they are... Thanks for the pointers too, somehow I missed that issue was discussed in those Boost threads. Best regards, -- Mateusz Loskot, http://mateusz

Re: [CMake] Detecting -m32 build target on 64-bit host

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 18:04, Nils Gladitz wrote: > On 23.04.2015 18:00, Mateusz Loskot wrote: >> >> It's better, indeed, but what about >> >> "This is set to the size of a pointer on the target machine for which >> the (machine) code is generated.&qu

Re: [CMake] Detecting -m32 build target on 64-bit host

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 17:50, Nils Gladitz wrote: > On 23.04.2015 17:32, Mateusz Loskot wrote: >> >> So, the documentation is imprecise in this regard, isn't it? >> >> Best regards, > > > Is this better? > http://www.cmake.org/cmake/help/git-next/va

Re: [CMake] Detecting -m32 build target on 64-bit host

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 17:20, Nils Gladitz wrote: > On 23.04.2015 17:08, Mateusz Loskot wrote: >> >> I know this trick, but this is not what I'm looking for, unless I >> misread the documentation. >> >> The doc says: >> >> "This is set to the

Re: [CMake] Detecting -m32 build target on 64-bit host

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 16:57, Nils Gladitz wrote: > On 04/23/2015 04:54 PM, Mateusz Loskot wrote: >> >> Hi, >> >> Surprisingly, I'm having trouble to figure out how to determine, >> that in Linux 64-bit OS, I'm building a project with -m32 specified. >

[CMake] Detecting -m32 build target on 64-bit host

2015-04-23 Thread Mateusz Loskot
Hi, Surprisingly, I'm having trouble to figure out how to determine, that in Linux 64-bit OS, I'm building a project with -m32 specified. IOW, any CMake variable or macro to tell me target architecture of a build that is being configured is 32 or 64 bit? Best regards, -- Mateusz Lo

[CMake] FindBoost.cmake issue while targeting 32-bit build on Linux 64-bit

2015-04-23 Thread Mateusz Loskot
expect it to do, by design or by a bug? Best regards, -- Mateusz Loskot, http://mateusz.loskot.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

Re: [CMake] Adding CMAKE_BUILD_TYPE support to ProjectConfig.cmake

2013-12-18 Thread Mateusz Loskot
On 17 December 2013 14:27, J Decker wrote: > which is... build seperately into seperate directories even with makefile. > [...] Yes, and that is a good feature of CMake. What is still unclear to me is how the package registry works in such case. Here is the basic example to support my previous q

Re: [CMake] Adding CMAKE_BUILD_TYPE support to ProjectConfig.cmake

2013-12-17 Thread Mateusz Loskot
On 17 December 2013 02:29, J Decker wrote: > build with multiple passes... 1 time release, and 1 time debug. Don't > think about building both at once I'm more concerned about using both (linking against) at once, FooBarUser built in Release links against FooBar build in Release mode... AFA

[CMake] Adding CMAKE_BUILD_TYPE support to ProjectConfig.cmake

2013-12-16 Thread Mateusz Loskot
Hi, I've started adding the config mode support to my CMake-based projects and with quite a success. So far, I have basic understanding of what it takes in practice to enable config mode and there is still more to learn for me. TL;TR: How to make use of CMAKE_BUILD_TYPE in config mode? Could any

Re: [CMake] suggested or best-practice for independent subproject library

2013-12-14 Thread Mateusz Loskot
1 and statically link programs to it as needed (i.e., > without installing library1's headers and binaries to the installation > destination). Jeet, Have you managed to solve this task of combining use of git submodule and exported targets without installation? Anyone, is it even possible

Re: [CMake] PROJECT_SOURCE_DIR ...

2013-11-10 Thread Mateusz Loskot
dditionally this sets the variables _BINARY_DIR and _SOURCE_DIR to the respective values. """ > And they are the same as CMAKE_BINARY_DIR , or CMAKE_SOURCE_DIR. > > So why one would use the ${PROJECT}_BINARY_DIR variables? i.e. when writing general purpose macros/fun

Re: [CMake] Distinction between Windows Compilers

2013-11-04 Thread Mateusz Loskot
On 4 November 2013 15:38, Bill Hoffman wrote: > On 11/4/2013 10:21 AM, Mateusz Loskot wrote: >> >> I don't care about MinGW/Cygwin myself, but AFAIR, there is no >> detection mechanism >> for those, only -m64 flag juggling. > > You could look at the com

Re: [CMake] Distinction between Windows Compilers

2013-11-04 Thread Mateusz Loskot
On 4 November 2013 15:16, dravion.sm...@gmx.net wrote: > Am 04.11.2013 16:09, schrieb Mateusz Loskot: >> >> On 4 November 2013 14:45, dravion.sm...@gmx.net >> wrote: >>> >>> Hi, >>> >>> Is there an Way to choose diffrent Windows Com

Re: [CMake] Distinction between Windows Compilers

2013-11-04 Thread Mateusz Loskot
wed by the platform name to create project files for a specific target platform. E.g. "Visual Studio 10 Win64" will create project files for the x64 processor; "Visual Studio 10 IA64" for Itanium. """ Best regards, -- Mateusz Loskot, http://mateusz.loskot.net --

Re: [CMake] Proper way to export a library

2013-10-31 Thread Mateusz Loskot
dllexport and dllimport. IMO, OP should split the threads for sake of the list usability. Best regards, -- Mateusz Loskot, http://mateusz.loskot.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 vari

Re: [CMake] CMake 2.8.12 docs missing?

2013-10-11 Thread Mateusz Loskot
On 11 October 2013 15:23, Robert Maynard wrote: > I am currently in the process of getting the 2.8.12 documentation > generated and uploaded. Sweet, thanks! Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and che

[CMake] CMake 2.8.12 docs missing?

2013-10-10 Thread Mateusz Loskot
Hi, The latest version linked in the documentation [1] is 2.8.11. Where can I find docs for the latest release? [1] http://cmake.org/cmake/help/documentation.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and

Re: [CMake] Difficulties with component search by "FindBoost"

2013-09-30 Thread Mateusz Loskot
fying COMPONENTS spirit leads to lookup for non-existent binary library. Perhaps, all headers-only libraries could be handled by the FindBoost module and then reported by CMake: "Spirit is headers-only, shall not be specified with COMPONENTS" Best regards, -- Mateusz Loskot, http://mateusz.

Re: [CMake] Difficulties with component search by "FindBoost"

2013-09-30 Thread Mateusz Loskot
[1], but COMPONENTS is dedicated to request lookup for the Boost libraries which are built as binary components. For the Spirit, you just need to check if you have Boost headers available: find_package(Boost 1.49 REQUIRED) [1] http://cmake.org/cmake/help/v2.8.11/cmake.html#module:FindBoost Bes

Re: [CMake] Inherited Directory Properties?

2013-09-13 Thread Mateusz Loskot
he build > without any need to know the list's name or ensure it's > definition reaches the scope at the top of the call stack. Robert, Am I getting it right, that you are trying to set a custom user-defined property with set_directory_properties (or set_property), like here: set_dire

Re: [CMake] Version Check

2013-09-05 Thread Mateusz Loskot
ttp://cmake.org/cmake/help/v2.8.11/cmake.html#command:if Best regards, -- Mateusz Loskot, http://mateusz.loskot.net "Participation in this whole process is a form of torture" ~~ Szalony -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake

Re: [CMake] Listing headers in source lists

2013-06-12 Thread Mateusz Loskot
anything changed in recent CMake versoins, so it is no longer necessary. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and che

  1   2   3   >