Re: [CMake] Duplicate builds with target_sources

2018-11-20 Thread Wesley Smith
should be private, if you want > the sources to be part of mylib_thing use interface. In general don't > use PUBLIC with target_sources. > On Tue, Nov 20, 2018 at 9:19 AM Wesley Smith > wrote: > > > > I have a library target defined as > > > > > > add_libra

[CMake] Duplicate builds with target_sources

2018-11-20 Thread Wesley Smith
I have a library target defined as add_library(mylib_core core_source1.cpp core_source2.cpp core_source3.cpp ) if(UNIX) target_sources(mylib_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/core_source4.cpp ${CMAKE_CURRENT_SOURCE_DIR}/core_source5.cpp ) endif() Then

Re: [cmake-developers] Embracing Modern CMake Video and Slides

2017-11-07 Thread Wesley Smith
Thanks for sharing! On Sun, Nov 5, 2017 at 10:09 AM, Stephen Kelly wrote: > Hi, > > I know I'm not active here at the moment, but I thought this post might be > interesting for some here: > > https://steveire.wordpress.com/2017/11/05/embracing-modern-cmake/ > > Thanks, > >

Re: [cmake-developers] Make it easier for beginners

2017-10-25 Thread Wesley Smith
I agree that if you do a search for how to setup a project with cmake, it's hard to know what's best practice. As cmake has evolved, the best practice has changed and many old style techniques still return toward the top of search results. For me, the best resources have been:

[CMake] OBJECT Libraries and linking against targets

2017-08-11 Thread Wesley Smith
Hi, I understand vaguely why OBJECT libraries can't link against other targets, but I don't think the restriction in place needs to be so constrained. Consider the following: * A target is being create as an OBJECT library * A number of other targets are defined as INTERFACE target where they

Re: [cmake-developers] C++ IDE

2017-08-09 Thread Wesley Smith
I have been really impressed with VSCode . On Sun, Aug 6, 2017 at 1:52 PM, Ivam Pretti wrote: > Can you recomend an IDE to code in C/C++? > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: >

Re: [cmake-developers] VS Project Settings User Defines

2017-03-23 Thread Wesley Smith
10:41 AM, Wesley Smith wrote: > > Specifically, I'm trying to add these tags: > > > > ..\..\add-in.ruleset > > true > > > > per-config tags are added via Flag arguments, > > What are the corresponding command-line flags that these add? > If they appear

[cmake-developers] VS Project Settings User Defines

2017-03-23 Thread Wesley Smith
Hi, I'm trying to figure out if it's possible to add user defined XML entries to the project config section of a visual studio file. From what I can see it's not, but maybe someone here know of a code path I haven't come across. Specifically, I'm trying to add these tags: ..\..\add-in.ruleset

Re: [CMake] C# Language Detection Errors in 3.8.0-rc2

2017-03-23 Thread Wesley Smith
at 5:23 PM, Wesley Smith <wesley.h...@gmail.com> wrote: > I'm trying to test out the C# features added to 3.8.0. A few things: > > + I couldn't find any documentation as to what the language name for > CSHARP was in the enable_language documentation page > > + When I trie

Re: [cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread Wesley Smith
So the answer is enable_language(CSHARP) should be enable_language(CSharp). -- 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

Re: [cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread Wesley Smith
/blob/master/Modules/ > CMakeDetermineCSharpCompiler.cmake > ? > > Send steps to reproduce the problem you're seeing... Maybe somebody > else here has encountered the same thing and worked through it > already. > > > HTH, > David C. > > > > On Wed, Mar 22,

[CMake] C# Language Detection Errors in 3.8.0-rc2

2017-03-16 Thread Wesley Smith
I'm trying to test out the C# features added to 3.8.0. A few things: + I couldn't find any documentation as to what the language name for CSHARP was in the enable_language documentation page + When I tried enable_language(CSHARP), I got some errors CMake Error at CMakeLists.txt:4

[CMake] FindCuda compiler flag problems

2015-05-11 Thread Wesley Smith
Hi, I'm trying to compile w/ CUDA on Centos6 using Cuda7 and C++11. When I have host propagate flags on, the CXX flags get mangles with escapes like this: ,\-fPIE\,\--std=c++11\,\-DGLM_FORCE_RADIANS\,\-g\ which causes a ton of errors. If I turn host propagate flags off, I then have to

Re: [CMake] Cuda CUDA_SEPARABLE_COMPILATION errors during linking

2015-04-20 Thread Wesley Smith
Apparently there's a bug report and fix for this: http://www.cmake.org/Bug/view.php?id=15016 But the fix hasn't been committed anywhere. It has been lingering in limbo for almost 9 months. Thanks!! wes On Fri, Apr 17, 2015 at 4:20 PM, Wesley Smith wesley.h...@gmail.com wrote

[CMake] Cuda7 issues

2015-04-17 Thread Wesley Smith
Hi, I'm trying to use Cmake 3.2.2 to build with Cuda7 on Windows 8. I have both Cuda 6.5 and Cuda 7.0 installed in these locations: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5 C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.0 When I try these: find_package(CUDA 7.0 REQUIRED)

[CMake] Cuda CUDA_SEPARABLE_COMPILATION errors during linking

2015-04-17 Thread Wesley Smith
With CUDA_SEPARABLE_COMPILATION enabled, I'm always getting linking errors when I try to build. Seems it's looking for a directory that doesn't exist: 'snip/build/CMakeFiles/SlicerLib.dir/Debug If I manually create this directory, everything works. Seems that either the directory path isn't

Re: [CMake] Cuda7 issues

2015-04-17 Thread Wesley Smith
it up to easily change this), or you can change your environment in Windows to point to the default version of CUDA you want (CUDA_PATH). It would be nice if it could search about and find an appropriate version. James On Fri, Apr 17, 2015 at 2:12 PM, Wesley Smith wesley.h...@gmail.com

[CMake] copying dylibs into OSX bundle

2014-11-19 Thread Wesley Smith
Hi, I've been searching for how to copy some dylib dependencies for quite a while and can't seem to find a definitive answer on the problem. I have a .dylib file that needs to go into my app bundle (e.g. MyApp.app/Frameworks). From what I've read, to use the FIXUP_BUNDLE command, the file