[CMake] Linking Shared C++ Object from ExternalProject Produces Binaries with Relative Path, not Absolute

2014-12-02 Thread J. Caleb Wherry
. The github example is fully compilable and exhibits the undesired behavior (Debian Wheezy 64-bit, CMake 3.0.1, g++-4.9.2). Thanks for the help! Caleb -- J. Caleb Wherry *Scientific Software Engineer* http://www.calebwherry.com http://www.calebwherry.com +1 (615) 708-5651 calebwhe...@gmail.com

[CMake] ExternalProject with target_link_library produces incorrect linking?

2014-12-09 Thread J. Caleb Wherry
is here: https://github.com/calebwherry/cmake-SO-question-main.git * I have also attached a tar'ed version. * System specs: Debian Wheezy 64-bit, CMake 3.0.2, GCC 4.9.2. Thanks, Caleb -- J. Caleb Wherry *Scientific Software Engineer* http://www.calebwherry.com http://www.calebwherry.com +1 (615

Re: [CMake] ExternalProject with target_link_library produces incorrect linking?

2014-12-09 Thread J. Caleb Wherry
Works like a charm, I knew I was overlooking something small. Thanks, Brad! -Caleb On Tue, Dec 9, 2014 at 2:30 PM, Brad King brad.k...@kitware.com wrote: On 12/09/2014 12:26 PM, J. Caleb Wherry wrote: add_library(ExtLib SHARED IMPORTED) set_property(TARGET ExtLib PROPERTY IMPORTED_LOCATION

Re: [CMake] MinGW flags

2014-12-15 Thread J. Caleb Wherry
other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake -- J. Caleb Wherry *Scientific Software Engineer* http://www.calebwherry.com http://www.calebwherry.com +1 (615

Re: [CMake] external project add, clone without history

2015-02-25 Thread J. Caleb Wherry
://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake -- J. Caleb Wherry *Scientific Software Engineer* http

Re: [CMake] external project add, clone without history

2015-02-25 Thread J. Caleb Wherry
://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake -- J. Caleb Wherry *Scientific Software Engineer* http://www.calebwherry.com http://www.calebwherry.com +1 (615) 708-5651 calebwhe...@gmail.com

Re: [CMake] Install( Targets ) loses executable permission

2015-04-21 Thread J. Caleb Wherry
/mailman/listinfo/cmake -- J. Caleb Wherry *Scientific Software Engineer* http://www.calebwherry.com http://www.calebwherry.com +1 (615) 708-5651 calebwhe...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

[CMake] Switching configuration to icc

2015-05-10 Thread J. Caleb Wherry
Just to be explicit, CC and CXX are shell variables that CMake reads. So invoke like below to make for sure they are getting set correctly: export CC=icc; export CXX=icc; cmake args Caleb On Sunday, May 10, 2015, Rahul K Soni ra...@ismu.ac.in javascript:_e(%7B%7D,'cvml','ra...@ismu.ac.in');

Re: [CMake] (no subject)

2015-05-12 Thread J. Caleb Wherry
://public.kitware.com/mailman/listinfo/cmake -- J. Caleb Wherry *Scientific Software Engineer* http://www.calebwherry.com http://www.calebwherry.com +1 (615) 708-5651 calebwhe...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki

[CMake] Imported libraries and cross platform target names

2015-08-18 Thread J. Caleb Wherry
CMAKE_IMPORT_LIBRARY_PREFIX and CMAKE_IMPORT_LIBRARY_POSTFIX should get you what you want. Then you just have to have one set property: SET_PROPERTY(TARGET test PROPERTY IMPORTED_LOCATION ${LIB_D}/${CMAKE_IMPORT_LIBRARY_PREFIX} timer.${CMAKE_IMPORT_LIBRARY_POSTFIX}) -Caleb On Tuesday, August

Re: [CMake] Link errors - can I get more verbose messages?

2015-12-16 Thread J. Caleb Wherry
rses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake > -- J. Caleb Wherry *Scientific

Re: [CMake] Howto install executables that aren't targets

2016-03-09 Thread J. Caleb Wherry
> CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake > -- J. Cale

Re: [CMake] Howto install executables that aren't targets

2016-03-09 Thread J. Caleb Wherry
"install(FILES..." should work, that is how you install non-target files. Are you sure it isn't a permission issue? Do other install commands work that copy to /usr/bin? We'll need a little more information to diagnose the issue, an simple CMake example would be nice. Caleb On Wednesday, March

Re: [CMake] CMAKE_DL_LIBS

2016-03-01 Thread J. Caleb Wherry
That link looks fine to me. You might want to verify that the CMAKE_DL_LIBS variable actually contains what it should on your system (or a least contains what it should right before using it). You could explicitly add the "-dl" to that link statement and see if that works. That's what that

Re: [CMake] CMAKE_DL_LIBS

2016-03-01 Thread J. Caleb Wherry
Most likely solution: missing the "-ldl" link lib which should solve your missing symbol issues. The DSO error is most likely caused by the above. However, there could be a problem with your linking order. I'd have to see the CMake file to be sure. Caleb On Tuesday, March 1, 2016, Aaron Boxer

Re: [CMake] How to link shared lib on windows (visual studio 2014).

2016-04-25 Thread J. Caleb Wherry
s to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > >

Re: [CMake] How to link shared lib on windows (visual studio 2014).

2016-04-25 Thread J. Caleb Wherry
installing anything, you are just building a project and you want it to run after building. Installing brings a lot more baggage and using it here seems like a bad idea. -Caleb On Monday, April 25, 2016, J Decker <d3c...@gmail.com> wrote: > > On Apr 25, 2016 6:41 PM, "J. Caleb Whe

Re: [CMake] How to link shared lib on windows (visual studio 2014).

2016-04-25 Thread J. Caleb Wherry
CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > htt

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-27 Thread J. Caleb Wherry
Not sure I understand your question but Visual Studio support just lagged a version for that feature. It is available in CMake 3.9: https://cmake.org/cmake/help/v3.9/release/3.9.html Or are you asking before this version how was CUDA supported? -Caleb On Thu, Jul 27, 2017 at 9:07 PM Brian

[CMake] C++/CLI Wrapper with C#

2017-09-20 Thread J. Caleb Wherry
All, I recently upgraded to CMake 3.8 to get support for C# as a first class language and it works nicely. However, I am seeking clarification on something: I currently compile my C++/CLI wrapper as a SHARED lib. This produces a linking lib which I didn't expect and don't want (using the lib

Re: [CMake] SWIG_ADD_LIBRARY Documentation?

2017-12-09 Thread J. Caleb Wherry
USE_BUILD_SHARED_LIB literally means use whatever is set by BUILD_SHARED_LIBS. Typically, this is the preferred method for either building a static or shared lib since the user can control what they want/need. You don’t have to specify the type of lib to build when calling add_library, it uses

Re: [CMake] SWIG_ADD_LIBRARY Documentation?

2017-12-09 Thread J. Caleb Wherry
tical difference of these choices? > > Rob > > > > > On Sat, Dec 9, 2017 at 9:43 AM, J. Caleb Wherry <calebwhe...@gmail.com> > wrote: > > USE_BUILD_SHARED_LIB literally means use whatever is set by > > BUILD_SHARED_LIBS. Typically, this is the preferred m

Re: [CMake] SWIG_ADD_LIBRARY Documentation?

2017-12-09 Thread J. Caleb Wherry
for your patient and detailed answers -- and sorry for > dropping the mailing list. > > It seems very foreign to me to load a static library at runtime -- oh well. > > How is 'MODULE' different from 'SHARED' ? > > Rob > > > On Sat, Dec 9, 2017 at 11:08 AM, J. Caleb

Re: [CMake] How to update librarian section of project properties for a visual studio project using cmake?

2018-05-15 Thread J. Caleb Wherry
/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake

Re: [CMake] How to update librarian section of project properties for a visual studio project using cmake?

2018-05-15 Thread J. Caleb Wherry
cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/list

Re: [CMake] How to add files to Visual Studio 'Utility' project

2018-02-02 Thread J. Caleb Wherry
nd > command target_sources implies that the target was created by one the > commands add_library or add_executable. > > > > > > *From: *CMake <cmake-boun...@cmake.org> on behalf of "J. Caleb Wherry" < > calebwhe...@gmail.com> > *Date: *Thu

Re: [CMake] How to add files to Visual Studio 'Utility' project

2018-02-02 Thread J. Caleb Wherry
k.org/Bug/view.php?id=7835 > > May be this is a plain feature request that should be properly written > based on history and current usage. > Typically I think that anyone would want to add any file to IDE project > display. > > > 2018-02-02 14:57 GMT+01:00 J. Caleb W

Re: [CMake] CMake + mdvc + --build + jenkins

2018-02-01 Thread J. Caleb Wherry
raining.html > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake > > -- J. Caleb Wherry *Scientific Software Engineer* <http://www.calebw

[CMake] How to add files to Visual Studio 'Utility' project

2018-02-01 Thread J. Caleb Wherry
Hello! I am having trouble with a generated VS project that I hope is either a bug or has an easy fix... When using UseJava, the add_jar function, and Visual Studio 2015, a VS 'Utility' project is created. I then want to add additional non-compiled files to this project so I try to use

Re: [CMake] define addition search path for .cmake files

2018-02-17 Thread J. Caleb Wherry
https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html#variable:CMAKE_MODULE_PATH Should do the trick. Set it before you call project, not sure if it works after that or not. -Caleb On Sat, Feb 17, 2018 at 7:47 AM wrote: > > > Hi! > > So, I have separate

Re: [CMake] Fwd: GLOB_RECURSE

2018-07-25 Thread J. Caleb Wherry
Latest CMake documentation can be found here: https://cmake.org/cmake/help/latest/ Searching for GLOB_RECURSE there leads to this page: https://cmake.org/cmake/help/latest/command/file.html Which is the command you are using. Docs for the command and option you are using are here:

Re: [CMake] Expected behaviour of #cmakedefine

2018-08-15 Thread J. Caleb Wherry
I suppose it all depends on if there are situations where you don’t want those variables set? To me, it doesn’t make sense to ever not have version numbers set so I would use #define. -Caleb On Wed, Aug 15, 2018 at 8:32 AM Ian Cullen wrote: > Hi, > > I'm trying to create a header file

Re: [CMake] Project referring to CSharp project generates incorrectly?

2018-08-16 Thread J. Caleb Wherry
FWIW: I do almost this exact thing currently and have no issues (even mix in Managed C++ wrappers around naive code). The only difference is that I don’t compile any C# modules, only Shared libs. Not sure if that could be a problem or not. I’m using CMake 3.11 and VS 2015. -Caleb On Thu, Aug

Re: [CMake] Project referring to CSharp project generates incorrectly?

2018-08-16 Thread J. Caleb Wherry
# targets as that is a specific notion to open native libs with dlopen(). That ticket even hints at only allowing specific target types, possible module was just overlooked? -Caleb On Thu, Aug 16, 2018 at 6:55 PM J. Caleb Wherry wrote: > FWIW: I do almost this exact thing currently and have no iss

Re: [CMake] Cannot prevent import library from being created with VS generator

2018-07-09 Thread J. Caleb Wherry
I’m also interested in this. Side note 1: Things like this eventually lead me to have a post process (a python script) on all my VS project files to “fix” any issues like this. If I can’t figure out a way to do something specific in a VS project, I just add it to my post process until I

Re: [CMake] Concurrency issues with copy_if_different

2018-07-12 Thread J. Caleb Wherry
Had the same problem and went with #2 -Caleb On Thu, Jul 12, 2018 at 1:58 AM Olivier Croquette wrote: > Hello, > > in one of our projects, we use copy_if_different to copy some DLLs > required by the runtime. It's called as post-build action. The problem > is that several targets want to copy

Re: [CMake] wix msi csharp dotnet project type

2018-07-09 Thread J. Caleb Wherry
g.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake > -- J. Caleb Wherry *Scientific Software Engineer* <http://www.calebwherry.com> htt

Re: [CMake] Why does CMake 3.9.0 open VS2017 when targeting 2013 after installing 2017... sigh.

2018-10-01 Thread J. Caleb Wherry
The Visual C++ team sheds a little more light on this: https://blogs.msdn.microsoft.com/vcblog/2018/10/01/cuda-10-is-now-available-with-support-for-the-latest-visual-studio-2017-versions/ Glad they listened to the community and worked with NVIDIA to make this work. We’ve been holding off

Re: [CMake] Concurrency issues with copy_if_different

2018-12-08 Thread J. Caleb Wherry
write wrappers around creating targets then you can do extra book keeping when a target is create. In this case, you just add another depends on the custom target that copies the dependent libs. -Caleb On Sat, Dec 8, 2018 at 7:14 PM Olivier Croquette wrote: > On 2018-7-12 15:16, J. Caleb Whe

Re: [CMake] CMake Project Generation Speedup

2019-03-20 Thread J. Caleb Wherry
e.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake -- J. Caleb Wherry *Scientific Software Engineer* <http://www.calebwherry.com> http://www.calebwherry.com +1 (615) 708-5651 calebwhe...@gmail.com -- P

Re: [CMake] CMake Project Generation Speedup

2019-03-20 Thread J. Caleb Wherry
I was also surprised when "cmake --trace" gave 0 information related to the generate step. I assume this is expected behavior? Oh and: CMake: 3.13.4 Visual Studio 2017 15.9.9 Win7 -Caleb On Wed, Mar 20, 2019 at 4:53 PM J. Caleb Wherry wrote: > Did anything ever come of t

Re: [CMake] CMake Dependence on C: drive?

2019-02-19 Thread J. Caleb Wherry
Seems strange. Just yesterday I pulled down 3.13.4 and had no issues. I check cmake into our repo so it gets invoked on an assortment of different drives. I do the same thing you do and just change our bat config file to point to the new cmake binary. Never had any issues. I am running on Win7

Re: [CMake] ALL_BUILD with msbuild

2019-05-13 Thread J. Caleb Wherry
I do not specify the project name when running my main build, I call msbuild like you do in #2. How do you exclude things from ‘all’? I’ve actually ran into issues with VS and how pressing “Build” in the IDE and running on the command line do different things. This comes down to 2 target

Re: [CMake] ALL_BUILD with msbuild

2019-05-13 Thread J. Caleb Wherry
. From the documentation, it sounds like we > really do want to build the ALL_BUILD target, but I'm not sure how to get > the ZERO_CHECK project to properly build with msbuild. I can probably use > EXCLUDE_FROM_DEFAULT_BUILD as a workaround in the meantime, though. > > On Mon, May 13, 2019 at 1:

Re: [CMake] add my own language-name using standard functions

2019-07-19 Thread J. Caleb Wherry
Also, I would not suggest using the Java language support as reference as it is not a first class supported language. As you said, it defines custom functions and macros to do everything. I would suggest you look at the C# support as it is a first class language (meaning: you can add it to your

[CMake] MSVC Version Location for VisualStudio Install

2019-11-12 Thread J. Caleb Wherry
All, I have been adding support for VS2019 to our build and ran into some CMake code that was hard coded for a specific version related to MSVC. Specifically, it is the folder under the VS install dir with version like "14.23.28105". It is in the path for where the compiler is found but I can't