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$_EXTE

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

2018-06-01 Thread Chris Green
ifically 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 fa

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.

[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 t

[CMake] Custom Command OUTPUTs to understand geenrator expressions?

2017-11-01 Thread Chris Green
Hi, I have a case where a custom command produces multiple outputs, at least some of which depend on a property of a library target, viz: if (BD_WANT_PCM) set(PCM_OUTPUT $/${CMAKE_SHARED_LIBRARY_PREFIX}${dictname}_dict_rdict.pcm) if (GD_PCM_OUTPUT_VAR) set(${GD_PCM_OUTPU

Re: [CMake] Help: erroneous '-ltbb' getting injected into link command implicitly

2017-10-16 Thread Chris Green
On 10/16/17 4:55 AM, Ben Morgan wrote: Hi Chris, Is “tbb” used as a target name and direct link anywhere? e.g. Ding ding! Found it late Friday, thanks: I was fooled by previous experience into thinking that CMake was translating an external package's dependency on TBB from the explicit full pa

Re: [CMake] Help: erroneous '-ltbb' getting injected into link command implicitly

2017-10-13 Thread Chris Green
et me know how you solved the problem and stopped CMake doing the translation, I'd be grateful. Thanks, Chris. Regards, Luis On 13 Oct 2017 01:21, "Chris Green" <mailto:gre...@fnal.gov>> wrote: Hi, Using CMake 3.9.2, I'm trying to ascertain where an ins

[CMake] Help: erroneous '-ltbb' getting injected into link command implicitly

2017-10-12 Thread Chris Green
Hi, Using CMake 3.9.2, I'm trying to ascertain where an instance of '-ltbb' is getting injected into the link command line of some of our executables. This is bad because we can't find it anywhere in our source (we have a config CMake that uses the full path to the library), and the system TB

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

2017-01-10 Thread Chris Green
MAND} IMPLICIT_DEPENDS CXX ${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 , FNAL CS/SCD/ADSS/SSI/TAC; 'phone (630) 840-2167; Skype: chris.h.green

Re: [CMake] add_test to support generator expressions?

2015-10-27 Thread Chris Green
s 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 t

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

[CMake] add_test to support generator expressions?

2015-10-26 Thread Chris Green
in this case, or does add_test() not support them? Is there something else I can do? Thanks for any help, Chris. -- Chris Green , FNAL CS/SCD/ADSS/SSI/TAC; -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware

[CMake] "Utility' targets with ninja generator?

2015-07-17 Thread Chris Green
grade to a more recent version 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 , FNAL CS/SCD/ADSS/SS

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

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

2015-03-20 Thread Chris Green
e.org 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

[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 $ ${CMAKE_SHARED_LIBRARY_PREFIX}${alias}${CMAKE_SHARED_LIBRARY_SUFFIX} COMMENT "Generate / ref

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

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 and

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

2015-01-29 Thread Chris Green
. -- Chris Green , 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 at:

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

2015-01-29 Thread Chris Green
, though. Thanks, Chris. -- Chris Green , 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

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

2015-01-29 Thread Chris Green
I think we would be very happy. Should I put an entry in Mantis? Thanks, Chris. -- Chris Green , 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 b

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

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( /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 set

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

2015-01-28 Thread Chris Green
not, can it be made possible to deactivate this behavior? Thanks for your help, Chris. -- Chris Green , 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 Tal

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

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: >> Try this: >> >> make test ARGS=-j12 Bingo! Thank you, Chris. -- Chris Green , FNAL CD/ADSS/CET; 'phone (630) 840-2167. IRC: gre...@jabber.fnal.gov, chrisgr...@jabber.dsd.lbl.g

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

2011-02-28 Thread Chris Green
, "make test" with more typing. 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?