Re: [CMake] Platform/x86_64-unknown-linux-gnu

2018-01-17 Thread Charl van Niekerk
Does not want to cross compile for my Linux ARM processor. Charl van Niekerk Development Engineer EMSS Antennas 18 Techno Avenue, Technopark Stellenbosch 7600 South Africa Postal Address: EMSS Antennas PO Box 492 Stellenbosch 7599 South Africa Phone +27 (0)21 880 1188 Fax +27 (0)2

Re: [CMake] Recommandation for macOS framework install rules

2018-01-17 Thread J Decker
It's not entirely related other than Mac I had to test if( __COMPILER_GNU AND NOT CMAKE_COMPILER_IS_GNUCC ) instead of just CMAKE_COMPILER_IS_GNUCC (which was unset) __COMPILER_GNU was found after doing a dump... I suppose there's some modern way I'm supposed to test GCC that works on all

[CMake] Recommandation for macOS framework install rules

2018-01-17 Thread Lucas Soltic
Hello, By default library install() command uses CMAKE_INSTALL_PREFIX (/usr/local by default) as a base for relative install paths. But when you define install rules for macOS frameworks, it doesn't make much sense to install them there. I'd rather expect something like /Library/Frameworks. On

[CMake] CDash calendar button no longer works?

2018-01-17 Thread Thompson, KT
Hi, The 'calendar' button in our CDash installation (v. 2.5.0) stopped working recently (no changes to our CDash installation and only regular security patches to the web server). Everything else works fine. Does anyone have any ideas on how to diagnose why my calendar no longer works? BTW -

Re: [CMake] How can I create a C executable and C++ library from the same source

2018-01-17 Thread Robert Maynard
As stated CMake tracks source files globally so they can only have a single language. Project that I work on have migrated over to using file(GENERATE) to produce the files as it only requires a couple lines of CMake code. get_filename_component(c_fname "${c_source_file}" NAME_WE) get_filename_co

Re: [CMake] How can I create a C executable and C++ library from the same source

2018-01-17 Thread J Decker
No. CMake tracks each source file name exactly once. If you set properties on it, it will be treated that way always. Have to make a copy of the source to cpp... copies to cmake_binary_dir/ plusplus_file_dup is the resulting list ( https://github.com/d3x0r/SACK/blob/master/CMakeLists.txt#L655 )

Re: [CMake] How can I create a C executable and C++ library from the same source

2018-01-17 Thread Matthew Keeler
Whether what you want exactly is possible I dont know. If you are just wanting your C++ test library to be able to test your C source then I would still let them compile as C and just extern ā€œCā€ { #include }. When it gets linked all together it should be fine. This is how I usually do testing of m

[CMake] How can I create a C executable and C++ library from the same source

2018-01-17 Thread Jimi Damon
Hi, I want to use Gtest for some unit tests on a number of the C functions that comprise my C executable. However, Gtest ( And gMock ) are C++ testing frameworks. What I would like to have is a project for my exe and then a separate project for my C++ library and be able to change the source pro

Re: [CMake] Ubuntu package versioning

2018-01-17 Thread Rashad Kanavath
On Tue, Dec 19, 2017 at 4:45 AM, Raymond Wan wrote: > Hi Alexander, > > On Tue, Dec 19, 2017 at 11:39 AM, Alan W. Irwin > wrote: > > On 2017-12-18 19:14-0500 wrote: > > > >> I'm not sure who maintains the Ubuntu cmake package, but I *just* > >> installed > >> it, and cmake --version reported 3.