[CMake] find_library() and mark_as_advanced()

2013-06-18 Thread Paul Harris
Hi there, I have modified FindZLIB.cmake and FindPNG.cmake, because I want to specify a separate release and debug library for MSVC to link to. The problem is, my libraries are not in any standard place. I want to use cmake-gui, run cmake and punch in exactly where these libraries live. So I hav

Re: [CMake] Link flags not applied to static library

2012-12-01 Thread Paul Harris
kitware.com/Bug/view.php?id=10094, but so far, hasn't > been fixed. > > 2012/11/28 Paul Harris : > > Hi, > > > > I set this: > > > >set (STATIC_LIBRARY_FLAGS_RELWITHDEBINFO > > "${STATIC_LIBRARY_FLAGS_RELWITHDEBINFO} /LTCG") > > >

Re: [CMake] Link flags not applied to static library

2012-11-28 Thread Paul Harris
Hi, I set this: set (STATIC_LIBRARY_FLAGS_RELWITHDEBINFO "${STATIC_LIBRARY_FLAGS_RELWITHDEBINFO} /LTCG") and it didn't seem to work. MSVC still has no LTCG flag set for any of my static libraries. does this feature work? cheers, Paul On 23 June 2011 01:02, Ben Medina wrote: > So that th

[CMake] Valgrind fails but ctest doesn't notice

2012-06-01 Thread Paul Harris
Hi, When I run valgrind on a test directly, I see this: $ valgrind test_array ==30643== Memcheck, a memory error detector ==30643== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==30643== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==30643== Comm

[CMake] symstore

2011-05-22 Thread Paul Harris
Hi, http://www.stackhash.com/blog/post/Setting-up-a-Symbol-Server.aspx I read this blog and thought it would be great to have cmake generate a "SYMSTORE" project in addition to the "INSTALL" project, which would add the pdb files to the symstore area. I googled and haven't heard anything about i

Re: [CMake] building tests

2010-07-13 Thread Paul Harris
On 11 July 2010 20:36, Michael Hertling wrote: > On 07/10/2010 06:54 PM, Paul Harris wrote: > > On 9 July 2010 22:39, Michael Wild wrote: > > > >> > >> On 9. Jul, 2010, at 15:48 , Michael Hertling wrote: > >> > >>> On 07/08/2010 09:47 AM, P

Re: [CMake] building tests

2010-07-10 Thread Paul Harris
On 9 July 2010 22:39, Michael Wild wrote: > > On 9. Jul, 2010, at 15:48 , Michael Hertling wrote: > > > On 07/08/2010 09:47 AM, Paul Harris wrote: > >> On 8 July 2010 15:31, Michael Wild wrote: > >> > >>> > >>> On 8. Jul, 2010, at 7:

Re: [CMake] building tests

2010-07-08 Thread Paul Harris
On 8 July 2010 15:31, Michael Wild wrote: > > On 8. Jul, 2010, at 7:25 , Paul Harris wrote: > > > On 8 July 2010 12:56, Michael Wild wrote: > > > >> > >> On 8. Jul, 2010, at 4:40 , Paul Harris wrote: > >> > >>> On 7 July 2010 23:05,

Re: [CMake] building tests

2010-07-07 Thread Paul Harris
On 8 July 2010 12:56, Michael Wild wrote: > > On 8. Jul, 2010, at 4:40 , Paul Harris wrote: > > > On 7 July 2010 23:05, Michael Wild wrote: > > > >> > >> On 7. Jul, 2010, at 16:01 , Paul Harris wrote: > >> > >>> Hi all, > >>&

Re: [CMake] building tests

2010-07-07 Thread Paul Harris
On 7 July 2010 23:38, Marcel Loose wrote: > On Wed, 2010-07-07 at 17:05 +0200, Michael Wild wrote: > > On 7. Jul, 2010, at 16:01 , Paul Harris wrote: > > > > > Hi all, > > > > > > I have looked and can't find the answer, so I turn to the

Re: [CMake] building tests

2010-07-07 Thread Paul Harris
On 7 July 2010 23:05, Michael Wild wrote: > > On 7. Jul, 2010, at 16:01 , Paul Harris wrote: > > > Hi all, > > > > I have looked and can't find the answer, so I turn to the list. > > > > I have a CMakeLists.txt and a subdirectory called utils,

[CMake] building tests

2010-07-07 Thread Paul Harris
Hi all, I have looked and can't find the answer, so I turn to the list. I have a CMakeLists.txt and a subdirectory called utils, which also has its own CMakeLists.txt In the parent CML.txt, I have something like: ENABLE_TESTING() add_subdirectory(utils) In my utils CML.txt, I have ADD_EXECUTA

Re: [CMake] link_libraries vs target_link_libraries

2008-11-10 Thread Paul Harris
Hi, my 2c... 2008/11/10 Andreas Pakulat <[EMAIL PROTECTED]> On 10.11.08 12:01:13, Fernando Cacciola wrote: > The CGAL library (www.cgal.org) uses cmake as build system. Thus, our > users do: > > find_package(CGAL REQUIRED) > include( ${CGAL_USE_FILE} ) > > > There are projects that have headers

Re: [CMake] CMake 2.6.3 RC 1

2008-10-29 Thread Paul Harris
2.6.3-RC-1 is good, the problems I was having with boost (in linux) seem to have been resolved. I'll check it under windows sometime later. Question, is there a reason why there is no FindMySQL.cmake included yet? I have found 2 options, one that can be grabbed from: http://www.wzdftpd.net/trac

Re: [CMake] boost on windows

2008-10-23 Thread Paul Harris
http://public.kitware.com/Bug/view.php?id=7783 2008/10/23 Emre Turkay <[EMAIL PROTECTED]> > Hi folks, > > I'm trying to compile boost with cmake and MS Visual Studio 2003 on > Windows. > However, when I run the cmake I get: > > CMake Error at C:/Program Files/CMake > 2.6/share/cmake-2.6/Modules/F

Re: [CMake] Add external static libraries / ar-archives to a build.

2008-10-21 Thread Paul Harris
snip >>> cmake -DBLAS=/path/to/lib/libgoto.a PATH_TO_SOURCE > >>> > >>> If I link the lib manually I enter > >>> gcc -o output myfile.c /path/to/lib/libgoto.a > >> > >>FIND_PACKAGE(BLAS REQUIRED) > >> > >>ADD_EXECUTABLE(output myfile.c) > >>TARGET_LINK_LIBRARIES(output ${BLAS_LIBRARIES}) > > snip

[CMake] qt4_create_translation and add_dependencies

2008-10-14 Thread Paul Harris
Hi, I am trying to get cmake to execute the translations command without success... Originally I just had an install(FILES etc) command (see below) but make would complain: > make ... build build build... Install the project... -- Install configuration: "Debug" CMake Error at cmake_install.cmake

[CMake] adding to variables within subdirectories

2008-10-13 Thread Paul Harris
Hi, In the root CMakeLists.txt, I have a variable - a list of files... set( TRANSFILES ) ? how do i create an empty list ? then i add a subdirectory add_subdirectory(whatever) and in whatever/CMakeLists.txt, i want to add some files... file (GLOB CPPFILES *.cpp) set (TRANSFILES ${TRANSFILE