. 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
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
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
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
://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
://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
/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
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');
://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_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
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
> 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
"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
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
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
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
>
>
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
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
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
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
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
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
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
/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
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
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
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
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
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
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
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:
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
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
# 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
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
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
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
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
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
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
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
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
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
. 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:
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
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
46 matches
Mail list logo