Re: [CMake] install(TARGETS) does not work with configuration-specific destinations

2015-06-09 Thread David Cole via CMake
Updating the documentation for this would help... Do you have time to propose a patch which updates the wording of the documentation to stress the importance of parameter ordering? On Tue, Jun 9, 2015 at 4:31 AM, Alessio wrote: > Ah! Specifying the CONFIGURATIONS argument *before* the DESTINATI

Re: [CMake] getting a build parameter from a file

2015-06-09 Thread David Cole via CMake
Why not just use configure_file to write ${metals} into the file... configure_file only actually touches/writes-to/updates the file if the contents are different... Then you can just depend on that file and you don't need a separate timestamp file. HTH, David C. On Tue, Jun 9, 2015 at 1:05 AM,

Re: [CMake] [ANNOUNCE] CMake 3.3.0-rc1 is now ready!

2015-06-05 Thread David Cole via CMake
On Fri, Jun 5, 2015 at 9:03 AM, Robert Maynard wrote: ... > > * The "Visual Studio 7" generator (.NET 2002) is now deprecated and > will be removed in a future version of CMake. > > * The "Visual Studio 6" generator is now deprecated and will be > removed in a future version of CMake. > ... A

Re: [CMake] How URL_MD5 is computed in ExternalProject_Add?

2015-05-19 Thread David Cole via CMake
The point of specifying URL_MD5 in ExternalProject_Add is so that it can check to see if it downloaded the file properly. If you don't tell it what the md5 sum should be, then what good is computing it after downloading it? The point is to double check that it downloaded correctly and as expected.

Re: [CMake] Switching configuration to icc

2015-05-10 Thread David Cole via CMake
And if icc is not in the path, or in a standard location that CMake looks in, you should specify the full path. i.e. export CC=/usr/bin/icc ... On Sunday, May 10, 2015, J. Caleb Wherry wrote: > Just to be explicit, CC and CXX are shell variables that CMake reads. So > invoke like below to make

Re: [CMake] ctest not sending xlm-files to dashboard

2015-05-10 Thread David Cole via CMake
You've answered your own question... Do it all with a single command, and the submit step will have the same tag as all the other steps. On Sun, May 10, 2015 at 12:37 AM, Ilias Miroslav wrote: > Hi again, > > I upgraded ctest to version 3.2.2, the problem remains. It seems the problem > is relat

Re: [CMake] ExternalProject_Add // git shallow clone

2015-05-05 Thread David Cole via CMake
Of course. It would be useful. Perhaps you could propose a patch to add it? On Tuesday, May 5, 2015, Sergei Nikulov wrote: > Hello David, > > Thank you for answer. > > It could be useful feature for ExternalProject.cmake > What do your think? > > > 2015-05-05

Re: [CMake] ExternalProject_Add // git shallow clone

2015-05-05 Thread David Cole via CMake
It's possible to do anything you want if you provide your own custom DOWNLOAD_COMMAND. I'm not aware of any depth options exposed via ExternalProject_Add, though. HTH, David C. > On May 5, 2015, at 5:19 AM, Sergei Nikulov wrote: > > Hello All, > > Is it possible to provide git depth option

Re: [CMake] ExternalProject_Add // git shallow clone

2015-05-05 Thread David Cole via CMake
It's possible to do anything you want if you provide your own custom DOWNLOAD_COMMAND. I'm not aware of any depth options exposed via ExternalProject_Add, though. HTH, David > On May 5, 2015, at 5:19 AM, Sergei Nikulov wrote: > > Hello All, > > Is it possible to provide git depth option fo

Re: [CMake] What's the best practice for a large project using multiple versions of package dependencies

2015-05-03 Thread David Cole via CMake
The best practice is obviously not to have multiple version of the same sub-project within your large project... And if you really really have to, then ExternalProject is definitely your friend, because you should completely and totally isolate the two different versions of the sub-project, which

Re: [CMake] Chicken and egg problem with cmake_minimum_required(...), project(...), and CMAKE_SYSTEM_NAME

2015-05-01 Thread David Cole via CMake
I would strongly recommend NOT having different minimum versions for Linux vs. everywhere else. What happens when developers "everywhere else" use newer CMake features? They CAN'T unless they conditionalize the use based on Linux or not... Choose the highest minimum you need, and use it everywhe

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-05-01 Thread David Cole via CMake
You could also "encourage" the use of the FC env var by adding this to the very top of your CMakeLists file, before the project command: if(NOT "$ENV{FC}" MATCHES "ifort") message(FATAL_ERROR "please set the environment variable FC to the full path to ifort before running CMake") endif()

Re: [CMake] NMake VC13 Release generates Debug

2015-04-30 Thread David Cole via CMake
Wow! How do you even type an en dash on the command line? Must be copy/paste... ;-) Great catch, Nils. I just assumed it was the way it was rendered in email. On Thursday, April 30, 2015, Lutz Malchus wrote: > unbelievable ... > > T

Re: [CMake] How to work around permission deficiencies of file(GENERATE...)? (was cmp0026, file(GENERATE...), and configure_file)

2015-04-29 Thread David Cole via CMake
It seems like a reasonable feature request to me to ask for file(GENERATE to support a similar or sub-set of permissions related options which other file subcommands already provide: [FILE_PERMISSIONS ...] [NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS] Doesn't seem like it should be tha

Re: [CMake] find_package

2015-04-24 Thread David Cole via CMake
e path: /usr/include > > Detected version of Boost is too old. Requested version was 1.57 (or > newer). > Call Stack (most recent call first): > CMakeLists.txt:123 (FIND_PACKAGE) > > > -- Configuring incomplete, errors occurred! > > > After the script complet

Re: [CMake] find_package

2015-04-24 Thread David Cole via CMake
How do you do step 3) -- build boost? Unless the build is done and installed and ready to find before the end of step 3, there is still nothing (yet) there for the find_package in step 4 to find... David C. On Fri, Apr 24, 2015 at 9:36 AM, matzeNOTAVAILABLE . wrote: > Hi, > i am struggling so

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread David Cole via CMake
> Cédric > > > ----- Mail original - >> De: "David Cole via CMake" >> À: "typ1232" >> Cc: cmake@cmake.org >> Envoyé: Jeudi 23 Avril 2015 13:51:06 >> Objet: Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add >> &

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread David Cole via CMake
cuments/exemples/cmake/external_project/eigen/build/eigen/src' > -- extracting... [tar xfz] > -- extracting... [analysis] > -- extracting... [rename] > -- extracting... [clean up] > -- extracting... done > cd /home/cdoucet/Documents/exemples/cmake/external_project/eigen

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread David Cole via CMake
Hmm. I am seeing the same behavior you are, even with the older CMake 2.8.12.2 -- the update step does run, but steps after that, which are supposed to depend on update, are not re-running. I think your intuitive expectation is correct, and that configure/build/install should run after changin

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
ct_Add is the "Add" function in the ExternalProject module. HTH, David C. On Thu, Apr 23, 2015 at 7:19 AM, Alan W. Irwin wrote: > On 2015-04-23 06:47-0400 David Cole wrote: > >> Should it be configure_file(GENERATE or file(CONFIGURE_AND_GENERATE ?? > > > The first (or confi

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
shared by > different configure_file() calls if they're the same. > > Petr > > On Thu, Apr 23, 2015 at 1:00 PM, David Cole via CMake > wrote: >> >> There's also a fourth possibility: >> >> 4. Delay the configure processing for these "configure a

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread David Cole via CMake
ake -P > /home/cdoucet/Downloads/eigen/src/eigen-stamp/extract-eigen.cmake > -- extracting... > src='/home/cdoucet/Downloads/eigen/download/3.2.4.tar.gz' > dst='/home/cdoucet/Downloads/eigen/src' > -- extracting... [tar xfz] > -- extracting... [analysis] >

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
There's also a fourth possibility: 4. Delay the configure processing for these "configure and generate" files with the final variable values at the END of the configure (*at* generate time). Then there are no memory or temp file issues, but you have a mismatch with the existing (and reasonably ex

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
n Thu, Apr 23, 2015 at 6:13 AM, Alan W. Irwin wrote: > On 2015-04-21 15:54-0400 David Cole wrote: > >> I can only imagine that would cause IMMENSE problems. > > > Good point about keeping backwards compatibility, but your shift key > got stuck. :-) > >> >> I

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-21 Thread David Cole via CMake
I can only imagine that would cause IMMENSE problems. I depend on configure_file being an immediate action in many many many places. (i.e. -- the very next line of code in my CMakeLists.txt file can depend on the result of configure_file being on disk and up to date at the moment of configure proc

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-20 Thread David Cole via CMake
I am using Visual Studio 2013 with Update 4 installed, and the very latest CMake v3.2.2 on my Windows machine. I cannot reproduce your problem, and include here the complete steps I used while trying. Anybody should be able to run configure.cmd and build.cmd as follows and reproduce the correct beh

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-20 Thread David Cole via CMake
By the way, the "if not exist" line in build.cmd should be all on one line of text... the plain text email sending wrapped it for me, where there should be no newline in the actual script... Boo, email bad. On Mon, Apr 20, 2015 at 7:21 AM, David Cole wrote: > I am using Visual Stu

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-18 Thread David Cole via CMake
t; > I have also prepend PATH with /my/curl/path/bin. > > However, the error remains. > > It seems that my version of curl (7.41.0) is not taken into acount > because I > > have still this line in the error message: > > User-Agent: curl/7.38.0 > > I tried to rem

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-18 Thread David Cole via CMake
What version of CMake are you using? And what generator? On Saturday, April 18, 2015, typ1232 wrote: > Hello, > > The command is used as follows: > > INCLUDE(ExternalProject) > ExternalProject_Add(name > GIT_REPOSITORY https://bitbucket.org/foo/bar.git > GIT_TAG 0fcae6c2c975b309b38b8c84

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-17 Thread David Cole via CMake
> DOWNLOAD_COMMAND wget > http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz && tar xvzf 3.2.4.tar.gz -C > --strip-components=1 > CONFIGURE_COMMAND cd && cmake -D > CMAKE_INSTALL_PREFIX=$ >) > -

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-13 Thread David Cole via CMake
Use the URL_MD5 and DOWNLOAD_DIR arguments to ExternalProject_Add to put the downloaded files into a location outside the build tree (perhaps ~/Downloads on Mac/Linux or $ENV{USERPROFILE}/Downloads on Windows). With DOWNLOAD_DIR outside the build tree, and the checksums of the downloaded files bei

Re: [CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?

2015-04-09 Thread David Cole via CMake
You need to tell eigen where to install, probably as an argument to its configure step. If it builds with CMake, you can use: -DCMAKE_INSTALL_PREFIX= as one of the CMake args. If it has a non-CMake configure step, you'll have to call that and pass in as an argument. HTH, David C. On Thur

Re: [CMake] no convenience target for generated files?

2015-04-08 Thread David Cole via CMake
Does cd bar make help Tell you anything? On Wednesday, April 8, 2015, Dave Yost wrote: > I’m using add_custom_command to generate a file, “bar.cc”. > > It would be convenient if I could say > make bar.cc > or > make bar/bar.cc > but neither of these work, and I can’t see a target

Re: [CMake] How to execute an external project target as part of a standard target.

2015-03-24 Thread David Cole via CMake
How about: add_custom_target(custom-install DEPENDS xxx-install) and cmake --build . --target custom-install ?? The problem is that you are adding a custom target with the name "install" which is one that CMake generates for you. (Names to be avoided are all, clean, install, package, h

Re: [CMake] Any way to append CMAKE_INSTALL_PREFIX with CMAKE_CFG_INTDIR?

2015-03-24 Thread David Cole via CMake
An "install" of a CMake based project is invoked something like this from within a generated Visual Studio project: cmake.exe -DBUILD_TYPE=$(Configuration) -P cmake_install.cmake If you dig into the (generated) cmake_install.cmake file, you'll see a chunk like this right near the top of the f

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 instal

Re: [CMake] ARGV processing in cmake -P

2015-03-14 Thread David Cole via CMake
Works for me with CMake 3.2.1 on Windows. What version of CMake are you using? C:\dev\dcole> type args.cmake foreach(n RANGE ${ARGC}) message(STATUS "${n} ${CMAKE_ARGV${n}}") endforeach() message(STATUS "${CMAKE_ARGV0}") message(STATUS "${CMAKE_ARGV1}") message(STATUS "${CMAKE_ARGV2}") C:\dev\

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

Re: [CMake] Problem with cross-compiling and external projects

2015-03-07 Thread David Cole via CMake
It does not happen automatically, but it is not hard to pass down the tool chain as an additional parameter to the configure step of your external projects. There may be other adjustments necessary, too. I'm not sure, I still haven't done a lot of cross-compiling myself with CMake yet. Cross-compi

Re: [CMake] cmake picks a compiler

2015-03-03 Thread David Cole via CMake
CMake picks the compiler when you enable the C++ language, which is either: the first project command encountered, or an explicit call to the enable_language command. Or, in rare cases, it could be an implicitly added project command in the top level CMakeLists.txt file for those files without eith

Re: [CMake] load_command not scriptable

2015-02-25 Thread David Cole via CMake
You could patch the executable to make cmLoadCommandCommand return true from IsScriptable... but if you're going to the trouble of patching CMake anyhow, why not simply build your loadable command directly into CMake...? The other thing might be to mention specifically what the performance problem

Re: [CMake] Lower the barrier of entry to the wiki

2015-02-20 Thread David Cole via CMake
Well, sorry you found it tedious to go through those steps, but please consider the flip side of the coin, too: The wiki has actually been defaced/attacked by spammers in the past, who have done some pretty silly things just to get the links to their trash "out there"... So, the "barriers" to entr

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 dSY

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 custo

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 wrote: > In my Mac OSX builds I want to run dsymutil to create .dSYM debug conten

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: *** [/Users/robertramey/WorkingProjects/safe_numerics_xcode

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 wrote: > Julien Jomier wrote >> It seems to be here: >> >> http://my.cdash.org/index.php?project=Safe+Numerics&date=2015-01-31 >> >> Note that CDash is processing the XML files asynchronously therefore it >> might take some time for the r

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] CTest + Catch Framework

2015-01-28 Thread David Cole via CMake
xt XML so that it appears as if it was instead run > once for each test case? > > I'm being fairly abstract here as I'm not sure of the implementation > details of CTest or if this is even possible. But it's a thought. Let > me know what you think. > > On

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 (perh

Re: [CMake] CTest + Catch Framework

2015-01-27 Thread David Cole via CMake
ding what you have in mind? If so, can you > think of a way to automate this a little better? > > On Tue, Jan 27, 2015 at 7:18 AM, David Cole wrote: >> It's only a chicken and egg problem if you constrain yourself artificially. >> >> When you define a new unit test

Re: [CMake] CTest + Catch Framework

2015-01-27 Thread David Cole via CMake
can think of is to > generate 1 test executable per CPP file that we write in our unit > tests (generally 1 CPP file per class that is unit tested). Any ideas? > > On Mon, Jan 26, 2015 at 10:05 AM, David Cole wrote: >> Can you run a command that executes one test case at a time, or d

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 yo

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

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. https://github.com/OpenCh

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

2015-01-07 Thread David Cole via CMake
tudio 10 Win64" > produce the "required elevation" error, same as before. Go figure. > > David > >> -Original Message- >> From: Karr, David A. @ EngilityCorp >> Sent: Wednesday, January 07, 2015 12:47 PM >> To: 'David Cole' >>

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] 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 wrote: > On Tue, Jan 6, 2015 at 2:29 PM, David Cole wrote: >> >> Two ways to

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 dep

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 : $ Full path to main file (.exe, .so.1.2, .a) where tgt is the name of a target. You should be

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

2014-12-05 Thread David Cole via CMake
s sense, there is no 'example_dir' project in the solution. > > On Fri, Dec 5, 2014 at 2:59 PM, David Cole wrote: >> >> Try: >> >> cmake --build . --target examples >> >> (where "." represents the current working directory, and assumes

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 wrote: > Hi all. > > I'm converting a small Makefile-based project to CMake. The project is not > mine, so I

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: "$" # Headers used from the installed location: "$" ) uses CMAKE_CURRENT_SOURCE_DIR, which already ends with "/mylib". Don't you need to use the parent directory in order to includ

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] 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.) Un

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 wrote: > Once I have configured and generated a CMake project, is there a way to > extra

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] 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 wrote: > Original Message > Subject: App Crash on Any Action in Context

[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] 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 wrote: > Sorry for the delayed response. > > Im trying to use sftp. > > To test it out, I am doing something like

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: http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=cmake_common.cmake;h=576db9a98725503b53e0a6e29f4db7682cfaf1a2;hb=182b93635464ee35100522dec811abb76b55

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 th

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 wrote: > Hi, > > > >

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 wrote: > Hi Russell, > > you might want to add VERBATIM to the custom

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 def

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.

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 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 running... > It's not sho

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 www.kitwar

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-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 das

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 > > 0.00 > 0.00 > > 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 going wrong in the code that reads the coverage files

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 possib

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] 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 info

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 on-

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] 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 InstallRequiredSystemLibra

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 a

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=HPX&date=2014-09-08 (found from the proj

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 Stu

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 an

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." wrote: > > Sorry if

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: http://cmake.org/cmake/help/su

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: http://www.cm

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] [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 of

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] 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] 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 may

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 th

<    1   2   3   4   5   6   7   8   9   10   >