[CMake] make test to run tests in parallel in CMake 2.8?

2011-02-28 Thread Chris Green
. Is there some CMAKE variable I should have provided to enable this behavior, something else I should have done? Or is parallel test behavior just not available without invoking ctest explicitly? If this is the case, is something planned for future releases? Thanks for your help and time, Chris Green

Re: [CMake] make test to run tests in parallel in CMake 2.8?

2011-02-28 Thread Chris Green
On 2/28/11 8:13 AM, Michael Wild wrote: On 02/28/2011 03:03 PM, Chris Green wrote: snip Try this: make test ARGS=-j12 Bingo! Thank you, Chris. -- Chris Green gre...@fnal.gov, FNAL CD/ADSS/CET; 'phone (630) 840-2167. IRC: gre...@jabber.fnal.gov, chrisgr...@jabber.dsd.lbl.gov; chissgreen

[CMake] Need WILL_FAIL_ASSERTION or equivalent.

2011-03-02 Thread Chris Green
Hi, I find myself needing to count a test that I expect to fail an assertion (I'm using CMake 2.8.4). My first attempt, using the test property WILL_FAIL, erm, failed because apparently an abort is trapped as an exception rather than a failing execution. I have worked around this for now by

[CMake] Stop substitution in passthrough list arguments?

2011-03-02 Thread Chris Green
Hi, I have a macro which takes a variety of arguments and does all the things necessary for making a test: compiling the exec (or copying the script), putting input files in the right place and setting desired properties on the test. I use the ParseArguments

[CMake] target_link_libraries replacing fully-qualified library with -lx

2015-01-28 Thread Chris Green
. If not, can it be made possible to deactivate this behavior? Thanks for your help, Chris. -- Chris Green gre...@fnal.gov, FNAL CS/SCD/ADSS/SSI/SSD; 'phone (630) 840-2167; Skype: chris.h.green; IM: gre...@jabber.fnal.gov, chissgreen (AIM, Yahoo), chi...@hotmail.com (MSNM), chris.h.green (Google Talk

Re: [CMake] target_link_libraries replacing fully-qualified library with -lx

2015-01-29 Thread Chris Green
, though. Thanks, Chris. -- Chris Green gre...@fnal.gov, FNAL CS/SCD/ADSS/SSI/SSD; 'phone (630) 840-2167; Skype: chris.h.green; IM: gre...@jabber.fnal.gov, chissgreen (AIM, Yahoo), chi...@hotmail.com (MSNM), chris.h.green (Google Talk). -- Powered by www.kitware.com Please keep messages on-topic

Re: [CMake] target_link_libraries replacing fully-qualified library with -lx

2015-01-29 Thread Chris Green
. -- Chris Green gre...@fnal.gov, FNAL CS/SCD/ADSS/SSI/SSD; 'phone (630) 840-2167; Skype: chris.h.green; IM: gre...@jabber.fnal.gov, chissgreen (AIM, Yahoo), chi...@hotmail.com (MSNM), chris.h.green (Google Talk). -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] target_link_libraries replacing fully-qualified library with -lx

2015-01-29 Thread Chris Green
be very happy. Should I put an entry in Mantis? Thanks, Chris. -- Chris Green gre...@fnal.gov, FNAL CS/SCD/ADSS/SSI/SSD; 'phone (630) 840-2167; Skype: chris.h.green; IM: gre...@jabber.fnal.gov, chissgreen (AIM, Yahoo), chi...@hotmail.com (MSNM), chris.h.green (Google Talk). -- Powered

Re: [CMake] target_link_libraries replacing fully-qualified library with -lx

2015-01-29 Thread Chris Green
On 1/29/15 7:41 AM, Brad King wrote: On 01/28/2015 03:12 PM, Chris Green wrote: target_link_libraries(target /X/Y/libtbb.so) results in link.txt files containing -ltbb. This happens when the library is in an implicit link directory, or possibly when the library does not have an SONAME field

Re: [CMake] target_link_libraries replacing fully-qualified library with -lx

2015-01-30 Thread Chris Green
On 1/29/15 1:34 PM, Stephen Kelly wrote: Chris Green wrote: this library is found with find_library as part of a config.cmake file invoked as part of find_package() Consider reading http://www.cmake.org/cmake/help/v3.1/manual/cmake-packages.7.html at some point. find_library

[CMake] COMMENT ignored for POST_BUILD custom command?

2015-03-20 Thread Chris Green
Hi, With CMake 3.1.2, I don't see my specified COMMENT for a POST_BUILD command on a library target, viz: add_custom_command(TARGET ${LIB_TARGET} POST_BUILD COMMAND ln -sf $TARGET_LINKER_FILE_NAME:${LIB_TARGET}

Re: [CMake] COMMENT ignored for POST_BUILD custom command?

2015-03-20 Thread Chris Green
Subject: Re: [CMake] COMMENT ignored for POST_BUILD custom command? On 20.03.2015 16:47, Chris Green wrote: The documentation doesn't suggest that this is intended behavior. Is this a bug, or am I doing something wrong? The desired action does get carried out during a build as desired

Re: [CMake] COMMENT ignored for POST_BUILD custom command?

2015-03-20 Thread Chris Green
On 3/20/15 2:10 PM, Nils Gladitz wrote: On 20.03.2015 19:41, Chris Green wrote: On 3/20/15 12:11 PM, Christopher H Green wrote: Indeed it might, thank you, but I believe I'm seeing the same behavior with ninja also. I can confirm that with CMake 3.2.1, the expected COMMENT is printed

[CMake] Utility' targets with ninja generator?

2015-07-17 Thread Chris Green
easily if appropriate), or can there be (even if only with the new ninja 1.6.0)? My inability to find same is pretty much the only reason I haven't abandoned make in favor of ninja entirely. Thanks for any help, Chris. -- Chris Green gre...@fnal.gov, FNAL CS/SCD/ADSS/SSI/TAC; 'phone (630) 840

[CMake] add_test to support generator expressions?

2015-10-26 Thread Chris Green
sulted in an error. Am I using generator expressions wrongly in this case, or does add_test() not support them? Is there something else I can do? Thanks for any help, Chris. -- Chris Green <gre...@fnal.gov>, FNAL CS/SCD/ADSS/SSI/TAC; -- Powered by www.kitware.com Please keep messages on-top

Re: [CMake] add_test to support generator expressions?

2015-10-26 Thread Chris Green
Hi, I should add that I am using CMake 3.3.2. Sorry for the omission, Chris. On 10/26/15 2:29 PM, Chris Green wrote: Hi, I have a function cet_test(), which allows a user to specify the details of a test which will be executed via a wrapper, cet_exec_test. It calls the CMake add_test

Re: [CMake] add_test to support generator expressions?

2015-10-27 Thread Chris Green
for the clarification, Chris. On 10/26/15 3:20 PM, Nils Gladitz wrote: On 26.10.2015 20:29, Chris Green wrote: Hi, I have a function cet_test(), which allows a user to specify the details of a test which will be executed via a wrapper, cet_exec_test. It calls the CMake add_test() macro to set

[CMake] Add CXX dependency generation to custom command for Ninja?

2017-01-10 Thread Chris Green
${CMAKE_CURRENT_SOURCE_DIR}/classes.h DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/classes_def.xml COMMENT "Generating dictionary files for target ${dictname}" ) Many thanks, Chris. -- Chris Green <gre...@fnal.gov>, FNAL CS/SCD/ADSS/SSI/TAC; 'phone (630) 840-2167; Skype: chris.h.green; IM: gre...

[CMake] Is there a way to obtain the current compiler standard flag?

2018-05-29 Thread Chris Green
Hi, We have to use a utility (Root's rootcling/genreflex tool) as part of a custom command to parse some C++ headers. We are in the process of migrating from using raw -std= additions to compilation flags to use of CMAKE_CXX_STANDARD and friends. We need to pass the correct compiler flag to

Re: [CMake] Is there a way to obtain the current compiler standard flag?

2018-06-01 Thread Chris Green
lly for 98, 11, 14, 17, 20, etc? Thanks, Chris. On 6/1/18 8:27 AM, Chris Green wrote: Hi, I'll give this a shot, thank you. Ideally we'd have a generator expression pick up ${std} from the relevant target property, but I'll have to play with that since I'm not familiar enough with genera

Re: [CMake] Is there a way to obtain the current compiler standard flag?

2018-06-01 Thread Chris Green
>>>>") begets: First parameter to $ must resolve to exactly one '0' or '1' value. I'm all out of ideas. Any new ones would be appreciated. Thanks, Chris. On 6/1/18 3:00 PM, Chris Green wrote: Hi, I was hoping this would work: $,${CMAKE_CXX$_EXTENSION_COMPILE_OPTION},${CMAKE_

Re: [CMake] Is there a way to obtain the current compiler standard flag?

2018-06-01 Thread Chris Green
Hi, I'll give this a shot, thank you. Ideally we'd have a generator expression pick up ${std} from the relevant target property, but I'll have to play with that since I'm not familiar enough with generator expressions to know /a priori/ how this will turn out. Thanks for your help, Chris.