Re: [CMake] How to build and reference dlopen-able libraries?

2014-09-05 Thread J Decker
you'll need separate includes for dlopen thing, because you'll need the functions declares are pointers... void (*f)( void ); or typedefed as functions typedef void (*some_function_type)( void ); some_function_type f; Or better include all those in a structure struct dl_interface { void (*f)

Re: [CMake] Visual Studio 2013 warning MSB8028

2014-09-05 Thread Saad Khattak
For future reference: The solution is to delete your build folder and generate the projects again. Not sure what is changed by CMake in 3.0 but VS does not like it unless the build folder is cleaned. On Wed, Sep 3, 2014 at 6:09 PM, Saad Khattak wrote: > I have a solution with multiple projects

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] How to build and reference dlopen-able libraries?

2014-09-05 Thread Nils Gladitz
On 06.09.2014 00:44, Ted Middleton wrote: Just wondering if there's a nice way of getting a library target's includes but not linking to it, so I can use dlopen() on it instead. If I want to build a shared library that gets implicitly loaded by an executable, I would do this: mylib/CMakeLis

[CMake] How to build and reference dlopen-able libraries?

2014-09-05 Thread Ted Middleton
Just wondering if there's a nice way of getting a library target's includes but not linking to it, so I can use dlopen() on it instead. If I want to build a shared library that gets implicitly loaded by an executable, I would do this: mylib/CMakeLists.txt: add_library( mylib SHARED src/mylibma

[CMake] ctest/cdash question

2014-09-05 Thread Biddiscombe, John A.
Sorry if this is off topic for the list. If I ctest –D ExperimentalStart ctest –D ExperimentalTest –R test1 ctest –D ExperimentalSubmit Then ctest –D ExperimentalStart ctest –D ExperimentalTest –R test2 ctest –D ExperimentalSubmit It appears as two entries on the dashboard, but I’d like to have

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 Bill Hoffman
On 9/5/2014 11:49 AM, Chuck Atkins wrote: Unfortunately on Windows and VS builds there's not really a simple answer. My blog might be of help: http://www.kitware.com/blog/home/post/434 -Bill -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.

[CMake] Useful extensions for CMake blog post

2014-09-05 Thread Tobias Becker
Hi, I thought you might enjoy 400 extra functions for doing more complicated things with cmake (also comes with an interactive cmake console which is implemented in pure cmake). Some features: * maps,(structural variables) * object oriented programming with cmake language (prototypical inheritance

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Chuck Atkins
The easiest option with visual studio is to use the /mp compiler flag by setting it in the CFLAGS and CXXFLAGS environment variables in your ctest script. This will parallelize each target across all CPUs. Target-level parallelism may or may not also happen since that's dependent on your local co

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Michael Jackson
What generator? All of them of course. I am trying to setup our "build bots" on several environments including OS X, Linux and Windows. I have ninja built and installed on the Windows machine. I would _prefer_ to use Visual Studio and ninja so that we have a sanity check to make sure both types

Re: [CMake] Using PUBLIC_HEADER property to install headers, but only 1st one is installed

2014-09-05 Thread Nils Gladitz
On 09/05/2014 03:44 PM, Richard Shaw wrote: Am I doing something wrong or is this a known bug? I have a list of about 5 headers, CODEC2_PUBLIC_HEADERS. I used set_target_properties( PROPERTIES PUBLIC_HEADER ${CODEC2_PUBLIC_HEADERS}) The remaining items in ${CODEC2_PUBLIC_HEADERS} are interpre

[CMake] Using PUBLIC_HEADER property to install headers, but only 1st one is installed

2014-09-05 Thread Richard Shaw
Am I doing something wrong or is this a known bug? I have a list of about 5 headers, CODEC2_PUBLIC_HEADERS. I used set_target_properties( PROPERTIES PUBLIC_HEADER ${CODEC2_PUBLIC_HEADERS}) then in the install target I added: PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/codec2 When I do

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Chuck Atkins
> Actually my interpretation of the manual says that the _tests_ will be run > in parallel. What I want is the _Build_ to be run in parallel. > Indeed that is just the parallel test execution. Parallel build is usually generator specific, controlled through CTEST_BUILD_FLAGS. For example: if you

Re: [CMake] Ctest building with Multiple Processors

2014-09-05 Thread Michael Jackson
Actually my interpretation of the manual says that the _tests_ will be run in parallel. What I want is the _Build_ to be run in parallel. Thanks Mike Jackson On Sep 4, 2014, at 5:14 PM, Iosif Neitzke wrote: > Does ctest -j , or ctest --parallel behave differently? > > http://www.cmake.org/c

Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-05 Thread Ruslan Baratov via CMake
On 04-Sep-14 20:40, Hendrik Sattler wrote: On 4. September 2014 16:38:21 MESZ, Ruslan Baratov via CMake wrote: On 04-Sep-14 18:09, Anders Lindgren wrote: make sure that the argument don't form a valid variable name. It's not possible set(a b) set(b c) if(">${a}<" STREQUAL "

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-05 Thread NoRulez
We do not use a license manager. The following files are created in the Testing/Temporary folder: [DATE]-[TIME]-covbr.stderr [DATE]-[TIME]-covbr.stdout [DATE]-[TIME]-covsrc.stderr [DATE]-[TIME]-covsrc.stdout LastCoverage_[DATE]-[TIME].log Which shows the symbols which are normally shown in CDash

Re: [CMake] execute_process: OUTPUT_FILE vs. ERROR_FILE

2014-09-05 Thread Nils Gladitz
On 09/04/2014 11:12 PM, Nico Schlömer wrote: referring to the documentation of execute_process() [1], is there a defined behavior about what happens if OUTPUT_FILE and ERROR_FILE point to the same file? On windows execute_process() will fail and complain that the file is already being used by

Re: [CMake] Game developers using CMake? Is CMake viable for this industry? Experiences?

2014-09-05 Thread Nils Gladitz
On 09/05/2014 05:46 AM, fungos wrote: 3. I've seen some questions about if CMake/Kitware have any interest in contributions on this area, but I've never found a reply from some of the core developers. What is the reason for this? Is this objective too hard to achieve or there are no interest? I