[CMake] Check header file woos

2014-02-18 Thread Oliver
Then I tried to be explicit about it set(CMAKE_REQUIRED_INCLUDES /usr/include/lustre) Still no avail. If I check any other header file in that directory, say "sys/io.h", it will work as expected. I am puzzled ... anything I missed? Thanks -- Oliver -- Powered by www.kitware.com

[CMake] can't locate library with find_library

2017-03-22 Thread Oliver
n still control logging through env settings") message(STATUS "GLOG_logtostderr=1 ./your_application") else() message(STATUS "gflags is present, you can controll logging through command line:") message(STATUS "./your_application --logtostderr=1") e

Re: [CMake] can't locate library with find_library

2017-03-22 Thread Oliver
oh, no, silly me, I didn't. that fixed the problem. thx Feiyi On Wed, Mar 22, 2017 at 10:08 AM, Nils Gladitz wrote: > On 22.03.2017 14:52, Oliver wrote: > >> hi all, >> >> I am running cmake 3 using EPEL install on RHEL 7. I also have installed >> "gfla

[CMake] How to USE_FOLDERS correctly?

2011-03-18 Thread Oliver Buchtala
rs or warnings, but the generated solution does not contain anything like solution folders. What could be my problem? Bye, Oliver ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Re: [CMake] How to USE_FOLDERS correctly?

2011-03-18 Thread Oliver Buchtala
Am 18.03.2011 18:31, schrieb Robert Bielik: > Hi Oliver, > > I use this feature and only thing that differs for me is that I do: > > SET_TARGET_PROPERTIES( > myCore > PROPERTIES > FOLDER "Core" > ) > > Hope that helps, > /Rob > ___

Re: [CMake] How to USE_FOLDERS correctly?

2011-03-18 Thread Oliver Buchtala
Am 18.03.2011 18:51, schrieb David Cole: > On Fri, Mar 18, 2011 at 1:15 PM, Oliver Buchtala > wrote: >> Hello, >> >> I have problems using the project folder feature described in the >> documentation for CMake 2.8.4 >> (http://www.cmake.org/cmake/help/cmake-2

[CMake] Overriding Win-Registry search in UseJNI.cmake

2011-04-05 Thread Oliver Buchtala
unfortunately UseJNI prefers the Windows-Registry entries above all other search paths. Did I miss something? Shall I file an issue? Oliver ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

Re: [CMake] Overriding Win-Registry search in UseJNI.cmake

2011-04-05 Thread Oliver Buchtala
Am 05.04.2011 13:12, schrieb Oliver Buchtala: Hello, I am working with CMake 2.8 and using UseJNI.cmake I have a JDK installed locally (registered in Win-Registry) but want to configure a project to use a different JDK lying on my disk. Looking at UseJNI.cmake I find that the environment

Re: [CMake] Overriding Win-Registry search in UseJNI.cmake

2011-04-05 Thread Oliver Buchtala
Am 05.04.2011 16:33, schrieb David Cole: On Tue, Apr 5, 2011 at 7:16 AM, Oliver Buchtala mailto:oliver.bucht...@jku.at>> wrote: Am 05.04.2011 13:12, schrieb Oliver Buchtala: Hello, I am working with CMake 2.8 and using UseJNI.cmake I have a JDK installed l

Re: [CMake] Overriding Win-Registry search in UseJNI.cmake

2011-04-05 Thread Oliver Buchtala
Am 05.04.2011 17:11, schrieb Oliver Buchtala: Am 05.04.2011 16:33, schrieb David Cole: On Tue, Apr 5, 2011 at 7:16 AM, Oliver Buchtala mailto:oliver.bucht...@jku.at>> wrote: Am 05.04.2011 13:12, schrieb Oliver Buchtala: Hello, I am working with CMake 2.8 and

[CMake] Post-Build commands on custom targets are always executed?

2011-04-15 Thread Oliver Buchtala
Hi, I observe that a custom command attached to a custom target as POST-BUILD is launched on every build. Is that true? or is it a misconfiguration on my side? Bye, Oliver ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Post-Build commands on custom targets are always executed?

2011-04-15 Thread Oliver Buchtala
Am 15.04.2011 23:48, schrieb Michael Hertling: > On 04/15/2011 11:22 PM, Oliver Buchtala wrote: >> Hi, >> >> I observe that a custom command attached to a custom target as >> POST-BUILD is launched on every build. >> Is that true? or is it a misconfiguration on

Re: [CMake] Post-Build commands on custom targets are always executed?

2011-04-18 Thread Oliver Buchtala
Am 18.04.2011 06:58, schrieb Michael Hertling: > On 04/16/2011 12:05 AM, Oliver Buchtala wrote: >> Am 15.04.2011 23:48, schrieb Michael Hertling: >>> On 04/15/2011 11:22 PM, Oliver Buchtala wrote: >>>> Hi, >>>> >>>> I observe that a custom com

Re: [CMake] Post-Build commands on custom targets are always executed?

2011-04-19 Thread Oliver Buchtala
Am 19.04.2011 16:10, schrieb David Cole: > On Mon, Apr 18, 2011 at 11:22 PM, Michael Hertling > mailto:mhertl...@online.de>> wrote: > > On 04/19/2011 02:17 AM, Oliver Buchtala wrote: > > Am 18.04.2011 06:58, schrieb Michael Hertling: > >> On 04/16/201

[CMake] Single-shot compilation

2010-02-16 Thread Oliver Smith
On systems that support it, I'm wanting to do the equivalent of: $(CC) -pipe source1.cpp source2.cpp source3.cpp -fwhole-program I can't figure out how to tell CMake to pass multiple sources to the compiler at once. (Using versions 2.6 and 2.8)

[CMake] Adding pre-compiled header support easily (add_generated_source)

2010-02-17 Thread Oliver Smith
add_target(server ${Project_SOURCE_DIR}/src/serverMain.cpp ${Project_SOURCE_DIR}/src/serverEngine.cpp ${Project_SOURCE_DIR}/src/common-depends.cpp ${Project_SOURCE_DIR}/src/serverDatabase.cpp ) set_property(TARGET server PROPERTY COMPILE_DEFINITIONS PROJ_SERVER PROJ_D

[CMake] Adding a generated source to all multiple targets

2010-02-23 Thread Oliver Smith
on for adding a precompiled header to each target (for my limited subset of platforms). - Oliver ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep m

[CMake] This has to have been asked before...

2010-03-06 Thread Oliver Smith
led header CMake include, but that just confused the bejeezus out of me, not helped by the fact that it didn't work :) - Oliver ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensour

Re: [CMake] This has to have been asked before...

2010-03-06 Thread Oliver Smith
On 3/6/2010 6:39 PM, Oliver Smith wrote: I want to add a target (a gcc precompiled header) as a dependency for every target so it'll get compiled with the flags for that particular target, including altering the resulting file name. I should say: /automatically/ add... I don't want t

Re: [CMake] This has to have been asked before...

2010-03-08 Thread Oliver Smith
add_custom_command(${target} PRE_BUILD COMMAND "ln -s ${pchname} ${PrecompiledHeader}" "g++ ${defines} ${flags} -o ${pchname}.gch ${pchname}") ) endforeach () Marked in bold is the part I'm struggling with. - Oliver _

[CMake] ICC under Linux

2010-03-23 Thread Oliver Smith
When you tell CMake under Linux to use ICC, there's no automatic detection of the custom archiver and linker that ICC requires. The following lines fix that, but would it be possible to add them to the stock CMake files someplace so that using ICC becomes slightly more transparent? #

[CMake] One folder to rule them all...

2010-03-24 Thread Oliver Smith
I would like the following [pseudo] CMake package to create a "Solution.sln" in ${CMAKE_BINARY_DIR} and put the .vcproj files in ${CMAKE_BINARY_DIR}/${VCPROJ_DIR} project (Solution) add_library(library1 foo1.cpp) # ... add_library(library9 foo9.cpp) add_executable(target1 ta

Re: [CMake] Is there really any cmake support?

2010-03-28 Thread Oliver Smith
ove the default auto-connection behavior to "sort of make it go away". Thus far, I've gotten better support out of the CMake developers than I have from several commercial software providers, including Intel. - Oliver ___ Powered by www.ki

[CMake] Revision header

2012-01-21 Thread Oliver Smith
... it will have to relink the executables the second time because of an pointless upversion :) - Oliver -- 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:

[CMake] Making a variable a dependency...

2012-02-04 Thread Oliver Smith
My CMakeLists uses the Subversion repository information in a couple of places (it configures a file revision.h and it uses it for the CPack package name). The problem is that this variable is cached and retained until the cache is rebuilt, instead of being calculated or evaluated per make. So

[CMake] External projects and make clean

2012-02-17 Thread Oliver Boesche
the external projects again (take some time with BOOST). Is there a solution to prevent an external project from cleaning when I call 'make clean'? Kind regards Oliver Boesche -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/

Re: [CMake] External projects and make clean

2012-02-21 Thread Oliver Boesche
Hi, thanks. Its a tricky solution ;) I think this behavior as a flag for ExternalProject_Add could be interesting for some people. Regards Oliver -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

[CMake] Is there a cookbook?

2012-02-23 Thread Oliver Smith
o no end. Is there not a cmake cookbook or recipie book someplace? I really don't feel like figuring out, yet again, how to tell cmake "for every .xml file in ${folder} run ${command} to produce ${output}.h"... :) - Oliver -- Powered by www.kitware.com Visit other Ki

Re: [CMake] Is there a cookbook?

2012-02-24 Thread Oliver Smith
living example. I appreciate your time looking for a solution for my issue, though :) - Oliver -- 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

[CMake] Partial 3rd-party library management

2012-02-26 Thread Oliver Smith
les? The simplest and therefore easiest complete example I have is: 8x --- snip --- x8 add_library(ircclient SHARED libircclient/src/libircclient.c) set_property(TARGET ircclient PROPERTY COMPILE_DEFINITIONS IN_BUILDING_LIBIRC) link_directories( ${Project_BINARY_DIR}/ircclient ) 8x --- snip --

[CMake] Problem with precompiled header attempts

2012-02-26 Thread Oliver Smith
it's horribly platform dependent. Surely there's a better way say "build it the same way you'd build anything else in this directory" - Oliver -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

[CMake] Couple of library/link questions

2012-03-20 Thread Oliver Smith
${CoreSrcFiles} ${ExtraSrcFiles}) but that's clumsy :) - Oliver -- 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] Need to prepend compiler with static analysis tool

2012-05-23 Thread Oliver Smith
my tree to a "clean state"? Other than running "make clean" which I did do. rm -rf CMakeCache* CMakeFiles* - Oliver -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messag

[CMake] [PATCH] New FindIconv module

2012-08-28 Thread Steven Oliver
Attached is a patch that will find the iconv library by testing to make sure it exists by compiling a sample C file. Thank you, Steven N. Oliver 0001-Add-new-FindIconv-module.patch Description: Binary data -- Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] statically linked executables

2007-12-03 Thread Oliver Dole
2007/11/27, Daniel Rueckert <[EMAIL PROTECTED]>: > Hi, > > I am trying to build some statically linked executables on a linux > box. I have added the "-static" option to the linker flags and specified > static link libraries but for some reason cmake still adds the option > "-Wl,-Bdynamic" flag to

Re: [CMake] statically linked executables

2007-12-03 Thread Oliver Dole
2007/12/3, Bill Hoffman <[EMAIL PROTECTED]>: > Oliver Dole wrote: > > 2007/11/27, Daniel Rueckert <[EMAIL PROTECTED]>: > >> Hi, > >> > >> I am trying to build some statically linked executables on a linux > >> box. I have added the "

Re: [CMake] statically linked executables

2007-12-03 Thread Oliver Dole
2007/12/3, Hendrik Sattler <[EMAIL PROTECTED]>: > Quoting Oliver Dole <[EMAIL PROTECTED]>: > > The problem is that I use pkg-config (and stuff like that) to retrieve > > my libraries. So CMake does not know wether it is static or shared > > libraries to use. None

Re: [CMake] Appending paths to a variable

2008-02-20 Thread Oliver Dole
Hello, On 2/20/08, Robert Bielik <[EMAIL PROTECTED]> wrote: > I have a structure where I include all subdirs via FILE(GLOB.. and FOREACH > and within each subdir CMakeLists.txt I want to add a path to be used with > INCLUDE_DIRECTORIES in the main CMakeLists.txt > > I tried SET(INCL_DIRS ${INCL_DI

Re: [CMake] Pass variables to sub directory CMakeLists.txt

2008-02-21 Thread Oliver Dole
Hello, On 2/21/08, Vandenbroucke Sander <[EMAIL PROTECTED]> wrote: > Hi, > > I want to pass a variable to CMakeLists.txt's in sub directories: > > Top directory CMakeLists.txt: > set( VAR1 "" ) > add_subdirectory (subdir1) > add_subdirectory (subdir2) > > Each subdir CMakeLists.txt: > > ...

Re: [CMake] How to build a library divided in many directories ?

2008-02-25 Thread Oliver Dole
Hello, On 2/25/08, packadal <[EMAIL PROTECTED]> wrote: > Hi, I searched for an answer to this question in vain, so I'm asking here. > > I am trying to build a library wich is spead among many subdirectories using > CMake, but I can't seem to do it "the Right Way". > > Looks like the right way to d

[CMake] link problem with cmake

2008-10-05 Thread Oliver Dole
Hello, I have a link problem with cmake on Linux. I work on owb, a webkit based browser, which uses cmake as build system. Here is how my cmake system works: - build balwtf.a, kjs.a and webcore.a - build libwebkit.so which requires balwtf.a, kjs.a and webcore.a - then I build owb. >From my point o

Re: [CMake] link problem with cmake

2008-10-06 Thread Oliver Dole
On 10/5/08, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > On Sunday 05 October 2008, Oliver Dole wrote: > > Hello, > > > > I have a link problem with cmake on Linux. > > I work on owb, a webkit based browser, which uses cmake as build > > sy

[CMake] FIND_LIBRARY not using CMAKE_FIND_LIBRARY_SUFFIXES

2008-12-03 Thread Oliver Zheng
: FIND_LIBRARY(NAMES test.a HINTS /usr/local/lib) Is this a known bug (that's only prevalent on Cygwin)? To solve my problem with FindBoost, I had to manually add in the ".a" into the FIND_LIBRARY command. Thanks, Oliver ___ CMake mai

[CMake] Cmake Solaris 10

2009-05-07 Thread Oliver Trebbe
Hello, i cant find any workaround for compiling cmake under solaris 10. I just saw threads or mails to the list regarding my problem compiling cmake on solaris 10 where there is the problem with the static linked library. (libcmsys.a) I´d be open for any solution. Regards Oliver -- Oliver

[CMake] what to download for Linux??

2007-06-04 Thread Oliver Kullmann
on the web page anything is said about which package to use when (just "follow the instructions", but there are none). I couldn't make good use of the search functions for the e-mail lists neither (always end up with some google search). Any hint would be appreciated. Thanks O

[CMake] Is CMake powerful enough?

2007-06-07 Thread Oliver Kullmann
ibility for subtle bugs.) Finally, it somehow seems to us that the conception of cmake is not really that of a powerful extension of make, but more of a convenient "user-interface", with the typical trade-off: What the user-interface does, it does convenient and well, but what it not does

Re: [CMake] Is CMake powerful enough?

2007-06-08 Thread Oliver Kullmann
ot;install tree", but a more complex system for all the different types of files) pays off: I can easily remove for example the dependency-files for one submodule or for a sub-sub-module, or for the whole library, or I can inspect them --- and actually from time to time it's needed. Bu

[CMake] Module to detect SDL_GFX

2007-08-14 Thread Oliver Dole
Hello, You will find as an attachment a dummy cmake module which automates SDL_GFX detection as it is already done for SDL_ttf, SDL_image... This module is in fact a copy and paste with of course modifications of SDL_image module done by Eric Wing. Note that I have only tested it on Linux... So if

[CMake] surround add_executable with flags

2016-08-24 Thread oliver . zabel
group issue is the last thing, i need to get around it. Thanks for help! Best regards, Oliver-- 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

[CMake] surround executable with flags

2016-08-24 Thread oliver . zabel
group issue is the last thing, i need to get around it. Thanks for help! Best regards, Oliver-- 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

[CMake] Predownload

2017-04-17 Thread Zabel, Oliver
dynamicly choose which toolchain i want to have – would be great for Compiler / unit Tests as well. Perhaps someone has a better idea to do this or even i using such a System and give me a hint? Thanks a lot! Best regards, Oliver -- Powered by www.kitware.com Please keep messages on

Re: [CMake] Predownload

2017-04-17 Thread Zabel, Oliver
s" that handles this stuff that i'm not aware of?    Gesendet: Dienstag, 18. April 2017 um 00:23 Uhr Von: "Craig Scott" An: "Florent Castelli" Cc: CMake , "Zabel, Oliver" Betreff: Re: [CMake] Predownload The top level build doesn't actually need

[CMake] Toolchain with non-gcc argument format

2017-11-08 Thread oliver . zabel
uot; instaed of "-I"? Thanks for your help! Best regards, oliver-- 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

[CMake] Feature req: Project-specified mandatory variables

2017-11-11 Thread Oliver Smith
Consider the following: PROJECT(Mandatory) SET(USING_SHAPE "" CACHE STRING "[Required] Shape config: Round or Square") SET_PROPERTY(CACHE USING_SHAPE PROPERTY STRINGS Round Square) IF (NOT USING_SHAPE) MESSAGE(FATAL_ERROR "'USING_SHAPE' variable is required but was not set.

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread oliver . zabel
Hi, No one any idea? Thanks! -- 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 Support: htt

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread oliver . zabel
Hi, Thank you. There is unfortunately not the right toolchain there - according my question I do have my toolchain Running - but with a custom command and I would like to know whether there is a better way. Cheers! -- Powered by www.kitware.com Please keep messages on-topic and check the CMa

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread oliver . zabel
Hi, Sorry - I don’t get the hint :) thanks, I will look into it! Cheers! Oliver -- 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

[CMake] Antwort: Re: Toolchain with non-gcc argument format

2017-11-15 Thread oliver . zabel
7 13:42 Betreff:Re: [CMake] Toolchain with non-gcc argument format Gesendet von: "CMake" Hi, Sorry - I don’t get the hint :) thanks, I will look into it! Cheers! Oliver -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.

[CMake] Antwort: Re:Antwort: Re: Toolchain with non-gcc argument format

2017-11-15 Thread oliver . zabel
> Betreff: > Re: [CMake] > Toolchain with non-gcc argument format > > Gesendet von: > "CMake" > > > Hi, > > Sorry - I don’t get the hint :) thanks, I will look into it! > > Cheers! > > Oliver > > -- > > Powered by www.kitwar

[CMake] Antwort: Antwort: Re:Antwort: Re: Toolchain with non-gcc argument format

2017-11-16 Thread oliver . zabel
karev" > > > Kopie: > CMake users > > Datum: > 14.11.2017 13:42 > > Betreff: > Re: [CMake] > Toolchain with non-gcc argument format > > Gesendet von: > "CMake" > > > Hi, > > Sorry - I don’t get the hint :) thanks, I will look in

[CMake] Antwort: Re: Re: Antwort: Antwort: Re:Antwort: Re: Toolchain with non-gcc argument format

2017-11-22 Thread oliver . zabel
Hi Eric, thanks a lot for your help! i'm going to try it on the dev mailing list. Cheers, Oliver Von:Eric Noulard An: oliver.za...@egoproducts.com Kopie: CMake Mailinglist Datum: 22.11.2017 09:49 Betreff:Re: Re: [CMake] Antwort: Antwort: Re:Antwort: Re: Toolchain

[CMake] find_library fails when cross compiling

2018-03-26 Thread Oliver Dain
d linked (and I know its the right libs because things also run). Is this a bug or is there something I don't understand about NO_DEFAULT_PATH? Thanks, Oliver PS: I know the hard coded full path names are odd - the CMakeLists.txt files are actually generated -- it's a long story. -- P

Re: [CMake] find_library fails when cross compiling

2018-03-28 Thread Oliver Dain
In case anyone else hits this, I figured it out. The issue was that our toolchain file specified "CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY" which meant it was ignoring our PATH list. Changing it to "CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH" solved the issue. On Mon, Mar 26, 20

[CMake] header files with visual studio

2010-11-04 Thread Oliver kfsone Smith
Checked the faq and googled as much as I could but I couldn't find anything describing how to make visual studio include header files in the solution/project files? - Oliver ___ Powered by www.kitware.com Visit other Kitware open-source projec

Re: [CMake] header files with visual studio

2010-11-05 Thread Oliver kfsone Smith
So, the question is actually: Is there a way to have CMake automatically add included headers to visual studio project files or do you need to use a dependency system to generate the lists by hand? - Oliver ___ Powered by www.kitware.com Visit other

Re: [CMake] header files with visual studio

2010-11-09 Thread Oliver kfsone Smith
irectory). So importing "*/*.{h,hh,hpp}" into the CMakeLists file is nonsensical. What I was hoping to achieve was a "Header Files" folder along side each "Source Files" folder so that the headers were pertinent to any given project withi

Re: [CMake] header files with visual studio

2010-11-09 Thread Oliver kfsone Smith
Michael Hertling said the following on 11/6/2010 7:39 AM: stored in the ${CMAKE_BINARY_DIR}/filelist.dat script as an assignment to the variable FILELIST. Subsequently, this filelist.dat is read via INCLUDE(), so CMake keeps track of it, i.e. changing the filelist.dat results in a rebuild. Finall

Re: [CMake] header files with visual studio

2010-11-13 Thread Oliver kfsone Smith
y lists. If we had to do that with CMake, well I doubt we'd be having this conversation in the first place because we probably wouldn't be /using/ CMake. So I don't understand why you would feel differently about having those lists automatically transcribed to the resultant IDE

Re: [CMake] header files with visual studio

2010-11-13 Thread Oliver kfsone Smith
Michael Hertling said the following on 11/11/2010 5:23 AM: Clearly, the downside is the usage of an external dependency scanner. Yep, but radically better than having to try and manually duplicate/recreate/maintain the dependency list :) Thank you for your posts :) - Oliver

Re: [CMake] header files with visual studio

2010-11-15 Thread Oliver kfsone Smith
dency list from a particular file (or target) should be the way to go. Yep, I was thinking the same. I'll look at writing a feature request, as you suggest :) - Oliver ___ Powered by www.kitware.com Visit other Kitware open-source projects at ht

Re: [CMake] header files with visual studio

2010-11-15 Thread Oliver kfsone Smith
| +- Sources | +- Target 2 | | +- Sources | +- Target 3 | | +- Sources ... Caveat: a header may appear under more than one target for a given CMakeLists/solution/cbp file, but that's ok. - Oliver ___ Powered by www.kitware.com Visit other Kitwa

Re: [CMake] header files with visual studio

2010-11-16 Thread Oliver kfsone Smith
with per-target dependency-generated header lists ... It becomes worth it. - Oliver ___ 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

[CMake] Outputting VS projects under Linux

2011-04-05 Thread Oliver kfsone Smith
Is it possible to create visual studio/msbuild projects under Linux? (It would ease the flow of our automation chain, and it'd be handy for working with MonoDevelop). - Oliver ___ Powered by www.kitware.com Visit other Kitware open-source pro

Re: [CMake] Adding a generated source to all multiple targets

2010-02-24 Thread Oliver kfsone Smith
argets, so before I do go add it one at a time, I just want to be sure I'm not missing some mechanism for saying "add a variation of this to all targets" or "add a variation of this to this list of targets". - Oliver

Re: [CMake] Adding a generated source to all multiple targets

2010-02-24 Thread Oliver kfsone Smith
rget}_SOURCE_FILES} ...) Hmm - I didn't know you could do that, so I've been doing everything project relative, but then the size of this project and the number of sub-targets, and the huge amount of shared code between targets means that things aren't re

Re: [CMake] This has to have been asked before...

2010-03-08 Thread Oliver kfsone Smith
Michael Wild said the following on 3/8/2010 1:35 PM: What I did is define custom functions that wrap add_executable, add_library and target_link_libraries. Works like a charm ;-) *DUH!* Thank you :) - Oliver ___ Powered by www.kitware.com

[CMake] Compile multiple-sources at a time?

2012-01-19 Thread Oliver kfsone Smith
I realize not every build environment supports the option, but is there a way to get CMake to generate Makefiles which aggregate source files, e.g. $ g++ -pipe -o library.a lib1.cpp lib2.cpp lib3.cpp $ g++ -pipe -o exeutable file1.cpp file2.cpp file3.cpp library.a - Oliver -- Powered by

[CMake] Portable revision lookup?

2012-02-02 Thread Oliver kfsone Smith
ondering if there is a way to query other repository attributes - specifically the URL - I'd like to build installers named ... e.g. my-client.baseline.57721.deb or my-server.branches.1.35.57804.tbz2 Any pointers? - Oliver -- Powered by www.kitware.com Visit oth

Re: [CMake] Portable revision lookup?

2012-02-02 Thread Oliver kfsone Smith
John Drescher said the following on 2/2/2012 3:36 PM: Cmake has support for pulling the svn and I believe git revs using cmake modules. Here is what I do for svn Much appreciated -- I just didn't think to look in the "Find" package, duly noted for future reference. - Oliver

Re: [CMake] Portable revision lookup?

2012-02-02 Thread Oliver kfsone Smith
Oliver kfsone Smith said the following on 2/2/2012 4:17 PM: John Drescher said the following on 2/2/2012 3:36 PM: Cmake has support for pulling the svn and I believe git revs using cmake modules. Here is what I do for svn Much appreciated -- I just didn't think to look in the "Fin

[CMake] CPack / Debian install location

2012-02-02 Thread Oliver kfsone Smith
AME "servers") SET(CPACK_PACKAGE_VENDOR "Cornered Rat Software") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Game servers") SET(CPACK_PACKAGE_DESCRIPTION "'Game servers and tools.") SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Oliver Smith") SE

Re: [CMake] Making a variable a dependency...

2012-02-08 Thread Oliver kfsone Smith
Alexander Neundorf said the following on 2/6/2012 3:56 PM: Would it be acceptable if cmake would rerun after every build ? You could enforce that e.g. with a add_custom_command( POST_BUILD ... ) which could e.g. touch CMakeCache.txt or something. Better ideas ? We're working in a client/server

Re: [CMake] Making a variable a dependency...

2012-02-08 Thread Oliver kfsone Smith
Michael Hertling said the following on 2/6/2012 6:39 PM: On 02/06/2012 10:56 PM, Alexander Neundorf wrote: On Saturday 04 February 2012, Oliver Smith wrote: My CMakeLists uses the Subversion repository information in a couple of places (it configures a file revision.h and it uses it for the

[CMake] How to make package depend on tests?

2012-03-05 Thread Oliver kfsone Smith
I have test and package configurations on my project, I want: cmake . make package to run force injection of the "test" target prior to building the package target. Can it be done? How? :) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitwar

Re: [CMake] Couple of library/link questions

2012-03-21 Thread Oliver kfsone Smith
int in the conversion; there are actually several other module-libraries which it compiles both into the full libevent lib and as stand-alone modules to allow end-users to be choosy about which components they require. - Oliver -- Powered by www.kitware.com Visit other Kitware open-source p

Re: [CMake] Couple of library/link questions

2012-03-21 Thread Oliver kfsone Smith
files, warning that it is usually an error in the CMakeLists.txt file. - Oliver -- 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/CMak

[CMake] Master-switch options

2012-03-22 Thread Oliver kfsone Smith
ON SSE3 OFF PACKAGE_FORMAT "RPM" ) Another advantage of this is that the GUI/CCMake could use these to build a drop-down list of "VARIANT" settings, and CMake itself could ascertain that "-DVARIANT=Intrenal" (typo