Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Mateusz Loskot
for library folder and library names. [1] http://www.cmake.org/pipermail/cmake/2012-December/052909.html 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

Re: [CMake] AC_C_RESTRICT

2013-01-04 Thread Mateusz Loskot
also implementation-specific form, e.g. __restrict, etc. [1] http://en.wikipedia.org/wiki/Restrict 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

Re: [CMake] AC_C_RESTRICT

2013-01-04 Thread Mateusz Loskot
On 4 January 2013 14:46, Bill Hoffman bill.hoff...@kitware.com wrote: On 1/4/2013 9:24 AM, Mateusz Loskot wrote: It tests if C compiler supports C99 restrict keyword, perhaps also implementation-specific form, e.g. __restrict, etc. [1]http://en.wikipedia.org/wiki/Restrict Should be able

[CMake] Check for working C compiler using: Visual Studio 10 -- broken

2013-03-05 Thread Mateusz Loskot
seems to be recurring, some users even suggest to uninstall/reinstall Visual Studio... Note, both VS versions work well with projects I already have. I'm confused, what is the correct solution? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other

Re: [CMake] Check for working C compiler using: Visual Studio 10 -- broken

2013-03-05 Thread Mateusz Loskot
when you are starting from a clean build tree? Yes, it does. 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] Check for working C compiler using: Visual Studio 10 -- broken

2013-03-05 Thread Mateusz Loskot
On 5 March 2013 15:58, Bill Hoffman bill.hoff...@kitware.com wrote: On 3/5/2013 10:45 AM, Mateusz Loskot wrote: Here is my environment: - Windows 7 (64-bit). - CMake 2.8.10.2 - Visual Studio 2010 Professional - Visual Studio 2012 Professional (Update 1) All VS installations work well

Re: [CMake] Check for working C compiler using: Visual Studio 10 -- broken

2013-03-06 Thread Mateusz Loskot
On 5 March 2013 17:09, Bill Hoffman bill.hoff...@kitware.com wrote: On 3/5/2013 11:40 AM, Mateusz Loskot wrote: Nice tip with the solution in the CMakeTmp, I had no idea about it. I figured out that the VS2010 project there, cmTryCompileExec3417082516.vcxproj, specifies for linker

Re: [CMake] Check for working C compiler using: Visual Studio 10 -- broken

2013-03-07 Thread Mateusz Loskot
On 6 March 2013 11:52, Mateusz Loskot mate...@loskot.net wrote: On 5 March 2013 17:09, Bill Hoffman bill.hoff...@kitware.com wrote: Taking off incremental seemed to fix the problem for them as well. If you read that thread close, there seems to be ways to fix the problem... Installing

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Mateusz Loskot
this list too, so if any fixes or improvements for SOCI come up, I'd like to pick them up and apply to SOCI. 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

[CMake] Explicit NAME_LIBRARIES and NAME_INCLUDE_DIRS

2013-03-22 Thread Mateusz Loskot
[2] http://sourceforge.net/p/e57-3d-imgfmt/code/331/tree/trunk/cmake/Modules/FindXerces.cmake#l44 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

Re: [CMake] Explicit NAME_LIBRARIES and NAME_INCLUDE_DIRS

2013-03-22 Thread Mateusz Loskot
On 22 March 2013 18:01, Sergei Nikulov sergey.niku...@gmail.com wrote: 2013/3/22 Mateusz Loskot mate...@loskot.net I'm trying to build software which uses libE57 library which has Xerces as dependency. I build Xerces too as part of my project and I deploy it in custom locations and Xerces

Re: [CMake] Explicit NAME_LIBRARIES and NAME_INCLUDE_DIRS

2013-03-22 Thread Mateusz Loskot
On 22 March 2013 21:25, Andreas Stahl andreas.st...@tu-dresden.de wrote: Am 22.03.2013 um 16:59 schrieb Mateusz Loskot mate...@loskot.net: I'm trying to build software which uses libE57 library which has Xerces as dependency. I build Xerces too as part of my project and I deploy it in custom

Re: [CMake] Explicit NAME_LIBRARIES and NAME_INCLUDE_DIRS

2013-03-25 Thread Mateusz Loskot
On 23 March 2013 14:29, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Friday 22 March 2013, Mateusz Loskot wrote: On 22 March 2013 18:01, Sergei Nikulov sergey.niku...@gmail.com wrote: 2013/3/22 Mateusz Loskot mate...@loskot.net I'm trying to build software which uses libE57 library

[CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Mateusz Loskot
of fragmentation and distribution, and it's time to apply Stop Rolling Your Own [1] approach, and perhaps stream all those precious efforts into one sink. [1] http://ithaca.arpinum.org/2013/01/02/git-prompt.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit

Re: [CMake] CMakeModules repository at GitHub?

2013-03-29 Thread Mateusz Loskot
to hear what others think. But you'll be hard-pressed to convince me that a find module inside CMake itself is better than a config file installed with a project's install tree. I prefer to adopt what CMake recommends myself. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

Re: [CMake] CMakeModules repository at GitHub?

2013-03-29 Thread Mateusz Loskot
that repo http://savannah.gnu.org/projects/autoconf-archive/ 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 FAQ

Re: [CMake] CMakeModules repository at GitHub?

2013-03-29 Thread Mateusz Loskot
another find module into CMake. Great, I'm all for that, but let's set up no new find modules added to CMake repo once for all, and force this approach. Otherwise, reality will continue to diverge from the plans. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com

Re: [CMake] CMakeModules repository at GitHub?

2013-03-29 Thread Mateusz Loskot
On 29 March 2013 18:31, Bill Hoffman bill.hoff...@kitware.com wrote: On 3/29/2013 11:27 AM, Mateusz Loskot wrote: Great, I'm all for that, but let's set up no new find modules added to CMake repo once for all, and force this approach. Otherwise, reality will continue to diverge from

Re: [CMake] CMakeModules repository at GitHub?

2013-03-29 Thread Mateusz Loskot
On 29 March 2013 21:00, Bill Hoffman bill.hoff...@kitware.com wrote: On 3/29/2013 3:53 PM, Mateusz Loskot wrote: What if there are multiple CMake modules for the same project, all different and none offering complete coverage of features? Then they don't sounds ready for use to me

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

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] 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] 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] 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

[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] 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

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] 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] 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] 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

[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] 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

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] 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] 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

[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

[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

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

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

[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] 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

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

[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] 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-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

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] 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] 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

[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] 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] [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] [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 >> >>

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-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] 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

[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] 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: > >

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] 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] 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
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] 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] 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
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] 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
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
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] 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
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] [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] [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

[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] 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] 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] 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] 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

[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

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] 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

[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

<    1   2   3   >