Re: [CMake] Cygwin drive paths are killing me

2014-06-17 Thread David Cole via CMake
I am sure you will reply to some of my points, ... Nope. I'm done for now. :-) but I would like to say in advance that I appreciate your different point of view even though I might not always agree with it, and I am sure vice versa. Same here. Our society desperately needs more reasoned

Re: [CMake] Feature suggestion: cmake -E do_nothing -- useful to simulate configuration-specific commands

2014-06-19 Thread David Cole via CMake
cmake -E echo with no further arguments is already pretty darned close to cmake -E do_nothing... For the configuration-specific custom commands, keep your eye on http://public.kitware.com/Bug/view.php?id=9974 and its related bugs. Eventually, I expect it will be possible. Sooner, if you

Re: [CMake] 138% progress when building both all and not-in-all target?

2014-06-20 Thread David Cole via CMake
138% make -j4 all examples_noinst I've seen this too but never noticed a pattern about when it happens. Does it always happen when naming more than one target with make -j? I thought you were not supposed to name more than one target with make -j... (but I don't understand fully exactly

Re: [CMake] Running OSX Bundle via open after creation with CMake/CPack

2014-06-23 Thread David Cole via CMake
Well, there's this information about unknown error -10810: http://www.thexlab.com/faqs/error-10810.html Does your app launch a lot of sub-processes at startup? Are you saying that you *can* run the app from the terminal window, but that you cannot run the app by double-clicking or by using

Re: [CMake] Running OSX Bundle via open after creation with CMake/CPack

2014-06-23 Thread David Cole via CMake
Also, you may find extra hints about what's going wrong in the output of the Console application. (Usually found in /Applications/Utilities) -- see if there's anything in the system.log in there, or poke around and see if it has a crash report related to your app. HTH, David C. -- Powered

Re: [CMake] how to use the cmake functions get_prerequisites and get_filename_component for target dependency installation?

2014-06-24 Thread David Cole via CMake
Answered on stack overflow. Copied/pasted here for mailing list archives: The references that get_prerequisites returns are not absolute full path references, and they are also not resolve-able to absolute references via a simple get_filename_component call. (On Mac, they may contain

Re: [CMake] CMake Visual Studio Configuration Single

2014-06-30 Thread David Cole via CMake
You can set CMAKE_CONFIGURATION_TYPES to your own list of configurations (including limiting it to a single configuration) as long as you set it *before* the project command in your CMakeLists.txt file. This technique works with the Visual Studio and Xcode generators. See the following bug

Re: [CMake] [Cdash] Show results from the bullseye coverage in CDash

2014-07-15 Thread David Cole via CMake
There is an option (which should be on by default) in the Miscellaneous section of the project settings, which is called: Show coverage code. Thanks, this solves the problem. The option wasn't checked. The option should be *OFF* by default. If the intent is not to show your code (because

Re: [CMake] Typo in cmake-packages(7)

2014-07-28 Thread David Cole via CMake
In fact, it's not just a documentation typo.. It occurs three times in cmake 'next' and 'master': $ git grep COPY_ONLY Help/manual/cmake-packages.7.rst:COPY_ONLY Modules/Qt4Macros.cmake: configure_file(${infile} ${out_depends} COPY_ONLY) Source/kwsys/CMakeLists.txt:

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-07-30 Thread David Cole via CMake
The problem as reported, is that you're trying to use add_custom_target with a target named test -- but you can't do that with CMake because test is a built-in well-known predefined target name. Other so-called well-known target names include all install package and package_source. And there

Re: [CMake] Ctest and custom measurements

2014-07-30 Thread David Cole via CMake
Unfortunately, I always have to resort to source code analysis to figure this stuff out... NamedMeasurement is only mentioned in the file Source/CTest/cmCTestTestHandler.cxx : http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/CTest/cmCTestTestHandler.cxx;hb=refs/heads/master (search the

Re: [CMake] Ctest and custom measurements

2014-07-30 Thread David Cole via CMake
By the way, this should be better documented in the cmake / ctest documentation. And we should be allowed to add measurements like these in the log: Log message - date - DartMeasurement ...0.1/DartMeasurement I agree on both points. I would go even farther and say what you were trying to do

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-07-30 Thread David Cole via CMake
To the best of my knowledge, CMake does not do anything with .targets files. It doesn't know what they are, and it doesn't generate any of them... What is the function of the .targets files in your non-CMake build system? Perhaps somebody else who is more familiar with .targets files is

Re: [CMake] setup enviroment for all tests

2014-07-31 Thread David Cole via CMake
CMake itself does this to include a file at ctest time that applies to *all* tests: set_directory_properties(PROPERTIES TEST_INCLUDE_FILE ${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake) It results in this line being generated in CTestTestfile.cmake at the very top of the file:

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-07-31 Thread David Cole via CMake
So from the example you've sent, it seems like the stuff in your targets file is just a bunch of custom commands that you'd need to run. There are plenty of examples of projects using add_custom_command and add_custom_target out there, and if you have specific questions about how those

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-08-01 Thread David Cole via CMake
First try this: -Original Message- From: Ravi Raman ravi.ra...@xoriant.com To: David Cole dlrd...@aol.com Cc: cmake cmake@cmake.org Sent: Fri, Aug 1, 2014 7:49 am Subject: RE: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake Hi David,   We

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-08-01 Thread David Cole via CMake
Sorry about the premature send on that last email... First try this: add_custom_command( TARGET ${TARGETNAME} POST_BUILD COMMAND ${TBIN}/VerCheck.exe \$(TargetPath)\ COMMAND copy \$(TargetPath)\ \$(TargetPath).vercheck_dummy_target\ COMMENT Checking

Re: [CMake] Defining a function in a macro

2014-08-03 Thread David Cole via CMake
Ouch... my brain hurts... Another idea would be to write the generated functions out to a file, and then, after all functions are written to the file, include the file. Might result in something you can actually look at in an editor (and make sense of) without your brain hurting too much,

Re: [CMake] Combining several static libraries into a single static library

2014-08-06 Thread David Cole via CMake
Seems like your best bet using CMake would be to use OBJECT libraries for your Project01 through Project99 -- and then use STATIC libraries for your ReleaseLibraries, which combine the objects of the appropriate project libraries... You may need to use dummy source files for the static libs,

Re: [CMake] Windows Path Issues

2014-08-06 Thread David Cole via CMake
What's in your toolchain file? Is the file at C:/software/propgcc/bin/propeller-elf-gcc named propeller-elf-gcc.exe? Should there be a .exe in the compiler file name? What GNU make are you using? (The primary ones well tested for use with CMake on Windows are MinGW and MSYS...) Can you

Re: [CMake] cmake version/feature detection

2014-08-07 Thread David Cole via CMake
Specifically, for the OBJECT library feature, I figured out what version of CMake introduced it like this: gitk -- Tests/ObjectLibrary/CMakeLists.txt leads to finding this first commit of that file: 69d3d183 [1] gitk 69d3d183 leads to b87d7a60 [2] (4 parent commits up) which introduced

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-08-07 Thread David Cole via CMake
If it works, do it. Custom commands are the easiest way to do MIDL stuff driven by CMake if you need things to work with any generator. Alternatively, if you are guaranteed to be using Visual Studio generators, you can try just adding the idl file as a source file of the library or executable

Re: [CMake] Why there is not MSI installer for CMake?

2014-08-11 Thread David Cole via CMake
If silently installing is your objective, you may do so with an NSIS built *.exe installer. See this old blog post for details: http://www.kitware.com/blog/home/post/186 HTH, David C. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

2014-08-12 Thread David Cole via CMake
From http://www.cmake.org/cmake/help/v3.0/command/add_custom_command.html : If COMMAND specifies an executable target (created by ADD_EXECUTABLE) it will automatically be replaced by the location of the executable created at build time. Additionally a target-level dependency will be added so that

Re: [CMake] how to really change CMake linker

2014-08-12 Thread David Cole via CMake
Unless it is overridden somewhere else along the way, the following is used to create the link command line for a C++ executable: (found in Modules/CMakeCXXInformation.cmake) if(NOT CMAKE_CXX_LINK_EXECUTABLE) set(CMAKE_CXX_LINK_EXECUTABLE CMAKE_CXX_COMPILER FLAGS

Re: [CMake] Removing the original CDash admin

2014-08-12 Thread David Cole via CMake
You can always brute force it and go in and remove that user from the database table with MySQL or phpMyAdmin... HTH, David C. -- 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

Re: [CMake] Removing the original CDash admin

2014-08-12 Thread David Cole via CMake
I think you should be ok... just make another user admin before you do it, of course. You can always put the user back by brute force, too, if you discover you need it for something. I'm not aware of anything special about the user besides its admin-ness. Good luck, and let us know if you

Re: [CMake] ExternalProject and install dir

2014-08-13 Thread David Cole via CMake
If x is a CMake-driven project, you'll also need to explicitly set CMAKE_INSTALL_PREFIX when configuring. If not, there's likely a --prefix arg for configuring... One of those also has to be set to install to a non-default location. The PREFIX arg for ExternalProject is only used to organize

Re: [CMake] ExternalProject and install dir

2014-08-13 Thread David Cole via CMake
See, for example: https://github.com/OpenChemistry/openchemistry/blob/master/CMakeLists.txt#L24 A common CMAKE_INSTALL_PREFIX is used for all OpenChemistry ExternalProject builds that are driven by CMake. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] ctest and tracks

2014-08-14 Thread David Cole via CMake
--track is the same as the TRACK argument to the ctest_start scripting command. http://www.cmake.org/cmake/help/v3.0/command/ctest_start.html It will send a dashboard to the named section of a CDash project page, but it will NOT create it. You have to create the track (called a group in

Re: [CMake] Regarding enviroment variables directly used in executables

2014-08-14 Thread David Cole via CMake
A SET(ENV{TARGET2_EXE_PATH} C:/Test/Target2) call in a CMakeLists file only has an effect while CMake is running. If you need the env var set for your batch file to run, you should pass the value for it down in as an arg to the batch file, and then do: set TARGET2_EXE_PATH=%~1 (no quotes

Re: [CMake] Generator-independent incremental CMake run

2014-08-14 Thread David Cole via CMake
We have a fairly large project with about 400 targets. $ cmake %builddir% - takes about 5 minutes for a No-op $ cmake --build %builddir% --target ZERO_CHECK - takes 20 seconds for No-op This is the problem. cmake %builddir% should be as fast as possible for a no-op... If it's not, it

Re: [CMake] Viewing the full build log from the CDash Dashboard

2014-08-15 Thread David Cole via CMake
Apologies if this is a stupid question with an obvious answer staring me in the face but... Nope, it's not. The dashboard does not have the full build log because ctest does not send the full output from the build step. Only the contents of Build.xml are sent when a build is submitted to

Re: [CMake] Possible bug in environment variable expansion?

2014-08-15 Thread David Cole via CMake
There are no types for environment variables. There are types for values stored in the registry. See this article: http://support.microsoft.com/kb/256986 and note the descriptions of REG_SZ and REG_EXPAND_SZ. The fact that you can do it in RapidEE does not mean it's a built-in feature of

Re: [CMake] Possible bug in environment variable expansion?

2014-08-15 Thread David Cole via CMake
OK, I partially take it back, you can set an environment variable that references other environment variables even through the Windows UI... But it's a little hard to grasp, because you see it when you're editing the value, but then when you click OK, the view shows the resolved value in the

Re: [CMake] Collecting libraries for NSIS installer

2014-08-19 Thread David Cole via CMake
Have you considered GetPrerequisites.cmake or BundleUtilities.cmake? http://www.cmake.org/cmake/help/v3.0/module/GetPrerequisites.html http://www.cmake.org/cmake/help/v3.0/module/BundleUtilities.html It sounds like exactly what you're asking for. HTH, David C. -- Powered by

Re: [CMake] Collecting libraries for NSIS installer

2014-08-19 Thread David Cole via CMake
Definitely getting warmer! It looks like that GetPrerequistes only works on an existing target so I'm thinking I would have to set this up as a super cmake project after the main project is already built? Right, or as a script that runs at install time. It requires an executable file to

Re: [CMake] Collecting libraries for NSIS installer

2014-08-20 Thread David Cole via CMake
Yes, the more I look at this the more I realize it's not going to work. The script method is going to install the required libraries, in my case on win32 no one is going to run make install it's instead going to be make package. But make package typically runs make install under the hood...

Re: [CMake] Behaviour of FindPythonInterp appears suboptimal

2014-08-22 Thread David Cole via CMake
I thought using FindPythonInterp would be more portable than simply invoking python directly (i.e. using $PYTHON_EXECUTABLE). In case you want the newest version of any Python major, as in your case, try find_package(PythonInterp 2 REQUIRED). But you are right, this would also successfully

Re: [CMake] add_custom_command and CONFIG-dependent output

2014-08-22 Thread David Cole via CMake
Use ${CMAKE_CFG_INTDIR} in the context of add_custom_command OUTPUT, not $CONFIG. You may also use that in the COMMAND arguments. See documentation here: http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_CFG_INTDIR.html The $ generator expressions are relatively new, and do not work in all

Re: [CMake] add_custom_command and CONFIG-dependent output

2014-08-25 Thread David Cole via CMake
Ah, thanks... Though, I think there may be a general disconnect here: that is, it seems likely that one would want to construct output with a pattern composed from generator expressions. ... While I gather from your comment that something like this might be possible in the future, is there

Re: [CMake] File concatenation in cmake add_custom_command()

2014-08-25 Thread David Cole via CMake
First: thanks for your questions to the CMake list. However, when you send an email to the list, please just ask the question -- that is, please do *not* ask me by name. I know I've answered a few questions for you in the last few weeks, but I am not the only one here, and asking me by name

Re: [CMake] Merge VS: Use full path to sources to allow deeper trees with VS = 10 fix to release

2014-09-01 Thread David Cole via CMake
No need to add a bug for this... it's fixed already in 'master' -- that means it will automatically appear in the next major release of CMake. The current release is 3.0.1, and any critical bug fixes going into CMake for a patch release will appear in 3.0.2, 3.0.3, and so on. (This particular

Re: [CMake] cmake gives poor warning on missing double-quote?

2014-09-02 Thread David Cole via CMake
Yes, but the warning text could certainly mention a missing closing quote as a possible cause, and it could also avoid repeating itself infinitely... The first occurence should be enough to pinpoint the problem upon investigation. Presumably, Dan, this was followed by an error of some sort as

Re: [CMake] [Cdash] Show results from the bullseye coverage in CDash

2014-09-04 Thread David Cole via CMake
Sometimes an unfortunate network interruption (even a very brief one, at just the wrong time...) can cause my bullseye dashboards to report 0% coverage. I use the license manager for Bullseye, so the build machine needs network access to the license manager machine when turning coverage on and off

Re: [CMake] [Cdash] Show results from the bullseye coverage in CDash

2014-09-05 Thread David Cole via CMake
When the coverage shows 0% is there any indication that the ctest_submit for the coverage step failed? (i.e. do you log the output of ctest, and does it show anything about failing to submit?) That's another type of intermittent network blip that I see, where there's a successful local build,

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread David Cole via CMake
No, they do not behave differently. -j and --parallel are aliases for each other, using either one goes through exactly the same command line argument processing code... HTH, David C. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Useful extensions for CMake blog post

2014-09-05 Thread David Cole via CMake
Wow. -- 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:

Re: [CMake] ctest/cdash question

2014-09-05 Thread David Cole via CMake
Not off topic at all. Try start, test, submit, test, submit. Should work. Start is the thing that writes a new time stamp tag, and all that follows should be associated with the most recent start's tag. HTH, David C. On Sep 5, 2014, at 5:07 PM, Biddiscombe, John A. biddi...@cscs.ch wrote:

Re: [CMake] ctest/cdash question

2014-09-06 Thread David Cole via CMake
You're welcome. One caveat to mention with this sort of submit pattern (submitting multiple build or test chunks to a single row on the CDash dashboard) is that it messes up the incremental +n/-n compare-to-previous-submission numbers of build warnings and errors, and number of test passes

Re: [CMake] Ctest building with Multiple Processors

2014-09-08 Thread David Cole via CMake
I wrote this blog post a couple years ago claiming one way to run a dashboard on windows: http://cmake.blogspot.com/2012/09/one-way-to-run-dashboard-on-windows.html As with all such things, there are, of course, multiple ways to solve the problem. At the time I wrote it, I trusted Visual Studio

Re: [CMake] getting the BuildID from cdash/ctest after a submit

2014-09-08 Thread David Cole via CMake
No, but if you go to the Tests Query page, and set up a filter, you can construct a URL for showing the failed tests with a given build name and site name for the date in question... Almost as good. Start here: http://cdash.cscs.ch/queryTests.php?project=HPXdate=2014-09-08 (found from the

Re: [CMake] Request for added script intelligence

2014-09-08 Thread David Cole via CMake
I don't think that's a good idea. The Debug libraries are supposed to be non-redistributable. (At least that used to be true... is it still true?) To Debug a VS-built project, you have to run it on a machine with VS installed, so there's not a compelling need to install the debug libraries

Re: [CMake] Request for added script intelligence

2014-09-09 Thread David Cole via CMake
Let's see if anybody else chimes in with an opinion. I've already given mine, and I don't think there's a good argument for making installing the debug runtime libraries any easier than it already is. You can certainly write a wrapper script around the existing CMake

Re: [CMake] Incorrect object file name on cmake compilation

2014-09-11 Thread David Cole via CMake
I think (Ravi, correct me if I'm wrong) that they're transitioning to CMake from a previously purely Visual Studio build system, and they're writing some tools to validate that the builds are ending up the same. So it's not really a problem for anybody -- I think he was just looking for an

Re: [CMake] FW: Parallel GNU make issue

2014-09-11 Thread David Cole via CMake
Is there a significant amount of output from make? What does make do if it's running low on RAM? ctest may be holding onto too much memory trying to process the output if it's very large... Just a thought -- worth a look, though. D -- Powered by www.kitware.com Please keep messages

Re: [CMake] Spurious errors with Visual Studio generator

2014-09-15 Thread David Cole via CMake
What happens when you run VS manually as the buildbot user? Any warnings or errors? -- 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

Re: [CMake] ExternalProject_Add always try to connect to SVN server

2014-09-15 Thread David Cole via CMake
If you are using SVN_REVISION with a specific revision number like that, you can do: UPDATE_COMMAND because there is never any need to update after the initial checkout at that revision. If you then later change to another revision, the parameters to the svn checkout (dowload) step

Re: [CMake] Get Visual Studio target Arch

2014-09-16 Thread David Cole via CMake
I still cant really make some arch specific ifdefs in my cmake scripts using this approach. That's the point of a multi-configuration, multi-architecture Visual Studio solution: you defer choosing the configuration *and* the architecture until build time. No CMake time decisions are possible

Re: [CMake] [Cdash] Show results from the bullseye coverage in CDash

2014-09-17 Thread David Cole via CMake
No, the submit seems fine, but the value in the Coverage.xml looks like PercentCoverage0.00/PercentCoverage ElapsedMinutes0.00/ElapsedMinutes Which can't be. However, the *-covbr.* and *-covsrc.* are generated with valid values. Sounds like a bug in ctest then. There must be something

Re: [CMake] Code Coverage Bullseye

2014-09-17 Thread David Cole via CMake
I am trying to configure the code coverage using the ctest script. I took help from : http://www.cmake.org/Wiki/CTest/Coverage That wiki page was mostly written in 2007 and 2009. You may want to refer to something more recent than that, and something that's proven to work, like an existing

Re: [CMake] Code Coverage Bullseye

2014-09-18 Thread David Cole via CMake
As I said in my previous response, I don't know anybody who is using Xcode on the Mac, and also successfully producing a gcov coverage build. If I were you, I would: (1) use gcov on a Linux build of your software for coverage measurement, using the Unix Makefiles generator and the right gcov

Re: [CMake] Code Coverage Bullseye

2014-09-18 Thread David Cole via CMake
My apologies. I take it back -- gcov apparently does work on the Mac nowadays. It is a ctest issue, then, and when using Xcode, ctest will need to look in some additional locations for the coverage data files. The source code is available -- patches welcome. :-) D -- Powered by

Re: [CMake] I broke get_preresiquites

2014-09-24 Thread David Cole via CMake
If you send some code, maybe somebody can spot something wrong with the code... On Wed, Sep 24, 2014 at 9:57 AM, Richard Shaw hobbes1...@gmail.com wrote: Ok, I have no idea what's going on. I'm using configure_file to put the get_preresiquites cmake script in the binary dir... It's

Re: [CMake] ExternalProject_Add with custom build/make command for Boost

2014-09-25 Thread David Cole via CMake
INSTALL_COMMAND should work. (Assuming you're doing ./b2 install as the BUILD_COMMAND...?) Check out how the open chemistry project builds boost as an ExternalProject as a reference point: https://github.com/OpenChemistry/openchemistry/blob/master/cmake/External_boost.cmake HTH, David C. On

Re: [CMake] cmake 3.0.0 generating VS sln file default target machine type x86 (UNCLASSIFIED)

2014-09-29 Thread David Cole via CMake
Also, the default in cmake-gui is to prompt the user with the same generator you used last time as the default value for 2nd and subsequent runs of cmake-gui on any given machine by a given user... So if you choose Win64 once in cmake-gui, and you always use cmake-gui... you'll get it as the

Re: [CMake] ninja generator and add_custom_target bug

2014-10-03 Thread David Cole via CMake
Or, if echo is the thing that's supposed to see the \n, escape the backslash and use \\n in CMake so CMake puts the literal \n in the generated file instead of a newline. HTH, D On Fri, Oct 3, 2014 at 5:27 AM, Petr Kmoch petr.km...@gmail.com wrote: Hi Russell, you might want to add VERBATIM

Re: [CMake] Main program not getting rebuilt when library changes.

2014-10-03 Thread David Cole via CMake
Switch the order of your add_subdirectory calls. If your main depends on your library, then your add_subdirectory for the library should be first, and then the one for your main which depends on the first one. HTH, David C. On Fri, Oct 3, 2014 at 3:55 AM, Jakub Zakrzewski jzakrzew...@e2e.ch

Re: [CMake] file(UPLOAD what does it support?

2014-10-09 Thread David Cole via CMake
The documentation might be a little sparse, but file UPLOAD uses curl in its implementation. So whatever protocols curl supports for uploading to a URL should be supported by file UPLOAD, too. I know for a fact it works with http, https and ftp. Is there some other protocol you are trying to use

Re: [CMake] CTest Custom warning exception in CTestCustom.cmake.in

2014-10-11 Thread David Cole via CMake
Does your dashboard script call ctest_read_custom_files after ctest_configure? You should do that, as the CMake and VTK (and other) dashboards do:

Re: [CMake] file(UPLOAD what does it support?

2014-10-22 Thread David Cole via CMake
What version of CMake are you using? And on what platform? And did you build it yourself, or are you using pre-built binaries from somewhere? On Wed, Oct 22, 2014 at 1:56 PM, jmerkow jmer...@gmail.com wrote: Sorry for the delayed response. Im trying to use sftp. To test it out, I am doing

[CMake] The new cmake.org web site

2014-10-23 Thread David Cole via CMake
The new CMake web site looks fantastic! Even on my phone... Kudos to everybody involved in making it look pretty after all these years of, well, ahem, looking slightly less pretty... However, on this page: http://www.cmake.org/developer-resources/ The Dashboard icon is a broken link. 404.

Re: [CMake] App Crash on Any Action in Context Menu

2014-10-25 Thread David Cole via CMake
Not sure there's a CMake question in here... Do you have a CMake question, or did you mean to send these emails to another mailing list? Confused, David C. On Sat, Oct 25, 2014 at 2:33 PM, Colony.Three colony.th...@protonmail.ch wrote: Original Message Subject: App Crash

Re: [CMake] [ANNOUNCE] CMake 3.1.0-rc1 now ready for testing!

2014-10-29 Thread David Cole via CMake
I think your question about CXX_STANDARD is answered in the CXX_STANDARD docs: http://www.cmake.org/cmake/help/v3.1/prop_tgt/CXX_STANDARD.html If you MUST have it, you can set this property to ON: http://www.cmake.org/cmake/help/v3.1/prop_tgt/CXX_STANDARD_REQUIRED.html (Although I've not used it

Re: [CMake] Extracting the configure and generate command

2014-11-02 Thread David Cole via CMake
The Show My Changes menu item in the Tools menu gives you the -D command line options for the things you've touched in the cmake-gui program... HTH, David C. On Sat, Nov 1, 2014 at 12:16 PM, Saad Khattak saadrus...@gmail.com wrote: Once I have configured and generated a CMake project, is

Re: [CMake] Boost library directory not found unless I explicitly set BOOST_LIBRARYDIR ?

2014-11-14 Thread David Cole via CMake
You will find a list of CMake Module Maintainers here: http://www.cmake.org/Wiki/CMake:Module_Maintainers If a module is not listed, it is not currently claimed. (Meaning either nobody is currently maintaining it, or everybody is pitching in a little bit as things important to them arise.)

Re: [CMake] Generic XML output file of project heirarchy

2014-11-18 Thread David Cole via CMake
This sounds pretty similar to the recent mailing list discussions about the json file listing targets and properties of them at generate time. What would be the point? Just to look at the file as a human to see what's in it? Or would you use it for something else...? On Tue, Nov 18, 2014 at 9:25

Re: [CMake] How to set path to library header files?

2014-12-02 Thread David Cole via CMake
This chunk: target_include_directories( mylib PUBLIC # Headers used from source/build location: $BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} # Headers used from the installed location: $INSTALL_INTERFACE:include ) uses CMAKE_CURRENT_SOURCE_DIR, which already ends with /mylib.

Re: [CMake] Get native build command with CMake 3+

2014-12-05 Thread David Cole via CMake
Try: cmake --build . --target examples (where . represents the current working directory, and assumes you're in the top level build tree...) On Fri, Dec 5, 2014 at 5:46 AM, Petr Kmoch petr.km...@gmail.com wrote: Hi all. I'm converting a small Makefile-based project to CMake. The project is

Re: [CMake] Get native build command with CMake 3+

2014-12-05 Thread David Cole via CMake
No, I meant exactly what I said. --target takes a CMake target name. HTH, D On Fri, Dec 5, 2014 at 9:23 AM, Petr Kmoch petr.km...@gmail.com wrote: I assume you actually meant 'cmake --build . --target example_dir', the name of the directory. 'examples' is the name of the custom target; if

Re: [CMake] Help with Policy CMP0026 (disallow LOCATION target property)

2014-12-23 Thread David Cole via CMake
Paul, Are you sure there's a problem using TARGET_FILE in your original context? It seems to me it should work... From http://www.cmake.org/cmake/help/v3.1/manual/cmake-generator-expressions.7.html : $TARGET_FILE:tgt Full path to main file (.exe, .so.1.2, .a) where tgt is the name of a

Re: [CMake] CTest + Catch Framework

2015-01-26 Thread David Cole via CMake
Can you run a command that executes one test case at a time, or do you have to run all 50 when you execute the tests for a library? ctest just runs whatever you give it with add_test -- if you want to filter a collection of unit tests to run only a single unit test, then the unit test framework

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread David Cole via CMake
If you open the Tools Options dialog in Visual Studio, and navigate to the Projects and Solutions Build and Run tab, what is your maximum number of parallel project builds value? For maximum parallel build capability, it should be set to the same as the number of cores you have. D On Tue,

Re: [CMake] How to build a target on install (only)?

2015-02-16 Thread David Cole via CMake
Ah ha! Back to the simpler approach with install(CODE! Good idea, Nils. Then you just need a stamp/sentinel file associated with running the operation, and you can check it against your input. For your comment line, you could use cmake -E echo to spit out a comment before running the dSYM

Re: [CMake] How to build a target on install (only)?

2015-02-16 Thread David Cole via CMake
The other way you could approach this, but which would not be as simple would be to invent *your own* custom install target (install_with_dSYM, or whatever name makes sense to you). Then you could have that target depend on all the custom targets that build the dSYM files. When you build this

Re: [CMake] CTest + Catch Framework

2015-01-28 Thread David Cole via CMake
I have two more suggestions for whoever takes on this work. One: add a new CMake command add_unit_test_container (or add_unit_tester or a better name ... ?) which names the DLL or executable file containing the unit tests. Give it properties to indicate how to extract a list of tests from it

Re: [CMake] How can I make CTest not do dart-related stuff?

2015-01-30 Thread David Cole via CMake
Do you have a CTestConfig.cmake file in your source tree? If you do, then ctest will load that instead of looking for the DartConfiguration.tcl file in your build tree... Even if it's empty because you don't submit to a CDash server, the presence of CTestConfig.cmake in your top level source tree

Re: [CMake] problem with my.cdash.org

2015-02-01 Thread David Cole via CMake
This output: On Sun, Feb 1, 2015 at 10:25 AM, Robert Ramey ra...@rrsd.com wrote: Julien Jomier wrote It seems to be here: http://my.cdash.org/index.php?project=Safe+Numericsdate=2015-01-31 Note that CDash is processing the XML files asynchronously therefore it might take some time for the

Re: [CMake] problem with my.cdash.org

2015-02-01 Thread David Cole via CMake
This output: Submit files (using http) Using HTTP submit method Drop site:http://my.cdash.org/submit.php?project=Safe+Numerics Uploaded: /Users/robertramey/WorkingProjects/safe_numerics_xcode/Testing/20150201-0209/Build.xml make: ***

Re: [CMake] CTest + Catch Framework

2015-01-27 Thread David Cole via CMake
It's only a chicken and egg problem if you constrain yourself artificially. When you define a new unit test source file, there are two things you need to do: (1) add it to its executable (2) write an add_test line that invokes that specific unit test You could possibly encapsulate those actions

Re: [CMake] CTest + Catch Framework

2015-01-27 Thread David Cole via CMake
The best thing to do would be to make CTest aware of unit test frameworks like this, and have it be automatic. Support for cppunit, gtest and Catch (and any other popular ones) would all be appreciated by many, I'm sure. Got time to dig into ctest a little bit? D On Tue, Jan 27, 2015 at

Re: [CMake] CTest + Catch Framework

2015-01-28 Thread David Cole via CMake
I'm sure it's possible, as long as CDash can handle the flood of test results. CTest is responsible for taking add_test (or whatever the new CMake command will be called) calls and transforming them into Test.xml files for sending to CDash. As long as you can read the output of running the unit

Re: [CMake] Bug in SLN generation

2015-01-06 Thread David Cole via CMake
Two ways to do this occur to me: (1) wrap cmake with a two-line script that your project developers use: @call cmake -G Visual Studio 12 2013 @call post-cmake.cmd (2) do a file(WRITE ...) unconditionally somewhere in your CMakeLists.txt file, and then introduce a custom command that

Re: [CMake] Wrap CACHE variables

2015-01-10 Thread David Cole via CMake
Have you considered having a superbuild and using ExternalProject_Add to build the dependencies? http://www.cmake.org/cmake/help/v3.1/module/ExternalProject.html Excellent examples of using ExternalProject for a superbuild live in the OpenChemistry and Slicer projects.

Re: [CMake] Bug in SLN generation

2015-01-06 Thread David Cole via CMake
No, with the wrapper script technique, you'd have to train all your developers to run the wrapper script whenever any CMake stuff changes... On Tue, Jan 6, 2015 at 8:39 AM, Petr Kmoch petr.km...@gmail.com wrote: On Tue, Jan 6, 2015 at 2:29 PM, David Cole dlrd...@aol.com wrote: Two ways to do

Re: [CMake] How to build a target on install (only)?

2015-02-15 Thread David Cole via CMake
The easiest thing is probably to use the install(SCRIPT or install(CODE signature of the install command rather than having a build time custom command. HTH, David C. On Sun, Feb 15, 2015 at 9:55 AM, Paul Smith p...@mad-scientist.net wrote: In my Mac OSX builds I want to run dsymutil to

Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-07 Thread David Cole via CMake
The The requested operation requires elevation. message indicates some sort of permissions problem (admin privileges...) Did you run VS and/or CMake as an admin one time, and then not as an admin a second time...? It should work with either all-non-admin runs or all-admin runs, but you probably

Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-07 Thread David Cole via CMake
What do you mean when you say I set CMAKE_ROOT to a directory ?? That should not be necessary, no matter how you're running cmake... Is that an ENV var or a CMake variable you're setting somewhere? D On Wed, Jan 7, 2015 at 1:18 PM, david.k...@engilitycorp.com wrote: A small correction: the

Re: [CMake] unit tests include in all but not install

2015-03-21 Thread David Cole via CMake
In general, I want all my unit tests to be built when I do a make all, but I really don’t care if they are up to date for a make install. Are you sure you don't care? If your unit tests are out-of-date with respect to what you are installing, and you have not run them against what you are

Re: [CMake] Multi-platform visual studio projects

2015-03-08 Thread David Cole via CMake
There is no technical reason... But it seems to me there is a strong bias toward single-architecture build trees in the minds of non-VS/non-XCode developers. There is rampant code like this in the world: if(CMAKE_SIZEOF_VOID_P EQUAL 8) # do 64-bit stuff at CMake time else() # do 32-bit stuff

  1   2   3   4   >