Re: [CMake] Problem with set_source_files_properties

2012-01-05 Thread Mateusz Loskot
flags. You have read the 2nd paragraph of COMPILE_FLAGS section in manual, haven't you. 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

Re: [CMake] error of mixed dynamic/static link to Boost in windows VS2008

2012-01-06 Thread Mateusz Loskot
installation directory, locate FindBoost.cmake file, open this file and read the comments where you have it explained very well. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Mateusz Loskot
=Debug or load myproj.sln in VS IDE and change configuration there. Obviously, for makefiles, CMAKE_BUILD_TYPE is the way to go. 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

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Mateusz Loskot
Visual Studio is choosing the default built type? Eric, spot on! Renato, if you create new project from within Visual Studio, what build configuration is used as default? Debug. Your problem has nothing to do with CMake. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered

[CMake] Progress report strange behaviour with mixed file permissions

2012-01-13 Thread Mateusz Loskot
: you do can run make but the progress widget always reports the same percentage. I was at 83% from start to finish. Pretty puzzling :) The above was with cmake version 2.8.1. Could any one point where is the problem? CMake misuse or bug indeed? Best regards, -- Mateusz Loskot, http

Re: [CMake] Progress report strange behaviour with mixed file permissions

2012-01-13 Thread Mateusz Loskot
On 13 January 2012 11:30, David Cole david.c...@kitware.com wrote: On Fri, Jan 13, 2012 at 5:48 AM, Mateusz Loskot mate...@loskot.net wrote: A friend of mine has asked me to confirm if there may be a bug in CMake related to file permissions on Unix. Here is the story: There are some files

Re: [CMake] Embarcadero C++ nightly test

2012-02-22 Thread Mateusz Loskot
for unlimited time without paying any money.So why not test it officially? The fact it is technically possible, without a nag screen, etc. does not mean it is legal. So, better check the EULA. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other

[CMake] [2.6] set_tests_properties with PATH ignored?

2010-10-02 Thread Mateusz Loskot
not work with CMake 2.6, but if not I think it may important users can find about it scanning the ML archives. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ___ Powered

[CMake] Get configuration-dependant LOCATION property

2010-10-03 Thread Mateusz Loskot
, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-03 Thread Mateusz Loskot
On 03/10/10 22:27, J Decker wrote: On Sun, Oct 3, 2010 at 10:28 AM, Mateusz Loskot mate...@loskot.net wrote: Hi, I understand what the manual [1] says about LOCATION property that it is more or less deprecated. Is that right? I'm building software (shared libraries and executables) on both

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-04 Thread Mateusz Loskot
( ... ${CMAKE_BUILD_TYPE} I need it before firing up install procedures. I build. I run tests (here I need to know location of build output per target). I install. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-04 Thread Mateusz Loskot
On 04/10/10 05:40, Michael Wild wrote: On 3. Oct, 2010, at 23:53 , Mateusz Loskot wrote: On 03/10/10 22:27, J Decker wrote: On Sun, Oct 3, 2010 at 10:28 AM, Mateusz Loskotmate...@loskot.net wrote: Hi, I understand what the manual [1] says about LOCATION property that it is more or less

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-04 Thread Mateusz Loskot
On 04/10/10 12:01, Michael Wild wrote: On 4. Oct, 2010, at 10:51 , Mateusz Loskot wrote: On 04/10/10 05:40, Michael Wild wrote: On 3. Oct, 2010, at 23:53 , Mateusz Loskot wrote: On 03/10/10 22:27, J Decker wrote: On Sun, Oct 3, 2010 at 10:28 AM, Mateusz Loskotmate...@loskot.net

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-04 Thread Mateusz Loskot
On 04/10/10 14:24, Michael Hertling wrote: On 10/04/2010 10:53 AM, Mateusz Loskot wrote: On 04/10/10 07:33, J Decker wrote: CMAKE_INSTALL_CONFIG_NAME I don't know if there's a simple flag like 'project supports multiple targets' so I have an if(MSVC) set( MULTI_TARGET) endif

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-04 Thread Mateusz Loskot
On 03/10/10 18:28, Mateusz Loskot wrote: Hi, I understand what the manual [1] says about LOCATION property that it is more or less deprecated. Is that right? I'm building software (shared libraries and executables) on both, Linux and Windows (using VS 2005, 2008, 2010) and I'm trying

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-05 Thread Mateusz Loskot
On 05/10/10 02:52, Michael Hertling wrote: On 10/04/2010 11:15 PM, Mateusz Loskot wrote: On 04/10/10 14:24, Michael Hertling wrote: On 10/04/2010 10:53 AM, Mateusz Loskot wrote: On 04/10/10 07:33, J Decker wrote: CMAKE_INSTALL_CONFIG_NAME I don't know if there's a simple flag like 'project

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-05 Thread Mateusz Loskot
On 05/10/10 08:10, Michael Wild wrote: On 5. Oct, 2010, at 3:52 , Michael Hertling wrote: On 10/04/2010 11:15 PM, Mateusz Loskot wrote: On 04/10/10 14:24, Michael Hertling wrote: On 10/04/2010 10:53 AM, Mateusz Loskot wrote: On 04/10/10 07:33, J Decker wrote: CMAKE_INSTALL_CONFIG_NAME I

Re: [CMake] Disallowing in-source builds

2010-10-07 Thread Mateusz Loskot
there are similar commands/tools possible for Git, Mercurial and others. [1] http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/svn-clean?pathrev=499176 Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread Mateusz Loskot
On 08/10/10 16:42, Michael Jackson wrote: maybe SIZE_OF_VOID_POINTER of whatever that variable is in CMake? In SOCI library, I use something like this: if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 4) set(SOCI_LIBDIR lib64) else() set(SOCI_LIBDIR lib) endif() Best regards, -- Mateusz Loskot

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread Mateusz Loskot
Yes, you are right. My mistake. Thanks! Mat On 08/10/10 16:51, David Cole wrote: Either you've got that reversed, or 4 should be 8... right? lib64 should be for an 8-byte void* ... On Fri, Oct 8, 2010 at 11:48 AM, Mateusz Loskot mate...@loskot.net mailto:mate...@loskot.net wrote

Re: [CMake] Status of clang support?

2010-10-24 Thread Mateusz Loskot
On 24/10/10 20:07, Marcus D. Hanwell wrote: On Sun, Oct 24, 2010 at 2:58 PM, Michael Wild wrote: On 24. Oct, 2010, at 17:33 , Mateusz Loskot wrote: I'm trying to find out what's the status of clang support in CMake. What version of CMake is recommended to make proper use of clang 2.8

Re: [CMake] cmake-gui has very slow path completion in directories with many files

2010-10-24 Thread Mateusz Loskot
similar but shorter effect on Windows. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Status of clang support?

2010-10-24 Thread Mateusz Loskot
On 25/10/10 00:42, Sean McBride wrote: On Sun, 24 Oct 2010 16:33:01 +0100, Mateusz Loskot said: I'm trying to find out what's the status of clang support in CMake. What version of CMake is recommended to make proper use of clang 2.8+ for building a C++ software, etc. Somewhat off-topic

Re: [CMake] Status of clang support?

2010-10-24 Thread Mateusz Loskot
test always reports the gnu. if(${CMAKE_CXX_COMPILER_ID} MATCHES clang) message(STATUS clang) elseif(${CMAKE_CXX_COMPILER_ID} MATCHES GNU) message(STATUS gnu) endif() I will try 2.8.2 soon. Thanks for your help! Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member

Re: [CMake] Status of clang support?

2010-10-25 Thread Mateusz Loskot
On 25/10/10 01:38, Mateusz Loskot wrote: On 24/10/10 23:00, Ryan Pavlik wrote: My best guess would be to check for some Clang-specific defines, similar to the platform checks. Actually, it looks like in the Git repository of CMake, there is now some Clang-specific support: http://github.com

Re: [CMake] FindODBC.cmake

2010-11-01 Thread Mateusz Loskot
Hi, You may find the one in SOCI repo useful http://soci.git.sf.net/ And go to src/cmake/modules -- Mateusz Łoskot, http::/mateusz.loskot.net (Sent from my mobile) - Reply message - From: Adam J Richardson fat...@crackmonkey.us Date: Mon, Nov 1, 2010 11:48 Subject: [CMake]

Re: [CMake] FindODBC.cmake

2010-11-01 Thread Mateusz Loskot
On 01/11/10 15:31, Adam J Richardson wrote: On Mon, 01 Nov 2010 14:25:24 + Mateusz Loskot mate...@loskot.net wrote: Hi, You may find the one in SOCI repo useful http://soci.git.sf.net/ And go to src/cmake/modules Thanks Mateusz, that's great! I only needed to add odbc32 to the list

Re: [CMake] Embedding static library in shared object library

2010-11-17 Thread Mateusz Loskot
that it will work. http://www.cmake.org/pipermail/cmake/2008-March/020315.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ___ Powered by www.kitware.com Visit other Kitware

[CMake] How to submit new modules?

2010-12-23 Thread Mateusz Loskot
module I support a few interesting features, like finding GDAL in official distribution of OSGeo4W (http://trac.osgeo.org/osgeo4w/) on Windows. Perhaps a merge would be beneficial. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU

Re: [CMake] MSVC 2010

2011-01-18 Thread Mateusz Loskot
outputs. It is already there: Visual Studio 10 http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Generators Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org

Re: [CMake] MSVC 2010

2011-01-18 Thread Mateusz Loskot
= Generates Eclipse CDT 4.0 project files. Regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ___ Powered by www.kitware.com Visit other Kitware open

Re: [CMake] MSVC 2010

2011-01-18 Thread Mateusz Loskot
reported it long time ago: http://vtk.org/Bug/view.php?id=10158 Trivial, but confusing and should be fixed, IMO Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ___ Powered

Re: [CMake] MSVC 2010

2011-01-18 Thread Mateusz Loskot
On 18/01/11 18:07, Hendrik Sattler wrote: Am Dienstag 18 Januar 2011, 19:02:15 schrieb Hendrik Sattler: Am Dienstag 18 Januar 2011, 18:05:50 schrieb Mateusz Loskot: On 18/01/11 16:15, David Cole wrote: Your confusion is that you are looking for a 2010 -- there isn't one -- there is Visual

[CMake] FindThreads in quiet mode

2011-01-25 Thread Mateusz Loskot
-- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE Any workaround possible? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

[CMake] Output run-time files to single directory

2009-09-29 Thread Mateusz Loskot
, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ 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

[CMake] Why FindBoost messaging not unified?

2009-09-29 Thread Mateusz Loskot
this way, In my opinion behaviours of FindBoost is inconsistent in comparison to other standard macros. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] Output run-time files to single directory

2009-10-01 Thread Mateusz Loskot
) # - Setup the Executable output Directory - SET (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin ) Put that in the top most CMakelists.txt file Michael, Thank you for the quick solution. It is exactly what I was looking for. Best regards, -- Mateusz Loskot, http

Re: [CMake] CTest - C Unit Testing Framework

2009-10-06 Thread Mateusz Loskot
, as these are C++ test frameworks, not C, however I can truly recommend: - TUT: C++ Template Unit Test Framework - very lightweight and powerful - Boost UTF - much more featured, proper framework, but big. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

Re: [CMake] Why FindBoost messaging not unified?

2009-10-10 Thread Mateusz Loskot
Philip Lowman wrote: On Tue, Sep 29, 2009 at 6:04 PM, Mateusz Loskot mate...@loskot.net wrote: 3. The only way to get error is to explicitly use REQUIRED option FIND_PACKAGE(Boost 1.36 REQUIRED) but for FIND_PACKAGE(ZLIB) as explained in point 2. above it is not necessary to explicitly

[CMake] Targets organisation of complex project

2009-10-11 Thread Mateusz Loskot
and .cpp files (assigning list of files to global variables) and, back in the main CMakeLists.txt, stream all source files to single ADD_LIBRARY call. Is that the best option? What would be best way to configure such complex source tree that outputs single library? Best regards, -- Mateusz Loskot

Re: [CMake] Targets organisation of complex project

2009-10-12 Thread Mateusz Loskot
Tyler Roscoe wrote: On Sun, Oct 11, 2009 at 08:41:27PM +0100, Mateusz Loskot wrote: The sources are organised in large number of subdirectories and sort of logical sub-libraries, but the binary output of compilation is a single library. [snip] It looks like the best portable approach

Re: [CMake] Targets organisation of complex project

2009-10-12 Thread Mateusz Loskot
Philip Lowman wrote: On Sun, Oct 11, 2009 at 9:01 PM, Tyler Roscoe ty...@cryptio.net wrote: On Sun, Oct 11, 2009 at 08:41:27PM +0100, Mateusz Loskot wrote: The sources are organised in large number of subdirectories and sort of logical sub-libraries, but the binary output of compilation

[CMake] [OT] Re: Targets organisation of complex project

2009-10-12 Thread Mateusz Loskot
with cmake.org too. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] Fwd: Targets organisation of complex project

2009-10-12 Thread Mateusz Loskot
of complex project To: Mateusz Loskot mate...@loskot.net Hi Mateusz, On Mon, Oct 12, 2009 at 5:41 AM, Mateusz Loskot mate...@loskot.net wrote: The sources are organised in large number of subdirectories and sort of logical sub-libraries, but the binary output of compilation is a single library

Re: [CMake] Fwd: Targets organisation of complex project

2009-10-12 Thread Mateusz Loskot
the subdirectories into the base scope with set(... PARENT_SCOPE) Interesting trick. Thanks! Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] Targets organisation of complex project

2009-10-12 Thread Mateusz Loskot
Hendrik Sattler wrote: Zitat von Mateusz Loskot mate...@loskot.net: Trying to figure out how to organise targets I got an idea to configure these sub-libraries as static library targets (e.g. libgdal_cpl, libgdal_alg, libgdal_gcore, etc.) which eventually link to single shared library

Re: [CMake] Targets organisation of complex project

2009-10-12 Thread Mateusz Loskot
/CMakeLists.txt#L668 I'm wondering if resulting Makefile (for GCC toolset) would allow to handle multi-process/jobs building. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit

Re: [CMake] Targets organisation of complex project

2009-10-13 Thread Mateusz Loskot
Mateusz Loskot wrote: What would be best way to configure such complex source tree that outputs single library? I'm trying to make my decision, so I would like to summary our brainstorm. AFAIU, linking the static libraries to single shared library is still not recommended. The recommended

Re: [CMake] Targets organisation of complex project

2009-10-13 Thread Mateusz Loskot
Alexander Neundorf wrote: On Tuesday 13 October 2009, Mateusz Loskot wrote: Mateusz Loskot wrote: What would be best way to configure such complex source tree that outputs single library? I'm trying to make my decision, so I would like to summary our brainstorm. AFAIU, linking the static

Re: [CMake] Open Source Memory Checker

2009-10-23 Thread Mateusz Loskot
Detector http://dmoulding.googlepages.com/vld It is not a fully featured memory debugger, but it is a very good leak checker, at least. Best regards -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered

Re: [CMake] Open Source Memory Checker

2009-10-23 Thread Mateusz Loskot
the analysis and get result. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

[CMake] Feature request: list(UNIQUE list)

2010-01-18 Thread Mateusz Loskot
Hi, There is SORT command for lists: list(SORT list) I believe it would make sense to have UNIQUE command too: list(UNIQUE list) unless it's already available and I've not read the doc carefully, have I? Perhaps it would be trivial to implement by CMake gurus :-) Best regards, -- Mateusz

[CMake] Warning D9025 : overriding '/W3' with '/W4'

2010-01-18 Thread Mateusz Loskot
flags for NMake makefiles. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

[CMake] Feature request: list(UNIQUE list)

2010-01-18 Thread Mateusz Loskot
Hi, There is SORT command for lists: list(SORT list) I believe it would make sense to have UNIQUE command too: list(UNIQUE list) unless it's already available and I've not read the doc carefully, have I? Perhaps it would be trivial to implement by CMake gurus :-) Best regards, -- Mateusz

[CMake] Warning D9025 : overriding '/W3' with '/W4'

2010-01-18 Thread Mateusz Loskot
flags for NMake makefiles. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Re: [CMake] Feature request: list(UNIQUE list)

2010-01-20 Thread Mateusz Loskot
Tyler Roscoe wrote: On Tue, Jan 19, 2010 at 12:17:04AM +, Mateusz Loskot wrote: I believe it would make sense to have UNIQUE command too: list(UNIQUE list) unless it's already available and I've not read the doc carefully, have I? It's called REMOVE_DUPLICATES. It looks exactly

Re: [CMake] Warning D9025 : overriding '/W3' with '/W4'

2010-01-20 Thread Mateusz Loskot
Philip Lowman wrote: On Mon, Jan 18, 2010 at 7:17 PM, Mateusz Loskot mate...@loskot.net wrote: In CMakeLists.txt I have something like this: if(MSVC) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /W4) endif() I configure my build using command prompt of Visual Studio 2005 (8.0): D:\dev\geos

[CMake] Checking function or symbol in namespace

2010-01-20 Thread Mateusz Loskot
to try_compile based tests? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Mateusz Loskot
Michael Wild wrote: On 21. Jan, 2010, at 24:55 , Mateusz Loskot wrote: Hi, I'm trying to perform the following checks: check_function_exists(std::pow HAVE_POW) or check_symbol_exists(std::pow cmath HAVE_POW) but it looks that both macros have troubles with resolving std:: namespace

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Mateusz Loskot
Michael Wild wrote: On 21. Jan, 2010, at 16:44 , Mateusz Loskot wrote: Michael Wild wrote: On 21. Jan, 2010, at 24:55 , Mateusz Loskot wrote: Hi, I'm trying to perform the following checks: check_function_exists(std::pow HAVE_POW) or check_symbol_exists(std::pow cmath HAVE_POW) but it looks

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Mateusz Loskot
Eric Noulard wrote: 2010/1/21 Mateusz Loskot mate...@loskot.net: The fact check_function_exists checks C function but not C++ free function is a bit confusing. That's true. AFAIU, CMake is dedicated to build C++ source code, However that's look false to me :-( Perhaps I should be more

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Mateusz Loskot
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 at: http

Re: [CMake] Checking function or symbol in namespace

2010-01-23 Thread Mateusz Loskot
Jed Brown wrote: On Thu, 21 Jan 2010 15:44:43 +, Mateusz Loskot mate...@loskot.net wrote: Why it can not work, actually? C++ does name mangling so it's difficult to determine what the symbol actually is (you have to know about various classes and templates that may be in scope

Re: [CMake] Tips to create a UseXYZ.cmake

2010-01-28 Thread Mateusz Loskot
, numpy, ... What's the difference between Use*.cmake and Find*.cmake? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Order of enable_testing and add_subdirectory

2010-02-01 Thread Mateusz Loskot
Marcel Loose wrote: On Sun, 2010-01-31 at 01:20 +, Mateusz Loskot wrote: Hi, I have just learned by trial and error that enable_testing() macro should be called before a subdirector(y|ies) with tests are added, otherwise tests are not configured. Here is a bit of CMakeLists.txt in root

Re: [CMake] Tutorial from Mastering CMake now online!

2010-02-03 Thread Mateusz Loskot
Bill Hoffman wrote: For more information see my blog entry: http://www.kitware.com/blog/home/post/7 Bill, Great! By the way of tutorial, SO'ers have been asking :-) http://stackoverflow.com/questions/2186110/cmake-tutorial/ Best regards, -- Mateusz Loskot, http://mateusz.loskot.net

[CMake] Manual version vs CMake version

2010-02-05 Thread Mateusz Loskot
Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] Manual version vs CMake version

2010-02-05 Thread Mateusz Loskot
) user who preferes pretty website to read doc than dark console :-) Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Manual version vs CMake version

2010-02-07 Thread Mateusz Loskot
Philip Lowman wrote: On Fri, Feb 5, 2010 at 4:31 PM, Mateusz Loskot mate...@loskot.net wrote: Bill Hoffman wrote: Eric Noulard wrote: That's true, may be the site could indicate that the doc is for latest 2.6.x serie. However the most trustfull way to check the doc of your current cmake

Re: [CMake] CMake 2.8.1 RC 1 is ready to try

2010-02-08 Thread Mateusz Loskot
Bill Hoffman wrote: - Add NMake Makefiles JOM generator Is this the jom speedy thing from Trolls? http://labs.trolltech.com/blogs/2009/03/27/speeding-up-visual-c-qt-builds/ Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ___ Powered

[CMake] Canonical use of FindPackageHandleStandardArgs

2010-03-03 Thread Mateusz Loskot
/workshop/blob/master/cmake/modules/ Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

Re: [CMake] windows link error

2010-03-04 Thread Mateusz Loskot
, the CMake configuration assumes that Windows build is done using MinGW. 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

[CMake] RecipeAddUninstallTarget fix

2010-03-05 Thread Mateusz Loskot
/home/mloskot/usr/include/geos/platform.h -- Uninstalling /home/mloskot/usr/bin/geos-config Am I correct? [1] http://www.cmake.org/Wiki/RecipeAddUninstallTarget -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org

Re: [CMake] Best way to Generate String

2010-03-06 Thread Mateusz Loskot
case, you specify one-character alphabet and it is still a random string of values from one element interval. I don't see anything strange here myself. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org

Re: [CMake] Canonical use of FindPackageHandleStandardArgs

2010-03-06 Thread Mateusz Loskot
! Absolutely, it helps! I'm glad getting my scripts reviewed. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] Problem with CHECK_FUNCTION_EXISTS and strcasecmp

2010-03-13 Thread Mateusz Loskot
because Visual C++ does not define strcasecmp. This function is defined by POSIX (not even C99). Visual C++ does not implement POSIX. For Visual C++, you should look for equivalents, it is: _stricmp or _strnicmp Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http

Re: [CMake] cmake and boost

2010-03-19 Thread Mateusz Loskot
made by Boost to officially include it or when it would happen. 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] How to configure target or command to preprocess C file?

2012-07-08 Thread Mateusz Loskot
provide some kind of abstraction for C-preprocessing? I scanned the archives, but I only found preprocessing of fortran files or solutions based on make capabilities (make myfile.i). So, it's not quite what I'm looking for. Could anyone help me with this? Best regards, -- Mateusz Loskot, http

Re: [CMake] How to configure target or command to preprocess C file?

2012-07-09 Thread Mateusz Loskot
On 8 July 2012 13:34, Mateusz Loskot mate...@loskot.net wrote: Hi, I'm porting build configuration based on GNU Autotools to CMake and I have to deal with C preprocessing to generate a file. The input for preprocessor is SQL file with C preprocessor directives used, like #include

Re: [CMake] How to pass a flag to be used by cmake?

2012-07-09 Thread Mateusz Loskot
CFLAGS. Is there a variable I can define when I run cmake, to pass the -m32 flag to gcc? The list archives is a mine for basic problems solutions: http://www.cmake.org/pipermail/cmake/2009-April/028853.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com

Re: [CMake] Problems with MSVC 2010 generator

2012-07-09 Thread Mateusz Loskot
), 16.2 Source file inclusion, clauses 2 and 3 and notice the implementation-defined specified for both!. i.e. they always work as . This as is implementation-defined. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] How to configure target or command to preprocess C file?

2012-07-11 Thread Mateusz Loskot
SQL files VERBATIM ) Hi Petr, Your solution is perfect fit for my problem. Thank you for the great explanation! 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

[CMake] Order of COMMENT display for custom command and target

2012-07-11 Thread Mateusz Loskot
, -- 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 at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe

[CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-11 Thread Mateusz Loskot
functionality of those two modules is kept in sync. The Slicer's version has been referred several times here anyway. 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

Re: [CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-11 Thread Mateusz Loskot
://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FindGit.cmake;h=f89d1afa3713629b240803f9cb868dfe070771d5;hb=HEAD [2] https://github.com/Slicer/Slicer/blob/master/CMake/FindGit.cmake Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other Kitware open

Re: [CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-12 Thread Mateusz Loskot
On 12 July 2012 07:52, Rolf Eike Beer e...@sf-mail.de wrote: Mateusz Loskot wrote: On 12 July 2012 00:24, Aashish Chaudhary aashish.chaudh...@kitware.com wrote: I don't have both files in front of me. Whats the difference between the one in the slicer and once in the CMake? CMake's

Re: [CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-12 Thread Mateusz Loskot
it. 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 at: http://www.cmake.org/Wiki/CMake_FAQ Follow

Re: [CMake] add additional lib

2012-07-12 Thread Mateusz Loskot
into the variable VTK_LIBRARIES or TARGET_LINK_LIBRARIES? http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:target_link_libraries [item1 [item2 [...]]] Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] add additional lib

2012-07-12 Thread Mateusz Loskot
it's relevant to console vs window-based app, or what you mean as make it produce. p.s. Please, be careful when you reply to post to cmake list, but not to my address exclusively. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Visit other Kitware open

Re: [CMake] Writing a custom Find*.cmake file for Pantheios

2012-07-17 Thread Mateusz Loskot
/CMake:Module_Maintainers#Compatibility [3] http://www.cmake.org/pipermail/cmake/2010-March/035596.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 messages

Re: [CMake] Link errors on Wiki/CMake

2012-07-18 Thread Mateusz Loskot
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 at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link

Re: [CMake] Link errors on Wiki/CMake

2012-07-19 Thread Mateusz Loskot
On 19 July 2012 14:45, Bill Hoffman bill.hoff...@kitware.com wrote: On 7/18/2012 6:35 PM, Mateusz Loskot wrote: On 17 July 2012 14:34, Micha Renner micha.ren...@t-online.de wrote: The following links of www.cmake.org/Wiki/CMake generate 404 Errors [...] BTW, I try to maintain a short

Re: [CMake] Creating executable - including an external *.o

2012-07-22 Thread Mateusz Loskot
an expression of the form $TARGET_OBJECTS:objlib as a source http://cmake.org/cmake/help/v2.8.8/cmake.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] Reg :: Boost Build

2012-09-07 Thread Mateusz Loskot
, -- 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 at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-21 Thread Mateusz Loskot
, -- 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 at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe

[CMake] COPYING-CMAKE-SCRIPTS file removed?

2012-10-12 Thread Mateusz Loskot
Hi, Has the COPYING-CMAKE-SCRIPTS file been removed from the CMake sources? 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

Re: [CMake] How to get Visual Studio to use more than a single core for compiling

2012-11-27 Thread Mateusz Loskot
/028669.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 messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] How to get Visual Studio to use more than a single core for compiling

2012-11-27 Thread Mateusz Loskot
On 27 November 2012 14:47, John Drescher dresche...@gmail.com wrote: On Tue, Nov 27, 2012 at 9:41 AM, Mateusz Loskot mate...@loskot.net wrote: On 27 November 2012 14:23, John Drescher dresche...@gmail.com wrote: On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson mike.jack

[CMake] Library locations returned by find_package() and find_library()

2012-12-06 Thread Mateusz Loskot
() and find_library()? A user of my library asked why XXX_INCLUDE_DIR takes directory location, but XXX_LIBRARIES takes absolute path to library file(s). I've found it difficult to explain the rationale really. I could not find any back up in the manual. Best regards, -- Mateusz Loskot, http

Re: [CMake] Library locations returned by find_package() and find_library()

2012-12-06 Thread Mateusz Loskot
On 6 December 2012 18:45, Andreas Pakulat ap...@gmx.de wrote: On Thu, Dec 6, 2012 at 5:13 PM, Mateusz Loskot mate...@loskot.net wrote: The CMake 2.8.10 manual includes the following statement in the paragraph about link_directories() command: Library locations returned by find_package

  1   2   3   >