Re: [CMake] Automatic inclusion of import targets found by find_package()?

2016-07-10 Thread Robert Dailey
On Sun, Jul 10, 2016 at 5:11 PM, Stephen Kelly <steve...@gmail.com> wrote: > Robert Dailey wrote: > >> Is there more automation here that I'm not seeing? Thanks in advance. > > Yes, the documentation tells you to include what you need in the config > file: > > &g

[CMake] Why is target installation done in 2 separate steps?

2016-07-10 Thread Robert Dailey
Documentation states, that to export a file that imports your targets, you must do roughly: install(TARGETS fubar EXPORT fubar-targets) install(EXPORT fubar-targets DESTINATION lib/cmake/fubar) Why is this done in two steps? Based on reading the install() documentation, I don't see how the

[CMake] Automatic inclusion of import targets found by find_package()?

2016-07-10 Thread Robert Dailey
Let's say I have my own upstream library and I export a target for it. This subsequent cmake file (containing my IMPORT target definition) is included with my tarball. When a consuming project wants to find and use my import targets, they currently have to do (consider this pseudocode since i

[CMake] Convenience version of CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE for INTERFACE_SOURCES

2016-07-10 Thread Robert Dailey
I am exporting/installing a header-only INTERFACE library and I run into difficulty with target_sources() because I can't use relative paths to the files. So I do this: set(project_name fubar) set(source_files myfile.h ) # Include dir for installed targets set(INCLUDE_DIR

Re: [CMake] Unable to find source files in different directory using target_sources(INTERFACE)

2016-07-09 Thread Robert Dailey
or the source file(s) is always >> an absolute one. For example: >> >> target_sources(foo INTERFACE "${CMAKE_CURRENT_LIST_DIR}/foo.h") >> >> You may find the following blog article useful (it discusses the above >> problem and also other related material):

[CMake] Unable to find source files in different directory using target_sources(INTERFACE)

2016-07-09 Thread Robert Dailey
I have the following: cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) project(foo) add_library(foo INTERFACE) target_sources(foo INTERFACE foo.h) add_subdirectory(subdir) And inside subdir, I specify add_executable() and then target_link_libraries(myexe foo). I get an error: Cannot find

[CMake] Ninja + parallel linking

2016-07-07 Thread Robert Dailey
I notice on ninja builds generated via CMake 3.6, the link step blocks compilation threads. What I expect is that if I have 32 threads available for compiling, those are also shared via the link step. In other words, if I reach a link step, I want it to consume 1 thread and the other 31 threads

[cmake-developers] Changing FOLDER property of ALL_BUILD and RUN_TESTS targets in VS

2016-04-12 Thread Robert Dailey
I have the following CMake code: get_property( predefined_folder GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER ) set_target_properties( ALL_BUILD PROPERTIES FOLDER ${predefined_folder} ) if( BUILD_TESTING ) set_target_properties( RUN_TESTS PROPERTIES FOLDER "Testing" ) endif() However this

[CMake] Changing FOLDER property of ALL_BUILD and RUN_TESTS targets in VS

2016-04-12 Thread Robert Dailey
I have the following CMake code: get_property( predefined_folder GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER ) set_target_properties( ALL_BUILD PROPERTIES FOLDER ${predefined_folder} ) if( BUILD_TESTING ) set_target_properties( RUN_TESTS PROPERTIES FOLDER "Testing" ) endif() However this

Re: [CMake] Visual Studio + Ninja?

2016-03-25 Thread Robert Dailey
e of MSBuild (which is not that bad > compared to Ninja), the benefits would only be substantial in enourmous > projects. MS generally looks into increasing build throughput by integrating > IncrediBuild into their IDE. > > > > > > > > Feladó: Robert Dailey > Elkül

[CMake] Visual Studio + Ninja?

2016-03-02 Thread Robert Dailey
Right now I am using a toolchain file to setup cmake to build my C++ code against Android NDK. I also have several custom targets for running 'ant' commands for the java portions. I can use the Ninja generator to generate the build scripts to make my builds work fine. However, I'd love to be able

Re: [cmake-developers] Assertion hit in CMake for KDevelop on Ubuntu

2016-01-14 Thread Robert Dailey
On Wed, Jan 13, 2016 at 3:16 PM, Alexander Neundorf <neund...@kde.org> wrote: > On Wednesday, January 13, 2016 10:16:23 Robert Dailey wrote: >> Running version 3.2.2 on Ubuntu 15. I run the following command: >> >> $ cmake .. -G"KDevelop3" -DCMAKE_C_COMPILER=gc

Re: [cmake-developers] Assertion hit in CMake for KDevelop on Ubuntu

2016-01-13 Thread Robert Dailey
On Wed, Jan 13, 2016 at 12:36 PM, Brad King <brad.k...@kitware.com> wrote: > On 01/13/2016 11:16 AM, Robert Dailey wrote: >> Running version 3.2.2 on Ubuntu 15. I run the following command: > [snip] >> cmake: ../../Source/cmTarget.cxx:722: void >> cmTarget::GetSource

[cmake-developers] Assertion hit in CMake for KDevelop on Ubuntu

2016-01-13 Thread Robert Dailey
Running version 3.2.2 on Ubuntu 15. I run the following command: $ cmake .. -G"KDevelop3" -DCMAKE_C_COMPILER=gcc-4.9 -DCMAKE_CXX_COMPILER=g++-4.9 -DCMAKE_BUILD_TYPE=$config -DCMAKE_TOOLCHAIN_FILE="../toolchains/linux_i686.toolchain.cmake" My toolchain file is specified as follows:

[CMake] CMake with VS 2015 using Android?

2015-12-21 Thread Robert Dailey
Is it possible for CMake 3.4 to generate VS2015 projects targeting their new Android functionality? Is this just a matter of configuring the toolset (-T)? Or is there more to it? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] Toolset target property?

2015-12-09 Thread Robert Dailey
Doesn't look like there is a Toolset target property anywhere. You can set it from the command line, but I think setting a toolset per target makes sense. Considering the direction that Visual Studio 2015 is headed. For example Microsoft has a Clang compiler with MS CodeGen. They recommend using

Re: [CMake] Copying directories as post build events without losing parent directory

2015-12-07 Thread Robert Dailey
On Mon, Dec 7, 2015 at 3:59 PM, David Cole <dlrd...@aol.com> wrote: > $ cmake -E copy_directory foo bar/foo > > ? > > > On Mon, Dec 7, 2015 at 4:53 PM, Robert Dailey <rcdailey.li...@gmail.com> > wrote: >> I have a custom target which runs a command similar t

Re: [CMake] Copying directories as post build events without losing parent directory

2015-12-07 Thread Robert Dailey
On Mon, Dec 7, 2015 at 4:15 PM, Robert Dailey <rcdailey.li...@gmail.com> wrote: > On Mon, Dec 7, 2015 at 3:59 PM, David Cole <dlrd...@aol.com> wrote: >> $ cmake -E copy_directory foo bar/foo >> >> ? >> >> >> On Mon, Dec 7, 2015 at 4:53 PM, Robert

[CMake] List of debug configurations for multi-generators?

2015-12-03 Thread Robert Dailey
For any arbitrary configuration in a multi-generator, I need to determine if it's configuration is optimized or not (release or debug). At the moment I thought I could do this by comparing against the list of DEBUG_CONFIGURATIONS, however this property is empty if I have not set it. I was

Re: [CMake] How to generate for Ninja + MSVC?

2015-12-02 Thread Robert Dailey
On Wed, Dec 2, 2015 at 1:29 PM, Nils Gladitz <nilsglad...@gmail.com> wrote: > On 02.12.2015 20:18, Robert Dailey wrote: >> >> Is there a way to generate for Ninja using MSVC toolchain? If so, how >> do I do that? Do I need a toolchain file? > > > You can selec

[CMake] How to generate for Ninja + MSVC?

2015-12-02 Thread Robert Dailey
Is there a way to generate for Ninja using MSVC toolchain? If so, how do I do that? Do I need a toolchain file? -- 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

Re: [CMake] How to generate for Ninja + MSVC?

2015-12-02 Thread Robert Dailey
On Wed, Dec 2, 2015 at 1:37 PM, Robert Dailey <rcdailey.li...@gmail.com> wrote: > On Wed, Dec 2, 2015 at 1:29 PM, Nils Gladitz <nilsglad...@gmail.com> wrote: >> On 02.12.2015 20:18, Robert Dailey wrote: >>> >>> Is there a way to generate for Ninja using

Re: [cmake-developers] Code style auto-formatting

2015-11-19 Thread Robert Dailey
On Wed, Nov 18, 2015 at 5:47 PM, Alan W. Irwin <ir...@beluga.phys.uvic.ca> wrote: > On 2015-11-17 16:44-0600 Robert Dailey wrote: > >> [...]Honestly all of this is a matter of taste, I don't expect >> everyone to agree on every little detail. I think the goal should be &g

Re: [cmake-developers] Code style auto-formatting

2015-11-19 Thread Robert Dailey
On Thu, Nov 19, 2015 at 8:26 AM, Brad King <brad.k...@kitware.com> wrote: > On 11/19/2015 09:22 AM, Robert Dailey wrote: >> Tonight I will do some testing and submit a patch + example files >> converted to the style Brad suggested. We can fine-tune it as needed. > > Rath

Re: [cmake-developers] Code style auto-formatting

2015-11-17 Thread Robert Dailey
re widely-used indentation > style outright and using clang-format to define it formally. > > On 11/17/2015 04:29 PM, Daniel Pfeifer wrote: >> On Tue, Nov 17, 2015 at 10:12 PM, Robert Dailey wrote: >>> How did you guys want to approach reformatting inconsistently >>> fo

Re: [cmake-developers] Code style auto-formatting

2015-11-17 Thread Robert Dailey
On Tue, Nov 17, 2015 at 6:57 AM, Paul Smith wrote: > On Tue, 2015-11-17 at 08:14 +, Stuermer, Michael SP/HZA-ZSEP wrote: >> In short, there is no fully automated style checking. If someone would >> come up with a tool & configuration I would love to use this. So far I

Re: [cmake-developers] [PATCH] User may now specify toolset through CMake GUI

2015-11-16 Thread Robert Dailey
d.k...@kitware.com> wrote: > On 02/17/2015 01:46 PM, Brad King wrote: >> On 02/17/2015 01:43 PM, Robert Dailey wrote: >>> Of course right now only Visual Studio and XCode support the toolset >>> parameter >> >> Correct. Furthermore it is supported onl

Re: [cmake-developers] [PATCH] User may now specify toolset through CMake GUI

2015-11-16 Thread Robert Dailey
16, 2015 at 9:50 PM, Robert Dailey <rcdailey.li...@gmail.com> wrote: > Hello everyone, > > I apologize for the long hiatus, but I've finally gotten back to this. > I've implemented the suggestions here: > > * deleteCache() now clears the toolset > * When the binary dir

[cmake-developers] Code style auto-formatting

2015-11-16 Thread Robert Dailey
IMHO, the code style in the CMake code base is incredibly inconsistent, but even the consistent style that is there is a giant pain to follow by hand. I'm constantly fighting my tooling's auto formatting. I prefer to keep my code additions similar to surrounding code. Do you use some tool such as

[cmake-developers] Visual Studio 2013 with CMake GUI on Windows

2015-11-13 Thread Robert Dailey
CMake requires Qt4, which is incompatible with VS 2013 officially. I do not want to apply patches to get it working. Is it possible to get CMake to use Qt5? I know this already supports VS 2013. Is Qt5 backward compatible with Qt4 with regards to the feature sets being utilized by CMake? I do

Re: [cmake-developers] Visual Studio 2013 with CMake GUI on Windows

2015-11-13 Thread Robert Dailey
On Fri, Nov 13, 2015 at 10:53 AM, Brad King <brad.k...@kitware.com> wrote: > On 11/13/2015 11:42 AM, Robert Dailey wrote: >> CMake requires Qt4, which is incompatible with VS 2013 officially. I >> do not want to apply patches to get it working. >> >> Is it

[cmake-developers] C++11 support?

2015-11-13 Thread Robert Dailey
Just to be clear, does CMake code base allow for C++11 or higher? or are you guys locked down to C++03? -- 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.

[CMake] Colored diagnostic output for GCC 4.9 through Ninja

2015-10-28 Thread Robert Dailey
I'm using CMake + Ninja against GCC 4.9 in the Android NDK. I'm on Windows, invoking 'ninja' through CMD.exe. I do not see colored output for diagnostics (errors, warnings, etc) GCC gives. Is there something in CMake I need to configure to enable colored output? -- Powered by www.kitware.com

Re: [CMake] Colored diagnostic output for GCC 4.9 through Ninja

2015-10-28 Thread Robert Dailey
On Wed, Oct 28, 2015 at 11:20 AM, Robert Dailey <rcdailey.li...@gmail.com> wrote: > On Wed, Oct 28, 2015 at 11:19 AM, Robert Dailey > <rcdailey.li...@gmail.com> wrote: >> On Wed, Oct 28, 2015 at 9:03 AM, Miller Henry <millerhe...@johndeere.com> >> wrote: >

Re: [CMake] Colored diagnostic output for GCC 4.9 through Ninja

2015-10-28 Thread Robert Dailey
On Wed, Oct 28, 2015 at 9:03 AM, Miller Henry wrote: > > I do something like this, which works for clang and should work for gcc 4.9 > though I haven't tested it. I haven't wrote the right way to do this which > is to check if the terminal supports color before

Re: [CMake] Colored diagnostic output for GCC 4.9 through Ninja

2015-10-28 Thread Robert Dailey
On Wed, Oct 28, 2015 at 11:19 AM, Robert Dailey <rcdailey.li...@gmail.com> wrote: > On Wed, Oct 28, 2015 at 9:03 AM, Miller Henry <millerhe...@johndeere.com> > wrote: >> >> I do something like this, which works for clang and should work for gcc 4.9 >> tho

[CMake] Writing find packages

2015-09-03 Thread Robert Dailey
How recent is this documentation? http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules It seems rather old. What is the modern way of doing this? Below is my find module, I'm not sure if I'm doing it "the right way": # Try to find the vsvars32.bat file if( MSVC_VERSION

Re: [CMake] How to depend on external cmake projects?

2015-08-22 Thread Robert Dailey
On Mon, Aug 17, 2015 at 10:17 AM, James Johnston jam...@motionview3d.com wrote: Well, you'd do this in conjunction with ExternalProject_Add. A well-written CMake external project will provide a projectConfig.cmake file which you will then find using find_package. After toying around with this

[CMake] Crawling documentation to find named argument keywords

2015-08-17 Thread Robert Dailey
I've attached a python script I'm using to obtain a list of keywords across all CMake commands that I can use. Can someone let me know if this is a reliable way to craw the help documentation to find these keywords? Note that the keywords I'm referring to are things like APPEND in the list()

[CMake] How to depend on external cmake projects?

2015-08-16 Thread Robert Dailey
There are certain repositories on Github I'd like to pull in as a dependency. These repositories already use CMake to build their source code. Based on personal experience and reading material online, there are a couple of different options: 1. Pull down the repository as a submodule to my own

[CMake] Managed C++ / C# Projects: Location of assembly DLL

2015-08-05 Thread Robert Dailey
I am including external MS projects via CMake for my C# projects. The Managed C++ projects I generate via CMake directly. However, sharing assembly references between the two is difficult. Sometimes I need my imported C# projects to know where to find the managed C++ DLL assembly it built. This

[CMake] Is add_definitions() still recommended?

2015-07-24 Thread Robert Dailey
Starting with CMake 3.1, and going forward, is add_definitions() still recommended if you have preprocessor definitions you want included in all projects? The evolution of CMake appears to discourage setting global state in favor of relying more on target properties (for includes, definitions, and

Re: [CMake] Toolchain file for VS2013 + November CTP compiler toolset?

2015-07-21 Thread Robert Dailey
On Fri, Jul 17, 2015 at 11:25 AM, Robert Dailey rcdailey.li...@gmail.com wrote: Hello, How would I define a toolchain file for the Visual Studio 2013 generator that also defines the toolset for that generator to be the November CTP compiler? I'd rather use a toolchain for this than do -D

[CMake] Toolchain file for VS2013 + November CTP compiler toolset?

2015-07-17 Thread Robert Dailey
Hello, How would I define a toolchain file for the Visual Studio 2013 generator that also defines the toolset for that generator to be the November CTP compiler? I'd rather use a toolchain for this than do -D definitions when I invoke cmake to generate. Thanks in advance. -- Powered by

Re: [CMake] Recursively include target include directories only

2015-06-18 Thread Robert Dailey
On Thu, Jun 18, 2015 at 1:57 AM, Dan Liew d...@su-root.co.uk wrote: The reason I'm asking this question is because of how I handle unit tests in CMake right now. Instead of just defining an executable target for the test and then adding a link dependency on the library containing the class or

Re: [CMake] Recursively include target include directories only

2015-06-18 Thread Robert Dailey
On Thu, Jun 18, 2015 at 4:24 PM, Dan Liew d...@su-root.co.uk wrote: Hi, On 18 June 2015 at 12:16, Robert Dailey rcdailey.li...@gmail.com wrote: On Thu, Jun 18, 2015 at 12:02 PM, Dan Liew d...@su-root.co.uk wrote: Can you explain what you mean by strong and weak symbols? Google is your

Re: [CMake] Recursively include target include directories only

2015-06-18 Thread Robert Dailey
On Thu, Jun 18, 2015 at 12:02 PM, Dan Liew d...@su-root.co.uk wrote: Can you explain what you mean by strong and weak symbols? Google is your friend https://en.wikipedia.org/wiki/Weak_symbol http://stackoverflow.com/questions/2290587/gcc-style-weak-linking-in-visual-studio Normally Google

[CMake] Recursively include target include directories only

2015-06-17 Thread Robert Dailey
Is there a way to only take (recursively) the include directories from a target or set of targets? I know that include directories propagate when passing targets to target_link_libraries(), but I do not want to link the libs; I only want the include directories. How can I do this? Thanks. --

Re: [CMake] Recursively include target include directories only

2015-06-17 Thread Robert Dailey
On Wed, Jun 17, 2015 at 4:31 PM, Dan Liew d...@su-root.co.uk wrote: On 17 June 2015 at 12:28, Robert Dailey rcdailey.li...@gmail.com wrote: Is there a way to only take (recursively) the include directiories from a target or set of targets? I know that include directories propagate when passing

[CMake] Accessing source directory of a target

2015-06-12 Thread Robert Dailey
Hello, Is there a SOURCE_DIR property for targets? I wasn't able to find anything in the documentation on this, however I thought I saw something similar to this a few years ago. I'm using CMake 3.2. Basically I want the equivalent of CMAKE_CURRENT_SOURCE_DIR, but for a specific project.

Re: [CMake] CMake, Android, and Eclipse ADT Integration

2015-05-01 Thread Robert Dailey
, 4:46 PM, Robert Dailey rcdailey.li...@gmail.com wrote: On Wed, Mar 11, 2015 at 11:42 AM, Robert Dailey rcdailey.li...@gmail.com wrote: I am implementing support for Android in my CMake scripts by using custom commands to invoke 'ant' to build the final APK. If I do it this way, and I generate

Re: [CMake] find_library while cross compiling?

2015-05-01 Thread Robert Dailey
(CMAKE_SHARED_LIBRARY_SUFFIX .so) Hope this helps. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 4/30/15, 4:34 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I'm

[CMake] find_library while cross compiling?

2015-04-30 Thread Robert Dailey
I'm on Windows and I am cross compiling for Android NDK. I use find_library() with PATHS to hunt down some libssl.a files, plus a few others. However, find_library() says it can't find them. I'm assuming this is because I'm on Windows and it doesn't recognize *.a files as a valid library on that

Re: [CMake] CMake, Android, and Eclipse ADT Integration

2015-04-30 Thread Robert Dailey
On Wed, Mar 11, 2015 at 11:42 AM, Robert Dailey rcdailey.li...@gmail.com wrote: I am implementing support for Android in my CMake scripts by using custom commands to invoke 'ant' to build the final APK. If I do it this way, and I generate for eclipse, how can I make sure it will integrate

Re: [cmake-developers] [CMake] Bug in CMake GUI 3.2.1?

2015-04-13 Thread Robert Dailey
I am running on Windows 8.1. Screenshots attached. On Mon, Apr 13, 2015 at 9:20 AM, Brad King brad.k...@kitware.com wrote: On 04/10/2015 12:26 PM, Robert Dailey wrote: I am noticing that after installing the official Windows installer for 3.2.1 release, CMake GUI looks different. Menu options

Re: [CMake] Bug in CMake GUI 3.2.1?

2015-04-13 Thread Robert Dailey
I am running on Windows 8.1. Screenshots attached. On Mon, Apr 13, 2015 at 9:20 AM, Brad King brad.k...@kitware.com wrote: On 04/10/2015 12:26 PM, Robert Dailey wrote: I am noticing that after installing the official Windows installer for 3.2.1 release, CMake GUI looks different. Menu options

[cmake-developers] .gitattributes updates

2015-03-15 Thread Robert Dailey
Hey everyone, This isn't a huge change but I think it is important. I noticed that .gitattributes was not properly configured to utilize modern Git features: 1. * text=auto to specify automatic line ending handling for files that git detects as text files 2. Replace deprecated attribute

[CMake] CMake, Android, and Eclipse ADT Integration

2015-03-11 Thread Robert Dailey
I am implementing support for Android in my CMake scripts by using custom commands to invoke 'ant' to build the final APK. If I do it this way, and I generate for eclipse, how can I make sure it will integrate with the ADT plugin? Basically I want to be able to right-click my project in Eclipse

Re: [cmake-developers] [PATCH] User may now specify toolset through CMake GUI

2015-02-17 Thread Robert Dailey
On Tue, Feb 17, 2015 at 12:08 PM, Brad King brad.k...@kitware.com wrote: On 02/17/2015 12:21 PM, Robert Dailey wrote: What would be the best way to handle detecting which generators support toolset? The confusing piece I had to figure out last night is that there is simply no generator base

Re: [cmake-developers] [PATCH] User may now specify toolset through CMake GUI

2015-02-16 Thread Robert Dailey
, which may cause lost context since this email chain won't be connected to the new one (not sure if that matters). Thanks Brad. On Mon, Feb 16, 2015 at 10:35 AM, Brad King brad.k...@kitware.com wrote: On 02/15/2015 03:27 PM, rcdailey.li...@gmail.com wrote: From: Robert Dailey rcdai...@gmail.com

[cmake-developers] How to work with QtDialog?

2015-02-15 Thread Robert Dailey
I'm making minor modifications to add -T support to cmake-gui. However, I'm not familiar with how to develop CMake's GUI application. Do I generate for Visual Studio 2013 (I'm on windows)? I'm able to compile the QT dialog application and run it from Visual Studio, however if I have to add new

Re: [CMake] CMake Android with debugging

2015-02-05 Thread Robert Dailey
Would love some feedback from those who have experience with this setup. On Tue, Feb 3, 2015 at 11:47 AM, Robert Dailey rcdailey.li...@gmail.com wrote: So the way I've seen JAVA integration with NDK suggested is to use a custom target to launch ant to build the APK. However, if I do

[CMake] CMake Android with debugging

2015-02-03 Thread Robert Dailey
So the way I've seen JAVA integration with NDK suggested is to use a custom target to launch ant to build the APK. However, if I do it this way, how would I launch debugging from Eclipse with ADT installed? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] How can I make CTest not do dart-related stuff?

2015-01-30 Thread Robert Dailey
Apparently I have to: include( CTest ) I wasn't doing that. Now it works as you have explained. Thanks! On Fri, Jan 30, 2015 at 2:26 PM, Robert Dailey rcdailey.li...@gmail.com wrote: David, I added a CTestConfig.cmake right next to the root CMakeLists.txt and it's empty except for a comment

Re: [CMake] How can I make CTest not do dart-related stuff?

2015-01-30 Thread Robert Dailey
, the presence of CTestConfig.cmake in your top level source tree should suppress this error message. HTH, David C. On Fri, Jan 30, 2015 at 1:07 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I run ctest on my build server *just* to run the test executables and get result XML. I use

[CMake] How can I make CTest not do dart-related stuff?

2015-01-30 Thread Robert Dailey
I run ctest on my build server *just* to run the test executables and get result XML. I use a separate tool to parse the XML and upload it to an unrelated server (not CDash) I get errors like below: Cannot find file: /sourcerepo/build/DartConfiguration.tcl Can someone explain what CTest is

Re: [CMake] CMake Eclipse Resource Filters

2015-01-29 Thread Robert Dailey
Submitted here: http://public.kitware.com/Bug/view.php?id=15382 Thanks. On Wed, Jan 28, 2015 at 3:55 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Wednesday, January 28, 2015 12:56:24 Robert Dailey wrote: Hello, I generate my project using Eclipse CDT4 - Ninja. I have

Re: [CMake] CTest + Catch Framework

2015-01-28 Thread Robert Dailey
AM, Nils Gladitz nilsglad...@gmail.com wrote: On 28.01.2015 01:38, Robert Dailey wrote: I suspect that per David's suggestion, CTest would essentially do what you're doing but in a more thorough manner (based on the test framework used). So essentially CTest will need: - A new command line

[CMake] CMake Eclipse Resource Filters

2015-01-28 Thread Robert Dailey
Hello, I generate my project using Eclipse CDT4 - Ninja. I have a subdirectory called Third Party under my source directory that contains boost, QT, and a number of other very large libraries. I notice that the C++ indexer in Eclipse processes files in these directories and frequently locks up my

Re: [CMake] CTest + Catch Framework

2015-01-27 Thread Robert Dailey
? D On Tue, Jan 27, 2015 at 11:18 AM, Robert Dailey rcdailey.li...@gmail.com wrote: I wouldn't say this is an artificial problem. let me go into more detail. A single test can define any number of test cases. These are unknown to CMake scripts, as they are written and defined in code

Re: [CMake] CTest + Catch Framework

2015-01-27 Thread Robert Dailey
that it only seems like you have one thing to do, but certainly, it's possible. You must be doing #1 already, so you just have to make sure #2 always happens whenever #1 happens. Both eggs. D On Mon, Jan 26, 2015 at 4:05 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I believe so

Re: [CMake] CTest + Catch Framework

2015-01-26 Thread Robert Dailey
26, 2015 at 12:30 AM, Robert Dailey rcdailey.li...@gmail.com wrote: Hi, I'm using Catch as my unit test framework: https://github.com/philsquared/Catch Is it possible for CTest to report each TEST_CASE block as an individual test? My understanding is that CTest will only treat each

[CMake] Eclipse build project does nothing

2015-01-25 Thread Robert Dailey
I'm generating for Eclipse CDT4 - Ninja. When a build fails because of compiler errors or whatnot, Build project does absolutely nothing unless I change a CPP file and save it, then the build works. Is this a CMake issue or Eclipse setting? Help is appreciated. -- Powered by www.kitware.com

[CMake] CTest + Catch Framework

2015-01-25 Thread Robert Dailey
Hi, I'm using Catch as my unit test framework: https://github.com/philsquared/Catch Is it possible for CTest to report each TEST_CASE block as an individual test? My understanding is that CTest will only treat each executable as a test. However, my test structure is as follows: 1 library 1 test

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-21 Thread Robert Dailey
Thanks for your help so far. Your 3rd command produced the output below. I'll keep looking into this but just wanted to share. I'm not sure why it isn't working, and I'm not completely familiar with linux development so it will take me a while to figure this out. robert@robert-OptiPlex-745 ~ $

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Robert Dailey
On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz nilsglad...@gmail.com wrote: On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test program during configuration: /usr/bin/ld: cannot find crtbegin.o: no such file or directory /usr/bin/ld: cannot find

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Robert Dailey
On Tue, Jan 20, 2015 at 9:58 AM, Nils Gladitz nilsglad...@gmail.com wrote: On 01/20/2015 04:48 PM, Robert Dailey wrote: On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz nilsglad...@gmail.com wrote: On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test

[CMake] Specify 32-bit compilation to Clang

2015-01-19 Thread Robert Dailey
I'm running CMake 3.1 on Mint 64-bit OS. I need to generate an Eclipse project using Ninja that uses Clang to build a 32-bit application. When I do this: add_definitions(-m32) For some reason my code is not able to include STL headers (files not found). Any reason for this? Is there a more

[CMake] List of compile features from command line?

2015-01-17 Thread Robert Dailey
Can I use cmake to spit out a list of supported compile features based on my already-configured project? I'm not sure how I'm expected to get the list of features otherwise. The documentation does not explain this. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake

[CMake] Clang not using C++11 on Linux

2015-01-17 Thread Robert Dailey
I'm running a custom built CMake 3.1 on Ubuntu Server 12. I have Clang 3.4 installed. At the top of my root CMakeLists.txt, I have enabled C++11 like so: cmake_minimum_required( VERSION 3.1 ) if( UNIX ) set( CMAKE_CXX_FLAGS -std=c++11 -stdlib=libc++ ) endif() project( FrontEnd ) However when

[CMake] C# project integration with CMake 3.1

2015-01-15 Thread Robert Dailey
I have a managed C++ (CLI) project that I build using CMake. I have another C# project (Visual Studio 2013) that I maintain outside of CMake that needs to reference the managed C++ DLL output by CMake. What is the best approach for this? The C# project is technically a completely separate product

Re: [CMake] Removing compiler options

2014-12-16 Thread Robert Dailey
I still really need help with this. It's a blocker at this point for me. Help is greatly appreciated; thanks in advance. On Sun, Nov 9, 2014 at 10:02 PM, Robert Dailey rcdailey.li...@gmail.com wrote: When setting up a CLR project through CMake, it becomes important to be able to *remove

[CMake] Removing compiler options

2014-11-09 Thread Robert Dailey
When setting up a CLR project through CMake, it becomes important to be able to *remove* compiler options at the project level. For example, the following need to be removed (MSVC12): /RTC1 /EHsc There is no remove_compile_options() (which would be convenient). Any reason why this doesn't exist?

Re: [CMake] Copying DLLs to output directory

2014-11-01 Thread Robert Dailey
I've solved the problem that way in the past. What you do is copy the .user file and make the environment setup driven by configure_file() in CMake. That way at CMake configure time you can create a .user file for each .VCPROJ that has PATH setup to point to third party BIN directories as needed.

Re: [CMake] Copying DLLs to output directory

2014-10-31 Thread Robert Dailey
: Am 2014-10-28 18:25, schrieb Robert Dailey: I have a third party library like OpenSSL prebuilt for each platform and in my own structure in version control. I have a CMake script that creates an INTERFACE library target for it. I setup the include directories and link targets. However, I don't

Re: [CMake] Copying DLLs to output directory

2014-10-31 Thread Robert Dailey
will allow it. I use the copy if different argument to the CMake command for the copy. Seems to work. Mike Jackson On Oct 31, 2014, at 3:11 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I like this idea but it doesn't seem like it will work for targets with multiple DLLs... for example

Re: [CMake] [ANNOUNCE] CMake 3.1.0-rc1 now ready for testing!

2014-10-30 Thread Robert Dailey
Why are quotations required for generator expressions using lists now? Is there a technical reason for it? I think it's intuitive that it worked without them. It's never been clear in CMake when to use quotes or not outside of the fact that if you're passing a parameter to a function with a space

Re: [CMake] Copying DLLs to output directory

2014-10-28 Thread Robert Dailey
this and thus make life harder than needed. CMake configuration files should always do this right. OTOH, you could also write a wrapper batch file or change VS properties to modify PATH to include all libraries before the regular path. HS Am 28. Oktober 2014 02:55:08 MEZ, schrieb Robert Dailey

[CMake] Refer to all debug or release targets with generator expressions

2014-10-27 Thread Robert Dailey
I know that when defining link libraries, I can do this: $$CONFIG:Debug:${my_debug_libs} The debug libraries will be the same for all debug targets. Likewise with Release targets. Is there a way to refer to *all* release targets using generator expressions? There are 3 release configurations

Re: [CMake] Refer to all debug or release targets with generator expressions

2014-10-27 Thread Robert Dailey
} ) Must I do it like this for each and every configuration? On Mon, Oct 27, 2014 at 7:10 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I know that when defining link libraries, I can do this: $$CONFIG:Debug:${my_debug_libs} The debug libraries will be the same for all debug targets

[CMake] Copying DLLs to output directory

2014-10-27 Thread Robert Dailey
This actually used to be a very difficult problem to solve. However, to debug in visual studio it's essential. If I have DLLs located in third party directories OR from targets that I depend on, those must all be copied to the directory of the executable I'm debugging in order for those DLLs to

Re: [CMake] Refer to all debug or release targets with generator expressions

2014-10-27 Thread Robert Dailey
Message- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Robert Dailey Sent: Monday, October 27, 2014 5:12 PM To: CMake Subject: Re: [CMake] Refer to all debug or release targets with generator expressions I forgot to give a more concrete example. Consider this: add_library

Re: [CMake] Is this the proper way to define a package config?

2014-10-25 Thread Robert Dailey
it. Are you suggesting the opposite, that I should define a package config as a downstream consumer? On Sat, Oct 25, 2014 at 1:08 AM, Stephen Kelly steve...@gmail.com wrote: Robert Dailey wrote: What is the Filters target here? How is it created? Would I just create a target called Boost

Re: [CMake] Is this the proper way to define a package config?

2014-10-24 Thread Robert Dailey
/lib/libzmq.3.dylib ) Note that Common in this example is another imported target. On Thu, Oct 23, 2014 at 12:53 PM, Robert Dailey rcdailey.li...@gmail.com wrote: Thanks for the reply! Basically the boost library I have is precompiled and in my own unique structure. I do not plan

Re: [CMake] Is this the proper way to define a package config?

2014-10-23 Thread Robert Dailey
by a consumer of a package. HTH, Johannes [1] http://www.cmake.org/cmake/help/v3.0/module/FindBoost.html On Friday 17 October 2014 00:18:34 Robert Dailey wrote: I have a local package of boost built on Windows. It is always relative to the root of my project at a consistent structure

Re: [CMake] Is this the proper way to define a package config?

2014-10-22 Thread Robert Dailey
Can anyone help me with this? It would be much appreciated. Thank you. On Fri, Oct 17, 2014 at 12:18 AM, Robert Dailey rcdailey.li...@gmail.com wrote: I have a local package of boost built on Windows. It is always relative to the root of my project at a consistent structure and location. I

[CMake] Interface include directories

2014-10-16 Thread Robert Dailey
I'm ramping up on CMake 3.0 and I like that you've added INTERFACE_INCLUDE_DIRECTORIES. Is this automatic when I add a dependency on another target? For example, suppose I have two targets A and B. And in my target link libraries for B, I specify A. B now depends on A. Will I also inherit its

[CMake] Is this the proper way to define a package config?

2014-10-16 Thread Robert Dailey
I have a local package of boost built on Windows. It is always relative to the root of my project at a consistent structure and location. I wanted to define an import target for this and thought it might be best to define a BoostConfig.cmake package config file at the root of the boost lib

[CMake] Generator expressions for optimized/debug configurations

2014-08-12 Thread Robert Dailey
I just installed CMake 3.0 and I'm trying out the new generator expressions for the target_compile_definitions() command. I am doing this: target_compile_definitions( ${project_name} PRIVATE ${general_defs} PRIVATE $$CONFIG:debug:${debug_defs} PRIVATE

Re: [CMake] CMake for Android projects

2014-05-08 Thread Robert Dailey
at 10:10 PM, J Decker d3c...@gmail.com wrote: by putting them in a directory lib/cputype On Wed, May 7, 2014 at 5:19 PM, Robert Dailey rcdailey.li...@gmail.com wrote: How do I tell my android Java project where the *.so files are so it can package them into the APK for dynamic loading when I

<    1   2   3   4   5   6   7   8   9   >