[CMake] OSX RPATH linker flags not added on first build

2017-02-03 Thread Doug Digglington
Hello, I am using ExternalProject to download and build a third-party library (SDL) in my project. I am running into an issue on OSX where the RPATH linker flags will not be added when my project is built and linked for the first time. As a result the built executable will not have any RPATH paths

Re: [CMake] Generate a file with a custom command as part of build

2017-01-26 Thread doug livesey
I'll have a play with that later. Thanks again for all your help. Doug. On 25 January 2017 at 16:02, Michael Ellery wrote: > > > On Jan 24, 2017, at 11:22 PM, doug livesey wrote: > > > > Is there any way that I can make the files webpack compiles into > dependen

Re: [CMake] Generate a file with a custom command as part of build

2017-01-24 Thread doug livesey
Is there any way that I can make the files webpack compiles into dependencies for the Webpack task? So that any changes to those are picked up for recompilation? No worries if not, I just thought it would be nice. On 25 January 2017 at 07:19, doug livesey wrote: > Perfect, thankyou so m

Re: [CMake] Generate a file with a custom command as part of build

2017-01-24 Thread doug livesey
BYPRODUCTS public/bundle.js > ) > > …that’s untested, of course. I you do that, then I think you don’t need > the add_custom_command at all….but you will still want to make some of your > other targets depend on this target if they need bundle.js before they run. > > &g

Re: [CMake] Generate a file with a custom command as part of build

2017-01-24 Thread doug livesey
subdirectory (maybe public/) and calling `add_subdirectory(public)` from my top-level file? I've tried this a couple of ways, but so far haven't got it working. Am I on the right sort of approach, or have I wandered far from the beaten track? Thanks again for your help, Doug. On 22 J

[CMake] Generate a file with a custom command as part of build

2017-01-21 Thread doug livesey
be doing anything. I would anticipate that it would put the command I want to call in the makefile, but it hasn't. If anyone could advise me on what I'm not getting here, that would be brilliant. Cheers, Doug. -- Powered by www.kitware.com Please keep messages on-topic and

Re: [CMake] Setting a value in a sub-project

2016-05-20 Thread Doug Cuthbertson
ts.txt, because cmake finishes configuring everything under Bar before it reads the set commands in Foo. Thanks again for all your help. Doug On Fri, May 20, 2016 at 8:14 AM, Jakob van Bethlehem < jsvanbethle...@gmail.com> wrote: > Ah, nice. Good to know. But then still that cache variable is

Re: [CMake] Setting a value in a sub-project

2016-05-20 Thread Doug Cuthbertson
Hi Petr, Thank you so much. I'll try it when I get in to work this morning. Doug On Fri, May 20, 2016 at 5:37 AM, Petr Kmoch wrote: > Hi Doug, > > your syntax for `set()` in Foo is incorrect; you're actually setting a > non-cache variable OPT1 do the value "ON;FORC

[CMake] Setting a value in a sub-project

2016-05-20 Thread Doug Cuthbertson
a huge difference when the option controls, for example, whether a static or dynamic library will be built. Thanks, Doug -- 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 th

[CMake] Getting a list of build link targets?

2014-03-04 Thread Doug
cally link correctly to all the dependent static targets for a given library... ~ Doug. -- 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 inform

Re: [CMake] Problem using VS 2012 Express and CMake

2013-10-07 Thread Doug
3 the tools version changes from 4.0 as msbuild is moved out of the framework. However, I believe that this has mistakenly been put in the VS2012 generator, when it should go in a new VS2013 generator. ~ Doug. On Mon, Oct 7, 2013 at 9:01 PM, Michael Jackson wrote: > I am running CMake 2.8

Re: [CMake] Problem using VS 2012 Express and CMake

2013-10-07 Thread Doug
Oh, thank you~ I was just trying the nightly builds in the hopes that they had a fix with no luck, but you're right, generating a VS2011 project did work. The 2012 generator is still broken in the nightlies, both for pro and express though as far as I can tell. ~ Doug. On Mon, Oct 7, 20

Re: [CMake] Problem using VS 2012 Express and CMake

2013-10-06 Thread Doug
ild cmake projects with visual studio express 2012 on windows 7. ~ Doug. (PS. After reading this thread I did perform an repair, but as expected, the difficulties appear to be that 1) the path in the config file is wrong and 2) VS express doesn't have a functioning devenv.exe to perform upgrades

Re: [CMake] Relink to shared libs

2012-10-25 Thread Doug
I can't see why you couldn't use set(CMAKE_SKIP_RPATH ON) and post build copy your library to a path that's on your linker path; have your tests setup to use the system copy of the library instead of the local copy. ~ Doug. On Sat, Aug 4, 2012 at 2:41 AM, Leif Walsh wrote: > T

[CMake] Incorrect link order MSYS + SDL from target_link_libraries

2012-09-25 Thread Doug
to fix it I need a way to force a link order where mingw32 depends on SDL2Main. Currently (as far as I can tell) the link dependencies are basically: target_link_libraries(SDL2 ${STUFF}) where STUFF contains both SDL2Main and mingw32 Any ideas? Cheers, Doug. -- Powered by www.kitware.com Visi

Re: [CMake] How to check the operating system is MacOSX?

2012-09-19 Thread Doug
atform() if(OS_OSX) message("Found OSX") else() message("Found no OSX") endif() if(OS_IPHONE) message("Found IPHONE") else() message("Found no IPHONE") endif() ~ Doug. On Wed, Sep 19, 2012 at 4:52 AM, Eric Wing wrote: > On 9/18/12, Stefan Reuschl

Re: [CMake] How to check the operating system is MacOSX?

2012-09-18 Thread Doug
cygwin or msys anyway) if(WIN32) ... elseif(APPLE) ... else ... endif worked fine. ~ Doug. On Tue, Sep 18, 2012 at 9:52 PM, Doug wrote: > As far as I'm aware the only real way to detect OSX itself is by something > like: > > #if __APPLE__ > #include "Target

Re: [CMake] How to check the operating system is MacOSX?

2012-09-18 Thread Doug
ant attached to compiler itself. ~ Doug. On Mon, Sep 17, 2012 at 6:08 AM, Eric Wing wrote: > On 9/16/12, Michael Jackson wrote: >> On Sep 15, 2012, at 1:32 PM, Andreas Pakulat wrote: >> >>> Hi, >>> >>> On Sat, Sep 15, 2012 at 12:46 PM, Loaden wro

[CMake] CHECK_C_SOURCE_COMPILES for objective c?

2012-09-14 Thread Doug
s the right way of handling this? ~ Doug. -- 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/un

Re: [CMake] how to build cmake with mingw and msys?

2012-08-15 Thread Doug
but if you can just type 'make' and it runs, I would expect it to be fine. Perhaps the mingw list has some suggestions... ~ Doug. On Wed, Aug 15, 2012 at 11:36 PM, LM wrote: > On Aug 14, Doug wrote: > >>For what it's worth, it works for me? >> >>I'm

Re: [CMake] how to build cmake with mingw and msys?

2012-08-14 Thread Doug
For what it's worth, it works for me? I'm using stock mingw on windows 7, with these settings: doug@Zed e:/lib/cmake $ which gcc /mingw/bin/gcc.exe doug@Zed e:/lib/cmake $ which make /usr/bin/make.exe doug@Zed e:/lib/cmake $ echo $PATH .:/usr/local/bin:/mingw/bin:/usr/bin:/c/Window

Re: [CMake] Generator for Android.mk

2012-08-14 Thread Doug
uild and automatically generates these files... but I suspect you'd hit a lot of edge cases (try compiling openssl using cmake! -> it's a pain), especially if you're using something ported from automake. Cheers, Doug. On Tue, Aug 14, 2012 at 9:02 PM, John Barnum wrote: > I

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Doug
b.com/shadowmint/cmake-multi-install ~ Doug. On Thu, Aug 9, 2012 at 10:06 AM, Doug wrote: > Woops; didn't mean to respond off list. > > Anyway, basically my suggestion is as part of your build generate a folder > like: > > ${CMAKE_CURRENT_BINARY_DIR}/deploy-package-XXX/ &

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Doug
try to install files before the relevant directories have been created, failing the install). Doesn't seem to be an issue in more recent versions though. ~ Doug. On Thu, Aug 9, 2012 at 9:51 AM, Bruce Cartland wrote: > > I've been through this and experimented with samples ki

Re: [CMake] Arbitrary order named arguments

2012-07-19 Thread Doug
Ah~ I saw http://www.cmake.org/Wiki/CMakeMacroParseArguments but I didn't realize it was an in-built feature now. That's great, thanks~ Cheers, Doug. On Fri, Jul 20, 2012 at 12:28 PM, Michael Jackson wrote: > include (CMakeParseArguments) > > function(BuildQtAppBundle

[CMake] Arbitrary order named arguments

2012-07-19 Thread Doug
}") message("LD_CONF --> ${LD_CONF}") endfunction() blah2("item_required" C_FLAGS "G" LD_CONF "blah") Anyone suggest a better way? ~ Doug. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/ope

[CMake] Inbuilt documentation <-- awesome.

2012-07-16 Thread Doug
By the way guys, who ever is responsible for the idea of shifting all the documentation into the binary for cmake itself so you can just call cmake --help-command blah, you rock. Amazingly useful feature. :) ~ Doug. -- Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Linking against exported symbols in an application (cross platform)

2012-07-15 Thread Doug
is exposed in the application. So I need to link the shared library / dll with missing symbols and the right 'magical linker arguments' so that when the dll loads it resolves the symbols from the parent. ~ Doug. -- Powered by www.kitware.com Visit other Kitware open-source projec

[CMake] Another minor docs issue; no FILE(DIFFERENT ... ) documentation?

2012-06-19 Thread Doug
ferentCommand(args); Just an omission from the docs? ~ Doug. -- 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] cpack DEB generator docs

2012-06-18 Thread Doug
Yeah, I really should. :) Is this ok? Or shall I create a bug and attach the patch to that? (attach patch; it's very minor; just missing 3 of the variables) doug@shadowmint:~/ext/cmake$ ./bin/cpack --help-variable-list |grep DEB <-- All in there now~ CPACK_RPM_PACKA

[CMake] cpack DEB generator docs

2012-06-17 Thread Doug
or completely replace other packages. The Replaces control field has these two distinct purposes. ~ Doug. -- 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.c

Re: [CMake] "Mastering CMake": which cmake version?

2012-06-14 Thread Doug
Idly, I can't find anything in the book referencing 2.8.1, the closest I've noticed is some talk about 2.8.0-rc2. I haven't exhaustively searched or anything, just flicked through. ~ Doug. On Thu, Jun 7, 2012 at 11:19 PM, Bill Hoffman wrote: > On 6/7/2012 10:24 AM, Thompson,

Re: [CMake] Generating source file one step before linking

2012-06-14 Thread Doug
MMAND ${CMAKE_COMMAND} -E copy ${ITEM} . WORKING_DIRECTORY ${PROJECT_BINARY_DIR} COMMENT "Copying ${ITEM} to ${PROJECT_BINARY_DIR}") endforeach() endif() You could use the PRE_LINK key and what ever your custom command is I expect. ~ Doug. On Thu, Jun 14, 2012 at 4:59 PM, Johannes Bauer

Re: [CMake] More than one package source for a project.

2012-06-14 Thread Doug
from components if you have the list of source files. ~ Doug. On Fri, Jun 15, 2012 at 9:05 AM, Doug wrote: > Oddly, I was just doing that last night. Here's an example: > https://github.com/shadowmint/cmake-multi-install > > If you run: > mkdir build > cd build > cm

Re: [CMake] More than one package source for a project.

2012-06-14 Thread Doug
ON) ...but you get the idea. No idea why this isn't in the wiki. It keeps turning up as a question... Also, it doesn't work on all the pack builders. ~ Doug. On Fri, Jun 15, 2012 at 2:57 AM, Darryl L. Pierce wrote: > Our project has several subprojects to it. What I would like t

[CMake] How to handle dependencies for custom cmake builder?

2012-06-12 Thread Doug
TARGET The name of the binary # @param SOURCE The set of source files function(add_mono_executable TARGET SOURCES) add_mono_target(${TARGET} "${SOURCES}" 0) endfunction() # init~ mono_init() file(GLOB_RECURSE SOURCES "${PROJECT_SOURCE_DIR}/sample1/*.cs") add_mono_library(mono_sampl

Re: [CMake] CMake generation for Android & iPhone development

2012-02-04 Thread Doug
http://code.google.com/p/android-cmake/ Have a look at the opencv for android example; it's a quickstart guide for android~ ~ Doug. On Sun, Feb 5, 2012 at 9:07 AM, Robert Dailey wrote: > Can someone briefly go over the possibility of using CMake to generate > projects for Android

[CMake] Optional submodules best practice?

2012-02-03 Thread Doug
drop a new folder into impl/ It's quite... verbose though. Manually munging all the sources into a single list, etc. Has anyone else had similar experience / a better way of doing this? (The submodules are for platform specific code; rather than having a tonnes of #ifdefs in a single code g

[CMake] custom compiler: remove space after CMAKE_LINK_LIBRARY_FILE_FLAG

2011-10-20 Thread Doug Crawford
I am creating a platform file for the Radisys OS9 embedded cross compiler.  The executable link line needs to look like: xcc source.o -fd=target -lmylib/mylib.l   I figured out that I needed to add this to my Generic_XCC.cmake platform file SET(CMAKE_LINK_LIBRARY_FILE_FLAG "-l")   but the problem

Re: [CMake] Sub dependencies?

2011-08-14 Thread Doug
BINARY_DIR}/AConfig.cmake") In liba/AConfig.cmake: set(A_LIBRARIES @A_LIBRARIES@) set(A_INCLUDE_DIRS @A_INCLUDE_DIRS@) In dummy/CMakeLists.txt: FIND_PACKAGE(A REQUIRED) INCLUDE_DIRECTORIES(${A_INCLUDE_DIRS}) TARGET_LINK_LIBRARIES(dummy ${A_LIBRARIES}) This yields an AConfig.cmake that rea

Re: [CMake] Sub dependencies?

2011-08-12 Thread Doug
I see. I've tried this approach and I get the error: -- Found LIBPNG CMake Error at CMakeLists.txt:49 (export): export given target "/usr/lib/libpng.so" which is not built by this project. -- Configuring incomplete, errors occurred! ~ Doug. On Fri, Aug 12, 2011 at 4:57 P

Re: [CMake] Sub dependencies?

2011-08-12 Thread Doug
w explains that, I'm sorry, I can't see it. Can you point to a specific point in the page?) ~ Doug. On Fri, Aug 12, 2011 at 2:34 PM, Michael Wild wrote: > If the projects are independent, you might want to take a look at this > Wiki page: > >

Re: [CMake] Sub dependencies?

2011-08-12 Thread Doug
why? I've invoked: find_package(liba REQUIRED) not: find_package(libpng REQUIRED) My application has no knowledge about libpng, or libjpg or whatever the heck else liba uses to load images. ~ Doug. On Fri, Aug 12, 2011 at 3:11 PM, Andreas Pakulat wrote: > On 12.08.11 11:23:46, Do

Re: [CMake] Sub dependencies?

2011-08-11 Thread Doug
LU;X11;/usr/lib/libzip.so;/usr/lib/libpng.so In exec/CMakelists.txt I invoke: find_package(libna REQUIRED) message("na depend? ${LIBNA_LIBRARY}") target_link_libraries(exec ${LIBNA_LIBRARY}) Yielding: -- Found LIBNA B depend? /home/doug/projects/Natives/libcommon-android/build/libna.a Ho

Re: [CMake] Sub dependencies?

2011-08-11 Thread Doug
age wrong somehow? In my specific case libpng and libpng-android are not the same project; they are completely split and do not even use the same files. Neither of them are 'child' projects of my library (libnw) via add_subdirectory or some other weird thing like that. ~ Doug. On Thu, Au

Re: [CMake] Sub dependencies?

2011-08-11 Thread Doug
it seems like a poor solution. Edit: woops; ment that to go to the list. ~ Doug. On Thu, Aug 11, 2011 at 7:39 PM, Glenn Coombs wrote: > Add the sub dependencies that library A has with target_link_libraries(): > > target_link_libraries(A png) > > -- > Glenn > > On 11 Augu

[CMake] Sub dependencies?

2011-08-11 Thread Doug
ROCESS_INCLUDES LIBNW_INCLUDE_DIR) set(LIBNW_PROCESS_LIBS LIBNW_LIBRARY LIBNW_LIBRARIES) libfind_process(LIBNW) I know I can use ADD_SUBDIRECTORY to include stuff for a sub dir, but that isn't really appropriate in this case. ~ Doug. ___ Powered by www.kitw

[CMake] How does cmake find libraries?

2011-06-15 Thread Doug
at module? Sounds like the machine config is broken, but I'm not sure exactly how to fix it. Cheers, Doug. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep m

[CMake] How do you put specific files in the build directory?

2011-06-01 Thread Doug
into the tests folder. Current the test zip file lives in src/tests/test.zip What's the right way to do this? I see some libraries use configure_file to generate headers in the build directory, but that doesn't seem useful in this case... Ch

[CMake] Alternative toolchains? (alchemy, android ndk)

2011-05-05 Thread Doug
ow need to cutout the root /usr/include and pass a new one in, as well as a specific alternative version of gcc; but I can't figure out how to do that in the cmake directives... ~ Doug. ___ Powered by www.kitware.com Visit other Kitware open-sou

[CMake] Unify entire tree into a single static library?

2011-02-22 Thread Doug
e .a file. This is also just ridiculous. Surely this is a problem that comes up a lot...?) Cheers, Doug. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-

[CMake] getting "new/updated" variable from PARENT SCOPE

2010-06-03 Thread Doug Reiland
Is there a way to an updated variable from parent scope? For example, I am in a sub-directory set(FOO 2 PARENT_SCOPE) ... retrieve FOO from PARENT_SCOPE I know sub-directory would get a copy of FOO, if it existed, when it was entered. I played with set/get_property() for this, but which work

Re: [CMake] cmake - escape/delay variable expansion

2010-06-03 Thread Doug Reiland
On 6/2/10 9:24 PM, Michael Hertling wrote: >> >> On 06/02/2010 10:24 PM, Doug Reiland wrote: >> >>> >>> Is there anyway to do in a generic fashion? >>> For example, I don't know what all the variables are. >>> I can be certain that they are valid

Re: [CMake] cmake - escape/delay variable expansion

2010-06-02 Thread Doug Reiland
Is there anyway to do in a generic fashion? For example, I don't know what all the variables are. I can be certain that they are valid, for example build-dir is set in scope. However, the string can have several "variables" in it. Doug On Wed, Jun 2, 2010 at 3:06 PM, Michael

[CMake] cmake - escape/delay variable expansion

2010-06-02 Thread Doug Reiland
Sorry for another newbie question. Say, to setup a variable as follow so ${build-dir} doesn't get expanded set(foo \${build-dir}/foo.c) How would a expand foo so ${build-dir} gets expanded? The following don't seem to do it. message(${foo}) message(${${foo}}) ___

Re: [CMake] Extending a target??

2010-06-02 Thread Doug Reiland
generate a .o and both the shared and static library include it (link, archive). This all still works ok in cmake for shared library because you can just get the sub-directory to generate a share libray and have main library link it in. For static library, ... it is a pain. Doug On Wed, Jun 2

Re: [CMake] list of lists -possible?

2010-06-02 Thread Doug Reiland
perfect, thankyou! On Wed, Jun 2, 2010 at 12:34 PM, Clinton Stimpson wrote: > On Wednesday, June 02, 2010 10:24:44 am Doug Reiland wrote: >> Is it possible to implement a list of lists. The following example >> shows cmake ending up with a list with 6 elements instead of &

[CMake] list of lists -possible?

2010-06-02 Thread Doug Reiland
Is it possible to implement a list of lists. The following example shows cmake ending up with a list with 6 elements instead of a list with 2 elements with each element being a list with 3 elements set(fooa 1 2 3) set(foob a b c) message(${fooa}) message("${fooa}") message("${foob}") list(APPEND f

[CMake] Extending a target??

2010-06-02 Thread Doug Reiland
Is there anything to "add to" a target after it is declared? For example, add_library(foo STATIC foo1.c foo2.c) add_some_more(foo foo3.c) or add_some_more(foo foo3.o) If not, feasibility on how it could be implemented? Thanks, Doug _

[CMake] shared directory with subdirs and custom command

2010-06-02 Thread Doug Reiland
I am porting a library over to cmake. This library is built both shared and static AND has several composite objects that get linked in. For example, subdir-a had makefile that compiled and linked a1.c a2.c into ../a.o top directory linked in a.o into it's libs (shared and static) I have conver

Re: [CMake] newbie question - what targets are supported?

2010-05-28 Thread Doug Reiland
argets are supported? On 05/28/2010 12:14 AM, Doug Reiland wrote: okay, I have ordered the book. But, in the meantime. I am continuing to port a large library from in-house build to cmake for evaluation. What builtin targets are supported? On *nix, run CMake on a directory with an empty CMak

[CMake] newbie question - what targets are supported?

2010-05-27 Thread Doug Reiland
okay, I have ordered the book. But, in the meantime. I am continuing to port a large library from in-house build to cmake for evaluation. What builtin targets are supported? I got lex, gperf, and other kinds of stuff. A (pseudo code) didn't work: add_library(foo *.c *.gpref) thanks! ___

[CMake] cmake - library help

2010-05-27 Thread Doug Reiland
shared lib set SOURCES-static ${SOURCES} file(GLOB subdira-sources subdira/*.c) list(APPEND SOURCES-static ${subdira-sources}) then add_library(foo-static STATIC ${SOURCES-static}) I have several composite objects like this.Is there a better way? Doug On Thu, May 27, 2010 at 11:32 AM, Torri, S

[CMake] cmake - library help

2010-05-27 Thread Doug Reiland
First, I am new to cmake and exploring converting our home grown build system. How would I code this up in cmake I have composite objects that need to be added to a share library add_library(foo a.c b.c c.c) I also need x.o in the library AND x.o linked from: subdir-a/aa.c subdir-a/bb.c Thank

[CMake] Deprecated commands -- replacements?

2009-09-04 Thread Doug Hackworth
-patch 4 All assistance very much appreciated. Thanks, Doug ___ 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: h

Re: [CMake] Generator for Xcode 3.0+?

2009-06-28 Thread Doug Gregor
eciate if other Xcode users could give it a spin. (Yes, it makes sure that "Build independent targets in parallel" is set). - Doug On Thu, Jun 18, 2009 at 12:25 PM, David Cole wrote: > Nope. Feel free to have a go at it... (Or maybe a volunteer from Apple's > Xcode development

Re: [CMake] Generator for Xcode 3.0+?

2009-06-18 Thread Doug Gregor
nSceneGraph), this can speed up > builds by several magnitudes. That's exactly the option that triggered my question :) - Doug ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource

[CMake] Generator for Xcode 3.0+?

2009-06-18 Thread Doug Gregor
When I build an Xcode project using CMake, Xcode loads and builds the project fine but claims that the project is "Xcode 2.4 compatible". Has anyone looked into what it would take to generate Xcode 3.0+ projects? - Doug ___ Powered by www.k

Re: [CMake] Deriving version number from a header (safely)

2009-05-14 Thread Doug Gregor
On Thu, May 14, 2009 at 8:25 AM, Brad King wrote: > Doug Gregor wrote: >> >> However, we'd also like to force CMake to reconfigure when >> boost/version.hpp changes. Is there some top-level target that we can >> attach such a dependency to? > > This has come

[CMake] Deriving version number from a header (safely)

2009-05-14 Thread Doug Gregor
hanges. Is there some top-level target that we can attach such a dependency to? e.g., I could imagine that there could exist a cmake-cache target, such that we could add add_dependencies(cmake-cache ${CMAKE_CURRENT_SOURCE_DIR}/boost/version.hpp) and then CMake would be re-

[CMake] xcode generator

2009-03-24 Thread Doug Henry
Quick question about the cmake xcode project generator. I can run cmake and build my project just fine using cmake under Leopard from the terminal and from xcode, so there is no build problem. I was wondering if anyone has code completion working for their project? To be more specific, when usin

Re: [CMake] Qt find package location

2009-03-11 Thread Doug Henry
Looks like QTDIR is checked last, so it will always use the one found in my path. I was (incorrectly) expecting QTDIR to be an override, but it functions more like a safety net. -thanks On Wed, Mar 11, 2009 at 1:34 PM, Doug Henry > wrote: > thanks for the responses. I may have mi

Re: [CMake] Qt find package location

2009-03-11 Thread Doug Henry
qmake /tools/lin64/bin/qmake (lin64):~/tmp/build$ ls /home/dhenry/qtsdk-2009.01/qt/bin/qmake /home/dhenry/qtsdk-2009.01/qt/bin/qmake On Wed, Mar 11, 2009 at 12:58 PM, Pau Garcia i Quiles wrote: > On Wed, Mar 11, 2009 at 5:48 PM, Boudewijn Rempt wrote: > > On Wed, 11 Mar 2009, Doug He

[CMake] Qt find package location

2009-03-11 Thread Doug Henry
I have multiple Qt installations and would like to know how I guide the find_package(Qt4) command to find the correct one. I assume there is a variable I can set which defines the search path, which will allow me to change the path to find a different installed version. Thanks. :doug

Re: [CMake] MPI Module

2008-09-08 Thread Doug Gregor
set a variable to switch to mpicxx > -mpe=mpianim without regenerating the Makefiles. Make mpicxx your compiler, then just change the CMAKE_CXX_FLAGS to include --mpe=mpanim (?) - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Component group specific installation with Makefile

2008-08-07 Thread Doug Gregor
a patch that one of the CMake developers could review and apply. This would be a great help to the CMake community! - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Component group specific installation with Makefile

2008-08-07 Thread Doug Gregor
t all dependencies are also installed. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Component group specific installation with Makefile

2008-08-06 Thread Doug Gregor
rgets install- and install- to makefile targets, which just perform the appropriate cmake -DCOMPONENT= -P cmake_install.cmake actions. It means that cpack_add_* is somewhat of a misnomer (CPack doesn't even come into play with the install targets in the makefile), but I think i

Re: [CMake] What's the point for making component-specific directory for CPack?

2008-07-29 Thread Doug Gregor
On Tue, Jul 29, 2008 at 4:44 AM, Yuri Timenkov <[EMAIL PROTECTED]> wrote: > On Monday 28 July 2008 22:04:57 Doug Gregor wrote: >> On Mon, Jul 28, 2008 at 1:48 PM, Yuri Timenkov <[EMAIL PROTECTED]> > wrote: >> > On Monday 28 July 2008 21:16:25 Doug Gregor wrote: &g

Re: [CMake] CPack Components with NSIS and using InstallRequiredSystemLibraries

2008-07-28 Thread Doug Gregor
e trick. Thank you! Okay. The cpack_add_* commands will take care of CPACK_COMPONENTS_ALL for you. > Are you deprecating the old SET(...) way of doing components? Yeah. The commands are so much easier to use. - Doug ___ CMake mailing list

Re: [CMake] CPack Components with NSIS and using InstallRequiredSystemLibraries

2008-07-28 Thread Doug Gregor
he ZIP generator uses a completely different code path than ignores components completely. It has almost nothing to do with the NSIS generator. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CPack Components with NSIS and using InstallRequiredSystemLibraries

2008-07-28 Thread Doug Gregor
should work. Could you try moving this command before the include(CPack) and tell me whether that works? - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake CVS + CPack + NSIS - Installing files with spaces

2008-07-28 Thread Doug Gregor
and how to quote strings in CMake, or is this > a bug in the NSIS generator? That's definitely a bug in the generator. Would you file a bug report at http://public.kitware.com/Bug/ ? - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Linking with MSVC against Boost lib fails to find library

2008-07-11 Thread Doug Gregor
) before using find_package(Boost). To force your program to link against the shared version of the Boost libraries, use add_definitions(-DBOOST_ALL_DYN_LINK) - Doug > -- > Regards > > Steve Collyer > Netspinner Ltd > ___ > CMake ma

Re: [CMake] MSI Support

2008-07-10 Thread Doug Gregor
n to work with MSI directly. There might be some advantages to using MSI for these installers, but as far as I know nobody is working on CPack support for this system. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CPack components need to be in global scope

2008-07-04 Thread Doug Gregor
ainst CMake CVS trunk) available here: http://public.kitware.com/Bug/view.php?id=6847 But, I won't have the tutorial or examples updated until the patch goes into CVS. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] FindBoost.cmake from 2.6

2008-07-03 Thread Doug Gregor
thread whatever ) > > that code works in 2.4.7, 2.4.8 and 2.6 as far as I tested it. And in all > cases with the same FindBoost.cmake (the one we are discussing) Okay. You'll need some minor tweaks to use this module with CMake < 2

Re: [CMake] FindBoost.cmake from 2.6

2008-07-03 Thread Doug Gregor
On Thu, Jul 3, 2008 at 12:23 PM, Doug Gregor <[EMAIL PROTECTED]> wrote: > Anyway, I'm working on a bunch of issues with FindBoost, and will ping > the list when I think I have it right. There's a much-improved FindBoost module now in CMake CVS. Hopefully it will get merge

Re: [CMake] FindBoost.cmake from 2.6

2008-07-03 Thread Doug Gregor
fact what > I'm doing in CGAL to avoid requiring users to install CMake 2.6 which is > usually not just a simple apt-get/rmp call in many linuxes) I'm not quite sure what to do about this... with the FindBoost we ship in CMake 2.6.1, we should take advantage of CMake's features (e.g., the new HINTS feature, which eliminates a bunch of redundant code). Should we maintain a separate version of FindBoost for older versions of CMake? I don't know, but I'm concerned about the maintenance burden there, particularly for a complicated module like this one. Anyway, I'm working on a bunch of issues with FindBoost, and will ping the list when I think I have it right. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Component specific installation

2008-06-30 Thread Doug Gregor
n CMake CVS for component-specific installations in the Windows (NSIS) and Mac OS X (PackageMaker) installers generated by CPack. See http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack for more information. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Creating multiple (deb) packages from one source tree using CPack

2008-06-27 Thread Doug Gregor
t for component-based installations is available in CMake CVS for NSIS (Windows) and PackageMaker (Mac OS X). Mathieu has started work on support for multiple .debs using the same input mechanism. - Doug ___ CMake mailing list CMake@cmake.org http://www.cm

Re: [CMake] Fwd: Generating debian package using cmake (take 2)

2008-06-24 Thread Doug Gregor
tem fails to support this model. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] [ctest] junit xml output

2008-05-22 Thread Doug Gregor
On Thu, May 22, 2008 at 9:46 AM, Mike Arthur <[EMAIL PROTECTED]> wrote: > On Thursday 22 May 2008 13:55:19 Doug Gregor wrote: >> We've been discussing exactly the same sort of thing for Boost, but >> with output from CTest going to Bitten (http://bitten.edgewall.org/).

Re: [CMake] [ctest] junit xml output

2008-05-22 Thread Doug Gregor
ng to Bitten (http://bitten.edgewall.org/). XSLT seems like an easy way to handle this transformation. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Why is there no install(DIRECTORY dirs... COMPONENT OPTIONAL)?

2008-05-22 Thread Doug Gregor
;s not quite as good. - Doug ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-22 Thread Doug Gregor
It didn't work. Here are the changes. Sorry, but I don't have a decent > diff generator on this windows box so you will have to merge stuff in: Thanks! All of these changes are in CMake CVS now. - Doug ___ CMake mailing list CMake@cmak

Re: [CMake] CPack/NSIS installation of specific components

2008-04-19 Thread Doug Gregor
On Sat, Apr 19, 2008 at 2:32 PM, Doug Gregor <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 18, 2008 at 11:06 AM, Doug Gregor <[EMAIL PROTECTED]> wrote: > > On Thu, Apr 17, 2008 at 9:33 PM, Doug Gregor <[EMAIL PROTECTED]> wrote: > > > Okay, the bug

Re: [CMake] CPack/NSIS installation of specific components

2008-04-19 Thread Doug Gregor
On Fri, Apr 18, 2008 at 11:06 AM, Doug Gregor <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 9:33 PM, Doug Gregor <[EMAIL PROTECTED]> wrote: > > Okay, the bug report is here: > > > > http://public.kitware.com/Bug/view.php?id=6847 > > > >

Re: [CMake] CPack/NSIS installation of specific components

2008-04-18 Thread Doug Gregor
On Thu, Apr 17, 2008 at 9:33 PM, Doug Gregor <[EMAIL PROTECTED]> wrote: > Okay, the bug report is here: > > http://public.kitware.com/Bug/view.php?id=6847 > > The archive attached to it contains the patch (*with* the additional > header) and an example with a few compo

Re: [CMake] CPack/NSIS installation of specific components

2008-04-17 Thread Doug Gregor
ecoming part of a future CMake release. Okay, the bug report is here: http://public.kitware.com/Bug/view.php?id=6847 The archive attached to it contains the patch (*with* the additional header) and an example with a few components. I also went ahead and impl

  1   2   >