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

2019-12-17 Thread Mateusz Loskot
tream, 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 information

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

2019-12-17 Thread Mateusz Loskot
ople 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 CMake community. F

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 suppo

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

2019-10-28 Thread Mateusz Loskot
lues 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 check t

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.

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

2019-10-28 Thread Mateusz Loskot
/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 Kitware of

Re: [CMake] Alternative locations for boost in cmake

2019-10-25 Thread Mateusz Loskot
-). Fixed 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 rega

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.

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 for

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. -- Powe

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
CMAKE_CXX_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 regards,

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
n'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 www.kitware.com Please keep messages

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_options(m

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 t

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

2018-12-09 Thread Mateusz Loskot
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.cmake.org/Wiki/CMake_FAQ

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

2018-12-09 Thread Mateusz Loskot
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.cmake.org/Wiki/CMake_FAQ

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

2018-12-09 Thread Mateusz Loskot
ptions, 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 subscribed to the developer's list. Best regards, -- Mateu

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

2018-12-09 Thread Mateusz Loskot
ptions, 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 subscribed to the developer's list. Best regards, -- Mateu

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

2018-12-08 Thread Mateusz Loskot
, -- 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 visit

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

2018-12-08 Thread Mateusz Loskot
p 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 Kitware offers various services t

[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
les/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.org/Wiki/

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 not her

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

2018-10-30 Thread Mateusz Loskot
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 messages on-to

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
form 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 -- Pow

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 the "

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

2018-10-30 Thread Mateusz Loskot
-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 -- Powered by

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
AG = -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 www.kit

Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
em-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 information

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

2018-10-28 Thread Mateusz Loskot
u 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, http://mateusz.losko

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

2018-10-28 Thread Mateusz Loskot
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 the CMake community. For mo

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 module has

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

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
. 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 offering, please

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] > Namely, I need

[CMake] Writing foo-config.cmake with find_dependency

2018-10-01 Thread Mateusz Loskot
://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 various services to support

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
LSET.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 offerin

Re: [CMake] FindMPI.cmake in 3.11.4

2018-09-14 Thread Mateusz Loskot
ould typically 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_F

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 CMa

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

2018-08-07 Thread Mateusz Loskot
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/CMake_FAQ

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 <elvis.stans...@orexplore.com> wrote: > Den ons 23 maj 2018 17:18Mateusz Loskot <mate...@loskot.net> skrev: >> On 23 May 2018 at 16:37, David Demelier <mark...@malikania.fr> wrote: >> > On Mon, 2018-05-21

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 <mark...@malikania.fr> 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. >

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, <rle...@codelibre.net> 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. > […] >> >&

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 <johannes.zarl-zi...@jku.at> 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

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

2018-05-21 Thread Mateusz Loskot
qually - 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 by www.kitware.com Please keep messages on-topic and check the CMake

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, <mate...@loskot.net> wrote: > I u

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, <mingw.andr...@gmail.com> wrote: > On Sat, May 19, 2018, 9:38 PM Mateusz Loskot <mate...@loskot.net> wrote: > >> On 19 May 2018 at 22:16, Ray Donnelly <min

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 <mingw.andr...@gmail.com> wrote: > On Sat, May 19, 2018, 8:50 PM Mateusz Loskot <mate...@loskot.net> wrote: >> On 19 May 2018 at 15:00, Elvis Stansvik <elvis.stans...@orexplore.com> wrote: >> > I know this has been asked

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

2018-05-19 Thread Mateusz Loskot
s shared as the similar to 32 vs 64 bit? 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 info

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

2018-05-13 Thread Mateusz Loskot
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.kitware.com Please

[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 <brad.k...@kitware.com> 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. > > [...

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

2018-03-22 Thread Mateusz Loskot
On 20 March 2018 at 21:52, Alexander Neundorf <neund...@kde.org> 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 >> >>

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

2018-03-20 Thread Mateusz Loskot
On 20 March 2018 at 21:52, Alexander Neundorf <neund...@kde.org> 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 >> >>

[CMake] [proposal] Support for modern CMake

2018-03-20 Thread Mateusz Loskot
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/p152122705490 Best regards, -- Mateusz Loskot, http://mateusz.

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

2018-03-19 Thread Mateusz Loskot
1] 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

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

2018-03-19 Thread Mateusz Loskot
tor for "Visual Studio 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.or

[CMake] CMAKE_GENERATOR_INSTANCE with absolute path to Visual Studio instance

2018-03-09 Thread Mateusz Loskot
al 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, -- M

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Mateusz Loskot
tion\build>cmake .. -- Building 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

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

2017-09-12 Thread Mateusz Loskot
On 12 September 2017 at 14:53, Konstantin Tokarev <annu...@yandex.ru> wrote: > 11.09.2017, 18:12, "Mateusz Loskot" <mate...@loskot.net>: >> On 11 September 2017 at 17:04, Konstantin Tokarev <annu...@yandex.ru> wrote: >>> 11.09.2017, 17:59, "M

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

2017-09-11 Thread Mateusz Loskot
On 11 September 2017 at 17:04, Konstantin Tokarev <annu...@yandex.ru> wrote: > 11.09.2017, 17:59, "Mateusz Loskot" <mate...@loskot.net>: >> Hi, >> >> I'm building a project with CMake 3.9 using clang-cl.exe driver [1] >> from LLVM/clang 4.0 enabled

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

2017-09-11 Thread Mateusz Loskot
ersManual.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 offers various

[CMake] Add BUILD_SHARED_LIBS as an option

2017-03-28 Thread Mateusz Loskot
o 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://www.cmake.org/Wiki/CMa

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 gja...@googlemail.com 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 to tell me target

[CMake] CXXFLAGS and CMAKE_REQUIRED_FLAGS correspondance

2015-04-29 Thread Mateusz Loskot
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 information on each

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 nilsglad...@gmail.com 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. Hm that is in my opinion too redundant

[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 Loskot, http

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 nilsglad...@gmail.com 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 size of a pointer on the machine but not size

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 nilsglad...@gmail.com 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. IOW, any CMake variable or macro

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 nilsglad...@gmail.com 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/variable/CMAKE_SIZEOF_VOID_P.html It's

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

2015-04-23 Thread Mateusz Loskot
what'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.loskot.net

[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

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

2013-12-18 Thread Mateusz Loskot
On 17 December 2013 14:27, J Decker d3c...@gmail.com 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

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

2013-12-17 Thread Mateusz Loskot
On 17 December 2013 02:29, J Decker d3c...@gmail.com 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

[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

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

2013-12-14 Thread Mateusz Loskot
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? Best regards, -- Mateusz Łoskot, http://mateusz.loskot.net - -- Mateusz Loskot http://mateusz.loskot.net -- View

Re: [CMake] PROJECT_SOURCE_DIR ...

2013-11-10 Thread Mateusz Loskot
and projectName_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/functions, more generic scripts, etc. Best regards, -- Mateusz Loskot

Re: [CMake] Distinction between Windows Compilers

2013-11-04 Thread Mateusz Loskot
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 -- Powered by www.kitware.com Please keep messages on-topic

Re: [CMake] Distinction between Windows Compilers

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

Re: [CMake] Distinction between Windows Compilers

2013-11-04 Thread Mateusz Loskot
On 4 November 2013 15:38, Bill Hoffman bill.hoff...@kitware.com 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 compiler id and related variables

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 various

Re: [CMake] CMake 2.8.12 docs missing?

2013-10-11 Thread Mateusz Loskot
On 11 October 2013 15:23, Robert Maynard robert.mayn...@kitware.com 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

[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

Re: [CMake] Difficulties with component search by FindBoost

2013-09-30 Thread Mateusz Loskot
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.org/Wiki/CMake_FAQ Kitware offers various services to support

Re: [CMake] Difficulties with component search by FindBoost

2013-09-30 Thread Mateusz Loskot
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.loskot.net Participation in this whole process

Re: [CMake] Inherited Directory Properties?

2013-09-13 Thread Mateusz Loskot
with set_directory_properties (or set_property), like here: set_directory_properties(PROPERTIES MY_PROP foo) You don't mean the CMake, cache or environment variable set with the command set by any chance? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Participation in this whole

Re: [CMake] Version Check

2013-09-05 Thread Mateusz Loskot
/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.org/Wiki/CMake_FAQ Kitware offers various

Re: [CMake] Listing headers in source lists

2013-06-12 Thread Mateusz Loskot
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 check the CMake

Re: [CMake] CMakeModules repository at GitHub?

2013-04-04 Thread Mateusz Loskot
On 4 April 2013 17:44, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 28 March 2013, Mateusz Loskot wrote: To CMake maintainers, what do you think about creating new repository at https://github.com/Kitware/CMakeModules as incubator for contributed CMake modules? we

Re: [CMake] CMakeModules repository at GitHub?

2013-04-04 Thread Mateusz Loskot
On 4 April 2013 20:14, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 04 April 2013, Mateusz Loskot wrote: On 4 April 2013 17:44, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 28 March 2013, Mateusz Loskot wrote: To CMake maintainers, what do you think about

  1   2   3   >