Re: [CMake] different compiler for xcode

2012-02-04 Thread Johan Björk
Hi, You can change it using a toolchain file. We use something like this: SET(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION com.foo.compilers.llvmgcc42 CACHE STRING "" FORCE) On Fri, Feb 3, 2012 at 11:49 AM, MM wrote: > Hi, > > Does the xcode generator on cmake 2.8.3 allow specifying a different gcc > from

Re: [CMake] [New Module] Arduino CMake

2012-01-23 Thread Johan Björk
Hi Alfa, We are really interested in the teamcity + CTest support. Is that available somewhere already? Thanks /Johan On Sun, Jan 22, 2012 at 7:51 PM, Alfa Omega wrote: > Hi everyone, > > I'm not quite sure what the correct procedure is for becoming a CMake > contributor, but from what I've re

Re: [CMake] Xcode resources for different projects in different directories.

2011-10-08 Thread Johan Björk
Sounds like a bug/missing feature. File a bug with a example project that demonstrates the issue on the bugtracker, and hopefully someone will have time to take a look at it ;) /Johan On Sat, Oct 8, 2011 at 4:00 PM, Daniel Dekkers wrote: > Hi, > > I think I've asked this earlier, but still no s

Re: [CMake] dmg CPack Options

2011-09-22 Thread Johan Björk
You might want to try the latest cmake 2.8.6RC, it should have fixed the symlink issues with .tar.gz packaging. -Johan On Thu, Sep 22, 2011 at 5:35 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > I just found that and have been playing with it but if I set it to 1 then I > get the f

Re: [CMake] Xcode deployment postprocessing

2011-09-05 Thread Johan Björk
I don't remember when the deployment stuff is executed in xcode. How do you package your product? If you are using cpack ,you can tell it to strip the binary before packaging it. /Johan On Mon, Sep 5, 2011 at 6:47 AM, Robert Bielik wrote: > Tack Johan, > > Johan Björk skrev 20

Re: [CMake] Xcode deployment postprocessing

2011-09-04 Thread Johan Björk
You can set it using SET(CMAKE_XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING YES) You might also want to enable the strip-attribute if that's what you are aiming for (STRIP_INSTALLED_PRODUCT?) For other settings, refer to: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/X

[CMake] add_custom_command(TARGET ..) does nothing if target don't exist?

2011-08-30 Thread Johan Björk
Hi guys, I just ran into the following issue, and I'm quite baffled? Is this really expected behaviour? cherimoya:cmake-postbuildearly phb$ cat CMakeLists ADD_CUSTOM_COMMAND(TARGET foo POST_BUILD COMMAND ${CMAKE_COMMAND} -E echo 'hello') TARGET_LINK_LIBRARIES(foo "-lbar") cherimoya:cmake-postbuil

Re: [CMake] TGZ installer following links

2011-08-27 Thread Johan Björk
Attached patches to the bug and on this email. ( http://public.kitware.com/Bug/**view.php?id=12284 .) I did not make it an option yet, as I'm not sure exactly how it should be done. However 0002-kwsys: This is just broken and should be fixed. Setti

Re: [CMake] cmake -E remove xx*, wildcards win32?

2011-08-17 Thread Johan Björk
If you are doing this at cmake time, simply use glob() to find the files, then remove them using file(REMOVE). If you are doing it as part of a target, try and create a new .cmake file (configure_file or file(WRITE) that does glob+remove and execute it using cmake -P script.cmake /Johan On Thu,

Re: [CMake] ok guys, why is configure_file() so sucky?

2011-08-17 Thread Johan Björk
Agree on all points! -Johan On Wed, Aug 17, 2011 at 4:17 PM, Andreas Mohr wrote: > [cue maximally inflammatory subject ;)] > > Hi, > > I keep encountering template file processing where > @VAR@ replacements end up empty due to the required template > variable simply not having been set (or emp

Re: [CMake] append command

2011-08-13 Thread Johan Björk
I just wrote my own macro append_property(type name value) for this. example: append_property(SOURCE COMPILE_FLAGS "-x objective-c++" translate.cpp stuff.cpp) or append_property(TARGET COMPILE_FLAGS "foo" mytarget) etc Would be nice to have that as an included macro, or at least a comment in the d

Re: [CMake] exclude build project from solution

2011-08-09 Thread Johan Björk
Dave, Bill? Anyone know what the difference is intended to be between EXLUDE_FROM_ALL vs EXCLUDE_FROM_DEFAULT_BUILD? /Johan On Mon, Aug 1, 2011 at 6:57 PM, Johan Björk wrote: > And another update while at it. > > The following cmake file illustrates the issue: > > F

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-08-08 Thread Johan Björk
http://public.kitware.com/Bug/view.php?id=12284 (cpack copies data in symlinks) On Mon, Aug 1, 2011 at 9:26 PM, Alexander Neundorf wrote: > On Saturday 30 July 2011, Alan W. Irwin wrote: > > Please do a fundamental fix for > > http://public.kitware.com/Bug/view.php?id=9220. > > Since I implement

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-08-01 Thread Johan Björk
http://www.cmake.org/Bug/view.php?id=12379 (EXCLUDE_FROM_DEFAULT_BUILD broken) http://www.cmake.org/Bug/view.php?id=12377 (-g0 enables debug in XCode) http://www.cmake.org/Bug/view.php?id=12358 (ENABLE_LANGUAGE(.. OPTIONAL) breaks configure step http://www.cmake.org/Bug/view.php?id=11690 (XCode gen

Re: [CMake] exclude build project from solution

2011-08-01 Thread Johan Björk
not selected to build for this solution configuration == Build: 0 succeeded, 1 failed, 1 up-to-date, 2 skipped == I'll file a bug. On Mon, Aug 1, 2011 at 5:15 PM, Johan Björk wrote: > and I just found > > The EXCLUDE_FROM_DEFAULT_BUILD property is used by the visu

Re: [CMake] exclude build project from solution

2011-08-01 Thread Johan Björk
at 5:05 PM, Johan Björk wrote: > Hi all, > > Anyone know anything about this? I'm seeing the same issue with MSVC 2008 + > cmake 2.8(.?) > > add_library(foo .. EXCLUDE_FROM_ALL ..) > > -Johan > > > On Tue, May 3, 2011 at 4:59 PM, Andrea Galeazzi wrote: &g

Re: [CMake] exclude build project from solution

2011-08-01 Thread Johan Björk
Hi all, Anyone know anything about this? I'm seeing the same issue with MSVC 2008 + cmake 2.8(.?) add_library(foo .. EXCLUDE_FROM_ALL ..) -Johan On Tue, May 3, 2011 at 4:59 PM, Andrea Galeazzi wrote: > I've a project made up of multiple executable target: > add_executable(TARGET_NAME1 ${SOUR

[CMake] Xcode and Cmake ReRun

2011-07-25 Thread Johan Björk
Hi guys, I noticed that each XCode target has an associated CMake ReRun script phase. Is there a specific reason for this (in difference to having one target that all others depend on that does the ReRun check?) It causes a fair few issues, it fails when you are parallelcompiling targets (It'll s

Re: [CMake] Assembler handling in 2.8.5 vs 2.8.4

2011-07-22 Thread Johan Björk
Alex, I'm trying to conditionally enable ASM support for my compilers that support it (I have a project that gets crosscompiled to a whole slew of architectures). In an ideal situation, I would use ENABLE_LANGUAGE(ASM OPTIONAL) and check the flag if it works or not. For a few of the compilers, I

Re: [CMake] Appending to the LINK_FLAGS target property ?

2011-07-22 Thread Johan Björk
Glenn, An option APPEND_STRING was added, see http://public.kitware.com/Bug/view.php?id=12342 /Johan On Mon, Jun 27, 2011 at 4:47 PM, Glenn Coombs wrote: > For variables like CMAKE_C_FLAGS one can append to them like this: > >     set(CMAKE_C_FLAGS "${CMAKE_CFLAGS} -some_option") > > For targe

Re: [CMake] Error on uninitialized vars?

2011-05-26 Thread Johan Björk
f "nasty bugs" did you find...? > > > HTH, > David > > > On Tue, May 24, 2011 at 7:42 AM, Johan Björk wrote: >> >> Hi guys, >> >> I just discovered the --warn-uninitialized flag to cmake, and in the >> process found some really nast

[CMake] Error on uninitialized vars?

2011-05-24 Thread Johan Björk
Hi guys, I just discovered the --warn-uninitialized flag to cmake, and in the process found some really nasty bugs. Is there any way to enable this from the CMakeLists.txt files? Is there a corresponding --error-uninitialized value? Thanks /Johan ___ Po

[CMake] Converting ctest output to junit

2011-04-26 Thread Johan Björk
Hi, Anyone has any code to convert the ctest xml output to jUnit? -Johan ___ 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 F

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-04-09 Thread Johan Björk
http://public.kitware.com/Bug/view.php?id=11690 XCode user settings http://public.kitware.com/Bug/view.php?id=11692 interrupt batch build doesn't stop visual studio http://public.kitware.com/Bug/view.php?id=10039 Xcode gen only creates one level of group nesting http://public.kitware.com/Bug/vie

Re: [CMake] ExternalProject + Patch command

2011-03-22 Thread Johan Björk
MMAND} >    CMAKE_ARGS >        ${Package_std_cmake_args} >        ${Package_additional_cmake_args} >    BUILD_COMMAND >    INSTALL_COMMAND >    ${Package_current_dependencies_effective_line} < > add ${PACKAGE}-GetSourc

Re: [CMake] ExternalProject + Patch command

2011-03-16 Thread Johan Björk
d might be ugly, but it should work. > > > HTH, > David > > > On Wed, Mar 16, 2011 at 11:40 AM, Johan Björk wrote: >> Hi everyone, >> >> >> I'm using an SVN repository and a PATCH command. It seems to work >> fine, but when I'm selecting a

[CMake] ExternalProject + Patch command

2011-03-16 Thread Johan Björk
Hi everyone, I'm using an SVN repository and a PATCH command. It seems to work fine, but when I'm selecting a different build configuration, all steps will be executed again (as expected), but it results in my patch being applied twice. Any ideas how to work around this? My externalProject comm

[CMake] infinite loop when using function overriding

2011-03-09 Thread Johan Björk
Hi everyone, I just ran into an infinite loop in CMake. The cause is that I used function overrides in two locations in my CMake tree. Is the _function_name() syntax documented somewhere? What is the expected behavior? My structure is as follows: proj1 - CMakeLists.txt - common_core proj2 - C

[CMake] Intended use of CMAKE__STANDARD_LIBRARIES

2011-02-23 Thread Johan Björk
Hi everyone, What is the intended use for CMAKE__STANDARD_LIBRARIES? Is there any reason why it differs in behavior from TARGET_LINK_LIBRARIES() ? I am currently using it in my toolchain files to specify platform required libraries and been seeing a few issues, leading me to believe that I might

[CMake] CTestDashboardTargets targets should be captured under PREDEFINED_TARGETS_FOLDER?

2011-02-20 Thread Johan Björk
Hey guys, I am not quite sure if PREDEFINED_TARGETS_FOLDER is supposed to also contain targets created by external modules (CTest). What do you guys think? Right now there seems to be no straightforward way to move the CTestDashboardTargets folder away from the other toplevel targets. Should be tr

Re: [CMake] CTest GIT support does not properly update recursive submodules

2011-02-18 Thread Johan Björk
Hi Brad, On Mon, Feb 7, 2011 at 7:14 PM, Brad King wrote: > Hi Johan, > > Let's move this over to the developers' list. I'm cc-ing the users' list > just for this transition message. Thanks. > > On 02/05/2011 06:50 PM, Johan Björk wrote: > > The fi

[CMake] Global STATIC_LIBRARY_FLAGS_ ?

2011-02-15 Thread Johan Björk
Hi guys, Any plans to add a CMAKE_STATIC_LIBRARY_FLAGS_ ? It seems rather weird that I can set 'global' linking flags as well as compilation flags, but that the static_library step flags are tied to a target. I know this can all be 'hacked' with overriding the add_library() call, but it's not ver

Re: [CMake] upload multiple files

2011-02-11 Thread Johan Björk
Use FILE(GLOB) to get a list of files first. Don't recall if you can specify multiple files with scp, but if not, you can always use a foreach(). -Johan On Fri, Feb 11, 2011 at 11:28 AM, Mihai Sandu wrote: > I want to upload multiple files and I think to do it with scp. > > function (SSHUpload

[CMake] CTest: Getting the PriorRevision with ctest_update?

2011-02-09 Thread Johan Björk
Hi everyone, Does ctest expose a way to get the old (and new I guess) revision of a source tree? /Johan ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

[CMake] CTest GIT support does not properly update recursive submodules

2011-02-05 Thread Johan Björk
Hi everyone, It seems the submodule support in CTest does not iterate into submodules. I'm not sure if the reason is an overlook, or that some older versions of git maybe didn't support the --recursive command. Is the proper way to add a CTEST_GIT_SUBMODULE_UPDATE_COMMAND, or is the following fix

Re: [CMake] New warnings in CMake 2.8.4-rc2

2011-02-05 Thread Johan Björk
Hi Guys, I ran into a very similar issue, It seems that CMAKE_TOOLCHAIN_FILE does not trigger the whatever "mark as used" code in question, so even if it actually *does* use the variable, you still get a warning. Example output: Johan-Bjorks-MacBook-Pro-2:build-morpher phb$ cmake -G Xcode -DCMAKE

Re: [CMake] CMake Error: Error required internal CMake variable not set

2011-02-05 Thread Johan Björk
Hi, Make sure you delete the builddirectory if you change the toolchain file, in the output you sent all the compiler detection/testing results was cached. /johan On Feb 4, 2011 10:27 PM, "Enrique Izaguirre" wrote: > Thanks Alexander, > Seems that it doesn't have much information but here it is:

[CMake] Ability to get cdash submission URL in ctest script?

2011-02-01 Thread Johan Björk
Hi everyone, Is it possible to get (or calculate) the CDash url for a certain submission in a ctest script? /Johan ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please kee

[CMake] [ctest]: Running git clean before building?

2011-02-01 Thread Johan Björk
Hi everyone, Unfortunately our buildsystem is not yet entirely clean, and produces a few files in the source directory. I would like to be able to run git clean before building, anyone have any ideas how to do this? (Without losing cdash update history) To be more precise, the commands I would lik

[CMake] cmake, git and submodules

2011-02-01 Thread Johan Björk
Hey everyone, This will be a really, really vague question. I'm using ctest scripts to run automated dashboards on all my platforms. My git repository contains quite a few submodules, which I believe is related. At some point, ranging from almost instantly to after a few days, files starts getti

Re: [CMake] CMake 2.8.4-rc2 ready for testing!

2011-02-01 Thread Johan Björk
Hey David, What is the intended behavior when upgrading CMake on a OSX Machine? It seems that currently, generated projects will keep a reference to the resolved symlink, ie /Applications/CMake\ VERSION/Contents/bin/..., causing confusing errors such as Johan-Bjorks-MacBook-Pro-2:build-Debug-norm

Re: [CMake] XCode compiler selection

2011-01-28 Thread Johan Björk
Hi Andrew, I do this from a toolchain file (ie, cmake -DCMAKE_TOOLCHAIN_FILE=mytoolchainfile.cmake) SET(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION my.compiler.here.llvmgcc42 CACHE STRING "" FORCE) and it works OK. /Johan On Fri, Jan 28, 2011 at 2:39 PM, Andrew Corrigan wrote: > I use the latest releas

Re: [CMake] CMake 2.8.4-rc1 ready for testing!

2011-01-27 Thread Johan Björk
Not sure if this is a known bug, but installing the symlinks on OSX fails if they already exist. (..and there is no retry button :( ) /Johan On Thu, Jan 13, 2011 at 3:15 PM, David Cole wrote: > I am happy to announce that CMake 2.8.4 has entered the release > candidate stage! You can find the s

Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-24 Thread Johan Björk
o use OUTPUT_STRIP_TRAILING_WHITESPACE) Thanks a ton for the help /Johan On Thu, Jan 13, 2011 at 4:01 PM, Johan Björk wrote: > Attached them with some modifications. > I have one ctest_.cmake for each platform, that all include > ctest_base.cmake that contains a macro that allow me to run all different >

Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-13 Thread Johan Björk
demonstrate this problem? > > > On Thu, Jan 13, 2011 at 9:47 AM, Johan Björk wrote: > > Hi David, > > Not using subprojects. > > CMake/CTest version 2.8.3 and CDash 1.8.2 (upgraded from the previous > > release however) > > /Johan > > > > > &

Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-13 Thread Johan Björk
t; > What versions of CDash and CMake/CTest are you using? > > > On Thu, Jan 13, 2011 at 4:07 AM, Johan Björk wrote: > > Hi everyone, > > I'm having a strange problem with my CDash submissions, and I'm not sure > > what is going on. For every submission I do, I

[CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-13 Thread Johan Björk
Hi everyone, I'm having a strange problem with my CDash submissions, and I'm not sure what is going on. For every submission I do, I get two builds, one that only has a UPDATE stage, and one line that has the rest of the steps. The row with UPDATE has a higher buildID versus the row with configure

Re: [CMake] Saving user settings with xcode generator

2010-12-26 Thread Johan Björk
arget,PBXLibraryTarget, PBXAggregateTarget, On Fri, Dec 17, 2010 at 9:17 AM, Johan Björk wrote: > Hi everyone, > > I haven't been able to find much information on this topic, so any > suggestions would be greatly appreciated. When CMake regenerates the XCode > project files, it correctl

Re: [CMake] CPack 101

2010-12-23 Thread Johan Björk
On Thu, Dec 23, 2010 at 1:43 PM, David Cole wrote: > On Wed, Dec 22, 2010 at 12:57 PM, KC Jones wrote: > >> Feeling really uneasy about putting this out there, but here goes... >> >> I have an app that I am building with cmake (2.8) on both Mac (10.6.40 and >> Linux (Ubuntu 10.04). >> The app de

[CMake] Saving user settings with xcode generator

2010-12-17 Thread Johan Björk
Hi everyone, I haven't been able to find much information on this topic, so any suggestions would be greatly appreciated. When CMake regenerates the XCode project files, it correctly saves the user settings (foo.pbxuser) (contains things like executable arguments, environment variables and the suc

Re: [CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2010-12-14 Thread Johan Björk
Hi Justin, I'm very unsure if this is the correct solution, but it worked for me. I haven't been able to find any good documentation stating how the CMakeCache interacts with other parts of CMake. My assumption is that since CMAKE_C{XX}_FLAGS is supposed to allow the user to set optional compilat

[CMake] CPack: Different directory layout depending on generator

2010-11-29 Thread Johan Björk
Hi everyone, This is basically a repeat question from what was asked in 2008 [1]. Is this possible now? To reiterate, I have a project to which I want to give my users an option to either install as a .deb file, or as a .tgz. in my tgz, I would like a layout such as foo-1.2.3.tgz: foo-1.2.3/READ