Re: [CMake] Build and run an external project

2018-12-04 Thread James Bigler
, 2018 at 12:54 AM Eric Noulard wrote: > > > Le mar. 4 déc. 2018 à 06:11, James Bigler a > écrit : > >> Unfortunately I don't think your suggestion will work. >> >> I need to invoke a custom executable to build my project and not a >> msproject. I also nee

Re: [CMake] Build and run an external project

2018-12-03 Thread James Bigler
ke.org/cmake/help/latest/command/include_external_msproject.html > > wouldn't be better in your case? > > > Le mar. 4 déc. 2018 01:43, James Bigler a écrit : > >> I have an external project that I would like to compile using their build >> system, and be able

[CMake] Build and run an external project

2018-12-03 Thread James Bigler
I have an external project that I would like to compile using their build system, and be able to set the VS_COMMAND to the result of the project so I can run it. add_custom_target(${cmake_target} COMMAND make mytarget ${BUILD_ARGS} COMMAND ${CMAKE_COMMAND} -E

[cmake-developers] Changes for v3.5.0

2016-02-09 Thread James Bigler
Will changes integrated into master automatically be slated for either v3.5.0 RC2 or v.3.5.0 final? -- 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

[Cmake-commits] CMake branch, next, updated. v3.5.0-rc1-78-g59535a6

2016-02-08 Thread James Bigler
ow. - Log - https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=59535a60761ca79e685e24f18bbd621e70d0594b commit 59535a60761ca79e685e24f18bbd621e70d0594b Merge: bd6a289 e739ef7 Author: James Bigler <jamesbig...@gmail.com> AuthorDate: Mon Feb 8 15:40:22 2016 -0500 Commit:

[Cmake-commits] CMake branch, next, updated. v3.5.0-rc1-47-g42416ba

2016-02-05 Thread James Bigler
ow. - Log - https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=42416ba1798a81bd3d0e9aeb9919dc3e3de3c603 commit 42416ba1798a81bd3d0e9aeb9919dc3e3de3c603 Merge: 7885d80 4b561b4 Author: James Bigler <jamesbig...@gmail.com> AuthorDate: Fri Feb 5 16:36:23 2016 -0500 Commit:

[Cmake-commits] CMake branch, next, updated. v3.5.0-rc1-49-gb11b9d0

2016-02-05 Thread James Bigler
ow. - Log - https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b11b9d05dd1d9e77ac76f6b9b72c4f1face53418 commit b11b9d05dd1d9e77ac76f6b9b72c4f1face53418 Merge: 42416ba 81ecc72 Author: James Bigler <jamesbig...@gmail.com> AuthorDate: Fri Feb 5 16:51:26 2016 -0500 Commit:

[CMake] get_filename_component(var "" ABSOLUTE)

2016-02-05 Thread James Bigler
If I specify an empty value for filename, I get the behavior of relative path, and var turns into CMAKE_CURRENT_SOURCE_DIR. It seems like if I put an empty file I should get back an empty output. James -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] Interesting behavior of MAIN_DEPENDENCY in makefiles

2016-01-14 Thread James Bigler
Say you have a simple cpp file: cat > test.cpp int main() { return 0; } Then you have this as your CMakeLists.txt file: set(input_file test.cpp) set(generated_file ${CMAKE_CURRENT_BINARY_DIR}/${input_file}.blah${CMAKE_CXX_OUTPUT_EXTENSION}) add_custom_command( OUTPUT ${generated_file}

[CMake] VS's /Zo flag

2015-12-14 Thread James Bigler
Has anyone been able to use the /Zo flag? I tried to add it to my RelWithDebInfo build, but the flag doesn't seem to be showing up in the command line (in the GUI). My flags are: /MT /O2 /Ob2 /D NDEBUG /Zi /Zo I'm using cmake 3.2.1. Documentation on /Zo (available in VS2013.3+:

Re: [CMake] VS's /Zo flag

2015-12-14 Thread James Bigler
t; section in the "Command Line" section of the project settings. On Mon, Dec 14, 2015 at 4:35 PM, James Bigler <jamesbig...@gmail.com> wrote: > Has anyone been able to use the /Zo flag? I tried to add it to my > RelWithDebInfo build, but the flag doesn't seem to be

Re: [CMake] cmake_check_build_system is causing a rebuild at "make install"

2015-10-20 Thread James Bigler
" following > that can be done before any build.) > > It would be nice if the CUDA dependency generation worked like regular > cpp file dependency generation so that cmake would be run only upon > change of files and that otherwise it did not have to be turned off > completely

Re: [CMake] cmake_check_build_system is causing a rebuild at "make install"

2015-10-18 Thread James Bigler
This could be caused by CUDA generating dependencies and then needing to load them at the next configure step. For our automated builds, where we don't rely on dependencies during development (e.g. build one main target from scratch then throw it away), we set the CMAKE_SUPPRESS_REGENERATION

Re: [CMake] FindCUDA discard any previous value of CUDA_USE_STATIC_CUDA_RUNTIME

2015-10-13 Thread James Bigler
a runtime variable.") > endif() > endif() > ... > macro(cuda_unset_include_and_libraries) > ... > if(NOT CUDA_USE_STATIC_CUDA_RUNTIME_FORCED ) > unset(CUDA_USE_STATIC_CUDA_RUNTIME CACHE) > endif() > endmacro() > > > Le lun. 12 oct. 2015 à 14:32, James Bigler <jamesbi

Re: [CMake] FindCUDA discard any previous value of CUDA_USE_STATIC_CUDA_RUNTIME

2015-10-12 Thread James Bigler
Whether you can use the static runtime is based on the toolkit found, so if you change the toolkit (checked with the CUDA_TOOLKIT_ROOT_DIR_INTERNAL variable) we need to reset all dependent values. I don't see a clean way to get this to work in the way you want. The script can't tell the

[CMake] Adding file to IDE folder without adding files to targets

2015-08-28 Thread James Bigler
I want to have some files show up in the IDE. I know I can add files to targets, but the problem is these files don't belong to a particular target. It would be nice to have them show up in a folder (similar to how the target FOLDER property or source_group function works). Is this possible?

[CMake] file(GENERATE) and executable permissions

2015-07-13 Thread James Bigler
Is it possible to set the generated file's executable permissions when using file(GENERATE)? I'm trying to generate shell scripts, and I want the executable bit set. Thanks, James -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [cmake-developers] PATCH: add subcommand string(APPEND)

2015-07-06 Thread James Bigler
list(APPEND) requires at least one element argument, right? Can you require the same thing for string(APPEND)? That would make it symmetric and remove your edge case. On Mon, Jul 6, 2015 at 2:47 PM, Daniel Pfeifer dan...@pfeifer-mail.de wrote: On Mon, Jul 6, 2015 at 8:41 PM, Brad King

Re: [CMake] CUDA OBJECT libraries?

2015-06-19 Thread James Bigler
I looked at it briefly one day, and I couldn't figure out a way to tie the output of custom commands to the list of objects that add_library(OBJECTS) produces. Alternatively since all you want is a list of objects, FindCUDA can produce this just as well. Use the CUDA_WRAP_SRCS macro. It

Re: [CMake] FindCuda compiler flag problems

2015-05-11 Thread James Bigler
The issue is that nvcc doesn't accept host compiler flags that are C++ only. It does understand a version of the command directly (-std c++11). There should be a fix for this in TOT. See if you can grab a nightly and test it out. James On Mon, May 11, 2015 at 10:54 AM, Wesley Smith

Re: [cmake-developers] cmake --help-policy CMP0057 MAIN_DEPENDENCY

2015-05-11 Thread James Bigler
OK, thanks. I still think that if there is a difference in behavior for Makefile generators between MAIN_DEPENDENCY and DEPENDENCY there is a bug in CMake. Perhaps there needs to be bug filed for that. Here's the documentation: In makefile terms this creates a new target in the following form::

Re: [cmake-developers] cmake --help-policy CMP0057 MAIN_DEPENDENCY

2015-04-28 Thread James Bigler
...@gmail.com wrote: On 04/27/2015 11:48 PM, James Bigler wrote: The problem is the current detection only barfs (unless I missed something - please correct if I'm wrong). What we need is detection and adaptation. Rather than telling the user, DON'T DO THAT! we should be helping the user

Re: [cmake-developers] cmake --help-policy CMP0057 MAIN_DEPENDENCY

2015-04-27 Thread James Bigler
From what I understand the only time this really became a problem was when there were multiple instances of MAIN_DEPENENCY across multiple targets. If done within a single target CMake did the right thing and only attached the first build rule. The issue really seems to be related to multiple

[cmake-developers] cmake --help-policy CMP0057 MAIN_DEPENDENCY

2015-04-24 Thread James Bigler
This new policy breaks a long standing feature of FindCUDA. Basically I could add the MAIN_DEPENDENCY to all CUDA files built. If the same CUDA file was used in multiple custom commands it would attach the build rule to the first command, and leave the remaining ones as phantom .rule files in

[Cmake-commits] CMake branch, next, updated. v3.2.2-1958-gb63f40e

2015-04-20 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b63f40e4c616204ff4950163728dd1951eb86f6a commit b63f40e4c616204ff4950163728dd1951eb86f6a Merge: 88d5275 e88217c Author: James Bigler jamesbig...@gmail.com AuthorDate: Mon Apr 20 14:39:58 2015 -0400 Commit: CMake Topic Stage

Re: [CMake] Cuda7 issues

2015-04-17 Thread James Bigler
FindCUDA doesn't look for a specific version, but rather checks to see if the version it found is the one you asked for. You can set the CUDA_TOOLKIT_ROOT_DIR to the one you want (and reconfigure - I've set it up to easily change this), or you can change your environment in Windows to point to

[Cmake-commits] CMake branch, next, updated. v3.2.1-1645-g7fbfea4

2015-04-08 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7fbfea4b7571b9eae5819d73d866ee2e4f26714b commit 7fbfea4b7571b9eae5819d73d866ee2e4f26714b Merge: fc2f2bd 6b29185 Author: James Bigler jamesbig...@gmail.com AuthorDate: Wed Apr 8 15:53:58 2015 -0400 Commit: CMake Topic Stage

[Cmake-commits] CMake branch, next, updated. v3.2.1-1654-g311d165

2015-04-08 Thread James Bigler
311d1653f9f79a4fe719491a116425aa56d95f78 Merge: f920f7e f0614dd Author: James Bigler jamesbig...@gmail.com AuthorDate: Wed Apr 8 17:11:49 2015 -0400 Commit: CMake Topic Stage kwro...@kitware.com CommitDate: Wed Apr 8 17:11:49 2015 -0400 Merge topic 'FindCUDA.cmake/CUDA_SOURCE_FILE

[Cmake-commits] CMake branch, next, updated. v3.2.1-1575-ge409a89

2015-04-07 Thread James Bigler
, below. - Log - http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e409a8953a09e2a20428a6613115eb124796f808 commit e409a8953a09e2a20428a6613115eb124796f808 Merge: baadaeb 57661fe Author: James Bigler jamesbig...@gmail.com AuthorDate

[Cmake-commits] CMake branch, next, updated. v3.2.1-1403-gfdf5e06

2015-04-02 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fdf5e062c75d6d55f8e8fa8f3f6dd0efe3663340 commit fdf5e062c75d6d55f8e8fa8f3f6dd0efe3663340 Merge: 82c65ba 06fa63d Author: James Bigler jamesbig...@gmail.com AuthorDate: Thu Apr 2 19:12:56 2015 -0400 Commit: CMake Topic Stage

[cmake-developers] What commit message will be used when merging topics from stage to next to master

2015-04-01 Thread James Bigler
I have a topic that I pushed to stage, so someone else could take a look. At this point, it needed some fixing, so I made some changes to my local topic and pushed those back to the same topic. When I push the topic into next and the testing passes, what checkin string will be used for change

Re: [cmake-developers] CUDA as a compiler instead FindCUDA?

2015-02-03 Thread James Bigler
On Sat, Jan 17, 2015 at 8:13 AM, Adam Strzelecki o...@java.pl wrote: 1. Support for dependency scanning. If I change a header included by file.cu I want file.cu to be recompiled. This is easy for makefiles, hard for anything else. .cu is superset of C++ so it should be pretty easy to get

Re: [CMake] Passing -x=cu to FindCUDA, and specifying libraries to nvcc

2015-01-16 Thread James Bigler
On Fri, Jan 16, 2015 at 9:25 AM, Irwin Zaid irwin.z...@physics.ox.ac.uk wrote: Hi all (and James), I just have two other quick questions about FindCUDA. Here we go! 1) I have a project that tries to keep all its CUDA code in .cpp files. I'm currently making this work with a lot of dummy .cu

Re: [CMake] Passing -x=cu to FindCUDA, and specifying libraries to nvcc

2015-01-16 Thread James Bigler
On Fri, Jan 16, 2015 at 10:15 AM, Irwin Zaid irwin.z...@physics.ox.ac.uk wrote: Hi James, Thanks for the quick reply. Some thoughts... FindCUDA only looks for .cu files. In CUDA_WRAP_SRCS: get_source_file_property(_is_header ${file} HEADER_FILE_ONLY) if(${file} MATCHES \\.cu$ AND NOT

Re: [cmake-developers] CUDA as a compiler instead FindCUDA?

2015-01-16 Thread James Bigler
On Fri, Jan 16, 2015 at 6:46 AM, Brad King brad.k...@kitware.com wrote: On 01/16/2015 06:54 AM, Adam Strzelecki wrote: Hi. It makes me curious why CUDA support is not just implemented as compiler via proper CMakeDetermineCUDACompiler I don't think there is any reason besides no one doing

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-06 Thread James Bigler
its flags to the intermediate link file. Did you mean to put message commands into CUDA_LINK_SEPARABLE___COMPILATION_OBJECTS itself? When I put them into my main CMakeLists.txt, nothing is printed for ${nvcc_flags} or the other variables. James Bigler wrote: On Tue, Jan 6

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-06 Thread James Bigler
to get -fPIC passed to the intermediate linking? Am I meant to always build in Debug mode just for that? Irwin Irwin Zaid wrote: I just double-checked. The -fPIC is definitely there for each individual object file, but not for the *_intermediate_link.o. Irwin James Bigler wrote: James

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-06 Thread James Bigler
I've pushed a change into 'stage' [1] that I hope to get into 'next' (something isn't working with my ssh authentication). James [1] commit b4e54f9b8c748f78d16e9da055a7e0436d7654ef Author: James Bigler @ Date: Tue Jan 6 16:28:05 2015 -0700 FindCUDA: Add relevant CMAKE_{C,CXX}_FLAGS

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-06 Thread James Bigler
On Tue, Jan 6, 2015 at 8:54 AM, Irwin Zaid irwin.z...@physics.ox.ac.uk wrote: Okay, an update on this. 2) This is trickier and, unfortunately, still not working. We are already adding -fPIC to CMAKE_CXX_FLAGS, should that not be enough? I also tried adding it to both CMAKE_CXX_FLAGS_DEBUG

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-06 Thread James Bigler
commands into CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS itself? When I put them into my main CMakeLists.txt, nothing is printed for ${nvcc_flags} or the other variables. James Bigler wrote: On Tue, Jan 6, 2015 at 8:54 AM, Irwin Zaid irwin.z...@physics.ox.ac.uk mailto:irwin.z

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-05 Thread James Bigler
On Mon, Jan 5, 2015 at 1:57 PM, Irwin Zaid irwin.z...@physics.ox.ac.uk wrote: Hi James, Thanks for the quick reply! As I mentioned, we've hit two issues. The first is the project dependencies one, which I'll try and describe more a bit below. I'm not a CMake expert, so please bear with me.

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-05 Thread James Bigler
and, indeed, the *_intermediate_link.o file is not being passed -fPIC. Is this our problem? What is the correct fix? Irwin James Bigler wrote: On Mon, Jan 5, 2015 at 1:57 PM, Irwin Zaid irwin.z...@physics.ox.ac.uk mailto:irwin.z...@physics.ox.ac.uk wrote: Hi James, Thanks

Re: [CMake] FindCUDA ignores project dependencies when separable compilation is on

2015-01-05 Thread James Bigler
The only CMake build dependency changes when doing separable compilation are found in CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS. Basically what this does is create a new rule to build an intermediate link file. For everything but some versions of MSVC generators it adds a custom command to

[CMake] IMPLICIT_DEPENDS and removal of dependencies

2015-01-05 Thread James Bigler
If I have a file that depended on another file (say file.cpp includes a.h which includes b.h), and then I rename b.h to c.h is CMake able to detect that b.h no longer exists on disk and remove the dependency from the makefiles? Right now the makefile still has a dependency to b.h which it cannot

Re: [CMake] FindCUDA: Specify nvcc language in cuda_add_executable

2014-11-24 Thread James Bigler
cuda_add_executable(mytarget foo.cc OPTIONS -x cu) Unfortunately, FindCUDA is setup to ignore any files that aren't .cu files. CUDA_WRAP_SRCS() ... foreach(file ${ARGN}) # Ignore any file marked as a HEADER_FILE_ONLY get_source_file_property(_is_header ${file} HEADER_FILE_ONLY)

Re: [cmake-developers] Chaining custom commands in VS 2010

2014-10-21 Thread James Bigler
or makefile) just to compile these rules. On Tue, Mar 5, 2013 at 11:10 AM, Brad King brad.k...@kitware.com wrote: On 03/05/2013 10:27 AM, Brad King wrote: On 12/04/2012 07:30 PM, James Bigler wrote: Is there something CMake can do to correct this error/bug with VS 2010? I've narrowed this case

Re: [cmake-developers] [PATCH] FindCUDA: Wrap keyword in if() string comparison

2014-09-18 Thread James Bigler
Could someone please explain to me why we need to change all the if statements to look super ugly? Expanding WIN32 to dereference the value is just a recipe for confusion. Honestly I would prefer if there was a policy to never deference variables in if statements and replace the if's with: if

[CMake] replacement for link_directories that support generator expressions

2014-09-08 Thread James Bigler
Is there an equivalent command to link_directories that support generator expressions? link_directories( $$CONFIG:Debug:${PROG_LIBRARY_DIRS_RELWITHDEBCRT} ) link_directories( $NOT:$CONFIG:Debug:${PROG_LIBRARY_DIRS} ) Basically I want to use PROG_LIBRARY_DIRS_RELWITHDEBCRT for Debug

Re: [CMake] About the FindCUDA.cmake module ande Separate Compilation

2014-07-23 Thread James Bigler
The CUDA_NVCC_FLAGS variable is a list not a string. You also have to turn CUDA_SEPARABLE_COMPILATION on. Try this list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_30,code=sm_30 -rdc=true) set( CUDA_SEPARABLE_COMPILATION ON) On Thu, Jul 17, 2014 at 8:07 AM, Notargiacomo Thibault

Re: [CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-10 Thread James Bigler
That work around seems to only be useful if you wish to modify all the find modules you wish to use. Is there a CMake variable you could set that would allow all the find_{include,library,path} functions within modules to pick up the HINT'ed path first then search the system paths? On Tue, Jun

[CMake] Bracket Argument

2014-06-02 Thread James Bigler
Are there some good examples of why one would use bracket arguments? I'm trying to understand the anticipated use cases. The bracket comments are great for a /**/ substitute. James -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[Cmake-commits] CMake branch, next, updated. v3.0.0-rc5-3190-g15db64e

2014-05-18 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=15db64e834f175212e4204928c19b3738e1fad3c commit 15db64e834f175212e4204928c19b3738e1fad3c Merge: 83d9bf1 26b4b63 Author: James Bigler jamesbig...@gmail.com AuthorDate: Sun May 18 02:32:01 2014 -0400 Commit: CMake Topic Stage

[cmake-developers] Procedural question

2014-05-12 Thread James Bigler
What do I do if I have a patch I want to go to next, but origin/master is broken? I'm supposed to create branches off of origin/master then merge them into next, but I can't verify that my fix works. For details about the break see my email on May 8th regarding external object files not being

[cmake-developers] Weird dependency on object files generated elsewhere

2014-05-08 Thread James Bigler
I was planning on fixing a bug related to flags and separable compilation for FindCUDA when I discovered something peculiar. I'm asking here in case I missed something with how source files are processed. I branched off of origin/master this morning. I have a macro that generates some custom

Re: [cmake-developers] Weird dependency on object files generated elsewhere

2014-05-08 Thread James Bigler
This is also causing my CUDA separable compilation feature to break as well. I'm adding object files to the source list of a target, and this works in certain situations, but not all. James From: jamesbig...@gmail.commailto:jamesbig...@gmail.com

Re: [cmake-developers] CMP0043 warnings everywhere

2014-04-28 Thread James Bigler
-Original Message- From: cmake-developers [mailto:cmake-developers-boun...@cmake.org] On Behalf Of Brad King Sent: Wednesday, April 23, 2014 11:06 AM To: cmake-developers@cmake.org Subject: Re: [cmake-developers] CMP0043 warnings everywhere On 04/23/2014 12:57 PM, James Bigler

[cmake-developers] CMP0043 warnings everywhere

2014-04-23 Thread James Bigler
I'm getting tons of CMP0043 warnings on my existing project. I have cmake_policy(VERSION 2.6) set in my project. Why am I being pestered by warnings? Shouldn't I get a policy value appropriate for 2.6 (so CMP0043 should be set to OLD)? CMake Warning (dev) in src/CMakeLists.txt: Policy CMP0043

[CMake] CMAKE_OSX_SYSROOT being ignored with frameworks in /Library/Frameworks

2014-04-23 Thread James Bigler
I have CMAKE_OSX_SYSROOT defined as something: set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk CACHE LIST OSX sysroot SDK directory FORCE) Then later I do a find_library command and it finds a library framework in

Re: [cmake-developers] Added CUBINFATBIN support to FindCUDA

2014-04-22 Thread James Bigler
It should already support cuda run time building by default. This is what the OBJ target is for CUDA_WRAP_SRCS. This is what cuda_add_library and cuda_add_executable do. On Fri, Apr 18, 2014 at 5:18 AM, Tobias Zirr opensou...@alphanew.netwrote: Hello, I just added CUBIN FATBIN compilation

Re: [CMake] get_directory_property and get_property

2014-04-17 Thread James Bigler
. Petr On Wed, Apr 16, 2014 at 9:35 PM, James Bigler jamesbig...@gmail.comwrote: I see that I can get the value of a variable from a directory using: get_directory_property(sub1_val1 DIRECTORY sub1 DEFINITION val1) Can I do the same thing with get_property? I see a VARIABLE entry, but I

[CMake] get_directory_property and get_property

2014-04-16 Thread James Bigler
I see that I can get the value of a variable from a directory using: get_directory_property(sub1_val1 DIRECTORY sub1 DEFINITION val1) Can I do the same thing with get_property? I see a VARIABLE entry, but I can't use that with the DIRECTORY indication. By the way what are the properties on

[cmake-developers] kwrobot changing documentation

2014-01-29 Thread James Bigler
I noticed in the git history that the kitware robot changed the documentation in the source files to something with :: characters between paragraphs. It also seemed to add them between the paragraphs of the same descriptions: # CUDA_WRAP_SRCS ( cuda_target format generated_files file0 file1

Re: [cmake-developers] FindCUDA: Github pull requests 82 and 83

2014-01-26 Thread James Bigler
I already have an implementation for static CUDA runtime linking that I've been testing in OptiX production builds. The other one needs some minor cleanups (I commented on it). On Thu, Jan 16, 2014 at 7:19 AM, Brad King brad.k...@kitware.com wrote: James, Please take a look at these

Re: [CMake] NVCC and Shared Library Full Path Linking

2013-12-23 Thread James Bigler
The way I implemented separable compilation it doesn't use nvcc to link. It relies on the host compiler to do the linking. I'm not sure at first blush why you are having this problem. One thing that should probably be done is to change this line of code in FindCUDA.cmake: # For now we are

[CMake] Visual Studio and /STACK

2013-10-25 Thread James Bigler
When did CMake stop adding /STACK:1000 to the link line? I just spent several days trying to figure out why my code started failing in strange ways, and I traced it down to this. Thanks, James -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Visual Studio and /STACK

2013-10-25 Thread James Bigler
Hmmm... Well that was a not backward compatible way of doing it. This behavior has existed for a long long time. Thanks for your help, James On Fri, Oct 25, 2013 at 10:58 AM, Nils Gladitz nilsglad...@gmail.comwrote: On 25.10.2013 18:42, James Bigler wrote: When did CMake stop adding /STACK

Re: [CMake] Visual Studio and /STACK

2013-10-25 Thread James Bigler
My experience mirrored Clint's. Our version of CMake on the farm was at 2.8.12, but locally developers were at differing versions. What made matters worse is that it is a lot harder to diagnose problems from farm built binaries, so it wasn't until one of the 4 developers looking into this

Re: [CMake] Visual Studio and /STACK

2013-10-25 Thread James Bigler
On Fri, Oct 25, 2013 at 3:28 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 10/25/2013 4:36 PM, James Bigler wrote: My experience mirrored Clint's. Our version of CMake on the farm was at 2.8.12, but locally developers were at differing versions. What made matters worse

Re: [CMake] Transitive linking and static libraries

2013-10-17 Thread James Bigler
/ImportedLibrary/CMakeLists.txt I don't see the second shared library linking to the imported static library. On Wed, Oct 16, 2013 at 3:44 PM, James Bigler jamesbig...@gmail.com wrote: On Wed, Oct 16, 2013 at 1:34 PM, Giordano Khouri kgiord...@nikon.net wrote: The static libraries must be compiled

[CMake] Transitive linking and static libraries

2013-10-16 Thread James Bigler
Is it possible to stop known static libraries from being carried through shared libraries? add_library(mystatic1 STATIC ...) add_library(mystatic2 STATIC ...) add_library(myshared SHARED ...) target_link_libraries(myshared mystatic1 mystatic2) add_executable(myexe) target_link_libraries(myexe

Re: [CMake] Transitive linking and static libraries

2013-10-16 Thread James Bigler
wrote: Have you tried using the LINK_PRIVATE signature to target link libraries? On Wed, Oct 16, 2013 at 2:05 PM, James Bigler jamesbig...@gmail.com wrote: Is it possible to stop known static libraries from being carried through shared libraries? add_library(mystatic1 STATIC

Re: [CMake] Transitive linking and static libraries

2013-10-16 Thread James Bigler
On Wed, Oct 16, 2013 at 1:34 PM, Giordano Khouri kgiord...@nikon.netwrote: The static libraries must be compiled with -fvisibility=hidden. Symbols with default visibility are marked as “public” and will leak from a shared library. With hidden visibility, they symbols are marked as “private

[CMake] What is the prescribed way to link in dependencies for a static library

2013-09-17 Thread James Bigler
I have a static library I found using find_library. Typically with shared libraries I just link against the library and the dependencies come along for the ride. What is the prescribed way of doing this for static libraries? I don't think I want to do create an imported target, as this isn't a

Re: [CMake] What is the prescribed way to link in dependencies for a static library

2013-09-17 Thread James Bigler
On Tue, Sep 17, 2013 at 11:05 AM, Dan Kegel d...@kegel.com wrote: On Tue, Sep 17, 2013 at 9:41 AM, James Bigler jamesbig...@gmail.com wrote: I have a static library I found using find_library. Typically with shared libraries I just link against the library and the dependencies come along

[CMake] unset(PARENT_SCOPE)

2013-09-17 Thread James Bigler
If there is a set(PARENT_SCOPE) why isn't there an unset(PARENT_SCOPE)? It seems like a hole in the API. I noticed this when I was trying to update my push_variable/pop_variable functions. I use set(PARENT_SCOPE) to set the variable outside of the function, but when doing pop_variable I want to

Re: [cmake-developers] Linking projects with no C or CPP files

2013-09-13 Thread James Bigler
On Fri, Sep 13, 2013 at 8:21 AM, Brad King brad.k...@kitware.com wrote: On 09/12/2013 05:36 PM, James Bigler wrote: I discovered a long time ago that VS would link the output of a custom command. I just ran local experiments with VS 6, 7.1, 8, and 9 by manually modifying the ExternalOBJ

Re: [cmake-developers] CMake 2.8.12-rc3 Release.

2013-09-12 Thread James Bigler
I have a couple of issues with this release. 1. file(APPEND ${myfile} string string2; string3) This generates an error at the ';' character, which never did before. So far as I understand, a ';' character should still be legal here. Please correct me if I'm wrong. 2. One of

Re: [cmake-developers] [CMake] CMake 2.8.12-rc3 Release.

2013-09-12 Thread James Bigler
On Thu, Sep 12, 2013 at 12:10 PM, Brad King brad.k...@kitware.com wrote: On 09/12/2013 01:27 PM, James Bigler wrote: 1. file(APPEND ${myfile} string string2; string3) This generates an error at the ';' character, which never did before. So far as I understand

[cmake-developers] Linking projects with no C or CPP files

2013-09-12 Thread James Bigler
In 2.8.12 and 2.8.11.2 I noticed the following problem for VS 2012 builds. VS 2010 builds are fine. Also CMake 2.8.10.1 works just fine. VS 2012 doesn't link the objects into a library. It fails to run the link command at all. I'm trying to figure out why. I'm comparing the differences

Re: [cmake-developers] Linking projects with no C or CPP files

2013-09-12 Thread James Bigler
On Thu, Sep 12, 2013 at 1:32 PM, Brad King brad.k...@kitware.com wrote: On 09/12/2013 03:08 PM, James Bigler wrote: In 2.8.12 and 2.8.11.2 I noticed the following problem for VS 2012 builds. VS 2010 builds are fine. Also CMake 2.8.10.1 works just fine. VS 2012 doesn't link the objects

Re: [cmake-developers] Linking projects with no C or CPP files

2013-09-12 Thread James Bigler
On Thu, Sep 12, 2013 at 3:07 PM, Brad King brad.k...@kitware.com wrote: On 09/12/2013 04:57 PM, James Bigler wrote: This seems kind of confusing when the default for all the other VS generators is to link in the output of the custom command. Does that not seem like a problem? The goal

Re: [cmake-developers] Linking projects with no C or CPP files

2013-09-12 Thread James Bigler
On Thu, Sep 12, 2013 at 3:28 PM, James Bigler jamesbig...@gmail.com wrote: On Thu, Sep 12, 2013 at 3:07 PM, Brad King brad.k...@kitware.com wrote: On 09/12/2013 04:57 PM, James Bigler wrote: This seems kind of confusing when the default for all the other VS generators is to link

Re: [cmake-developers] Linking projects with no C or CPP files

2013-09-12 Thread James Bigler
On Thu, Sep 12, 2013 at 2:49 PM, Brad King brad.k...@kitware.com wrote: On 09/12/2013 04:45 PM, James Bigler wrote: I don't actually add the object file to the build, because VS would link in the output of the custom command That's the exact problem the change I linked fixes. You should

Re: [CMake] [cmake-developers] CMake 2.8.12-rc3 Release.

2013-09-12 Thread James Bigler
I have a couple of issues with this release. 1. file(APPEND ${myfile} string string2; string3) This generates an error at the ';' character, which never did before. So far as I understand, a ';' character should still be legal here. Please correct me if I'm wrong. 2. One of

Re: [CMake] Problem on an external library depending on an internal one

2013-09-05 Thread James Bigler
I have this same question. There doesn't seem to be a way to have these imported target see other targets. I can pull the full path out for this target, but it seems less elegant. On Thu, Dec 22, 2011 at 11:08 AM, Marco Corvo marco.co...@pd.infn.itwrote: Hi all, I have a big project which

Re: [CMake] Listing headers in source lists

2013-07-12 Thread James Bigler
On Wed, Jun 12, 2013 at 11:03 AM, Bill Hoffman bill.hoff...@kitware.comwrote: On 6/12/2013 10:29 AM, J Decker wrote: It's not nessesary for 2005, 2008, 2010, or 2012 versions. visual studio builds a seperate browse information database. 2010 and 12, when in sources you can right click on

[CMake] Mac: libtool -static instead of ar + ranlib

2013-07-11 Thread James Bigler
Is there a way to use libtool -static instead of ar + ranlib? I'm running into some situations where ar + ranlib are generating errors where libtool -static does not. Basically I have a tool that generates object files (CUDA), but it can only do so for a single architecture at a time. If I

Re: [cmake-developers] [CMake 0014201]: FindCUDA does not forward include directories assigned by target_include_directories()

2013-06-05 Thread James Bigler
On Wed, Jun 5, 2013 at 7:45 AM, Stephen Kelly steve...@gmail.com wrote: James Bigler wrote: Things get dicey when you want to pass things like include directories as arguments. There are quotes to deal with as well as maximum argument length issues. I'm not saying it can't be done

Re: [cmake-developers] [CMake 0014201]: FindCUDA does not forward include directories assigned by target_include_directories()

2013-06-04 Thread James Bigler
What is this change qt4-macros-TARGET-arg? Things get dicey when you want to pass things like include directories as arguments. There are quotes to deal with as well as maximum argument length issues. I'm not saying it can't be done, but it needs to be done *carefully*. I would really really

Re: [cmake-developers] [CMake 0014201]: FindCUDA does not forward include directories assigned by target_include_directories()

2013-06-04 Thread James Bigler
On Tue, Jun 4, 2013 at 12:06 PM, Brad King brad.k...@kitware.com wrote: On 06/04/2013 02:01 PM, James Bigler wrote: What is this change qt4-macros-TARGET-arg? http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9ce60ff5 OK, that looks similar to how I would have written it. I would

Re: [cmake-developers] [CMake 0014201]: FindCUDA does not forward include directories assigned by target_include_directories()

2013-06-04 Thread James Bigler
code), and I would still be unable to do so with this mechanism. I guess I might be able to more of that processing into the build time executed script On Tue, Jun 4, 2013 at 1:51 PM, Brad King brad.k...@kitware.com wrote: On 06/04/2013 03:46 PM, James Bigler wrote: The $TARGET_PROPERTY

[CMake] configuration dependent add_custom_command dependencies

2013-05-09 Thread James Bigler
Is it possible to create configuration dependent dependencies for custom commands? I need to specify a different set of dependencies for Debug versus Release builds in Visual Studio. Thanks, James -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Incorrect setting of CUDA_HOST_COMPILER on macosx

2013-03-26 Thread James Bigler
Yes. This was an unforeseen side affect when Mac changed the default compiler mixed with a fix in CMake that changed the default C compiler from gcc to cc (previously you would get clang's CPP compile and gcc's C compiler). In general you want CUDA to use the same compiler as the rest of the

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2516-g7f19de3

2013-03-14 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7f19de3c6b559bd3529de46d2017d0a5a2b5cf10 commit 7f19de3c6b559bd3529de46d2017d0a5a2b5cf10 Merge: 533bbb4 b6e9b8f Author: James Bigler jamesbig...@gmail.com AuthorDate: Thu Mar 14 12:55:43 2013 -0400 Commit: CMake Topic Stage

[CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
I used the following code in 2.8.4, but in 2.8.9 and 2.8.10 it doesn't add the CUDA_CUDART_LIBRARY library to the eventual link line. I see my target linking against the parallelprim library but not the cudart library. Did something change in the interface between 2.8.4 and now? I'll continue

Re: [CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
a test for IMPORTED_LINK_DEPENDENT_LIBRARIES aside from trying to create a circular dependency between a single library. On Wed, Mar 13, 2013 at 4:35 PM, James Bigler jamesbig...@gmail.com wrote: I used the following code in 2.8.4, but in 2.8.9 and 2.8.10 it doesn't add the CUDA_CUDART_LIBRARY

Re: [CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
is static or shared and works for 2.8.4+. I'm not sure what the expected behavior is supposed to be, but I attached my simple reproducer. On Wed, Mar 13, 2013 at 5:08 PM, James Bigler jamesbig...@gmail.com wrote: I determined that this failed starting in 2.8.7 (2.8.6 has the cudart library

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2371-gfb71268

2013-03-04 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fb71268dbd0e98d7c5d29d7500930e6245352c6d commit fb71268dbd0e98d7c5d29d7500930e6245352c6d Merge: db50058 776766f Author: James Bigler jamesbig...@gmail.com AuthorDate: Mon Mar 4 15:11:35 2013 -0500 Commit: CMake Topic Stage

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2373-ga413ccc

2013-03-04 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a413ccc433fddff0c1ca0fa6d9cab7f46a3ab55c commit a413ccc433fddff0c1ca0fa6d9cab7f46a3ab55c Merge: fb71268 5ab1259 Author: James Bigler jamesbig...@gmail.com AuthorDate: Mon Mar 4 15:22:53 2013 -0500 Commit: CMake Topic Stage

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2386-g8965cf7

2013-03-04 Thread James Bigler
- http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8965cf74cd40213721aa797f704ea6872ef15958 commit 8965cf74cd40213721aa797f704ea6872ef15958 Merge: 2eb3d64 a790acb Author: James Bigler jamesbig...@gmail.com AuthorDate: Mon Mar 4 16:09:01 2013 -0500 Commit: CMake Topic Stage

  1   2   3   4   5   6   >