Re: [CMake] Build and run an external project

2018-12-04 Thread James Bigler
Tue, Dec 4, 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 >> msproje

Re: [CMake] Build and run an external project

2018-12-03 Thread James Bigler
//cmake.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 a

[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 copy_if_differen

[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: htt

[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} COMMAN

Re: [CMake] VS's /Zo flag

2015-12-14 Thread James Bigler
uot; section in the "Command Line" section of the project settings. On Mon, Dec 14, 2015 at 4:35 PM, James Bigler 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 showing up in the > comm

[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+: https://msdn.mi

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

2015-10-20 Thread James Bigler
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. > > Thanks! &g

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 optio

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

2015-10-13 Thread James Bigler
; 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 a > écrit :

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 differenc

[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? Th

[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: http://www.cmake.org/Wiki

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 produces

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 wrote: >

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 the

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 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 _is_header) >> >>

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 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 files that simply > i

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:

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

2015-01-06 Thread James Bigler
ect way 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

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

2015-01-06 Thread James Bigler
quot;/usr/bin/cc" > -dlink > /home/irwin/Repositories/libdynd/build/tests/CMakeFiles/test_libdynd.dir/func/./test_libdynd_generated_test_apply.cu.o;/home/irwin/Repositories/libdynd/build/tests/CMakeFiles/test_libdynd.dir/func/./test_libdynd_generated_test_lift_arrfunc.cu.o > -o >

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

2015-01-06 Thread James Bigler
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, 2015 at 8:54 AM, Irwin Zai

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 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 and CMAKE_CXX_FLAGS_RELEA

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

2015-01-05 Thread James Bigler
ust checked 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 > <mailto:irwin.z...@physics.ox.ac.uk>> wro

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 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. > > The second is what I

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 generate

[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 r

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) 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( $<$:${PROG_LIBRARY_DIRS_RELWITHDEBCRT}> ) link_directories( $>:${PROG_LIBRARY_DIRS}> ) Basically I want to use PROG_LIBRARY_DIRS_RELWITHDEBCRT for Debug builds and PROG_LIBRARY_DIRS fo

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 wrote: > De

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 1

Re: [CMake] Bracket Argument

2014-06-03 Thread James Bigler
Thanks! On Tue, Jun 3, 2014 at 6:25 AM, David Cole wrote: > > Are there some good examples of why one would use bracket arguments? > > > I think one of the major use cases for bracket arguments is in > "file(WRITE" so you can embed literal python code (or Lua, or > javascript, or ...) directly

[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: http://www.cmake.org/Wi

[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 /Libra

Re: [CMake] get_directory_property and get_property

2014-04-17 Thread James Bigler
gt; > get_property(foo VARIABLE PROPERTY bar) > > is equivalent to > > > set(foo ${bar}) > > Hope this helps. > > Petr > > > > On Wed, Apr 16, 2014 at 9:35 PM, James Bigler wrote: > >> I see that I can get the value of a variable from a directory

[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 VARI

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 i

Re: [CMake] Visual Studio and /STACK

2013-10-25 Thread James Bigler
On Fri, Oct 25, 2013 at 3:28 PM, Bill Hoffman wrote: > 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] 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 problem

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 wrote: > On 25.10.2013 18:42, James Bigler wrote: > >> When did CMake stop adding /STACK:100

[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: http://ww

Re: [CMake] Transitive linking and static libraries

2013-10-17 Thread James Bigler
r/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 > wrote: > > On Wed, Oct 16, 2013 at 1:34 PM, Giordano Khouri > > wrote: > >> > &g

Re: [CMake] Transitive linking and static libraries

2013-10-16 Thread James Bigler
On Wed, Oct 16, 2013 at 1:34 PM, Giordano Khouri wrote: > 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 > extern”, allowing

Re: [CMake] Transitive linking and static libraries

2013-10-16 Thread James Bigler
u tried using the LINK_PRIVATE signature to target link libraries? > > On Wed, Oct 16, 2013 at 2:05 PM, James Bigler > wrote: > > Is it possible to stop known static libraries from being carried through > > shared libraries? > > > > add_library(mystatic

[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 mysh

[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] 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 wrote: > On Tue, Sep 17, 2013 at 9:41 AM, James Bigler > 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 a

[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 t

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. O

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 wrote: > Hi all, > > I have a big project which can be used in two w

Re: [CMake] Listing headers in source lists

2013-07-12 Thread James Bigler
On Wed, Jun 12, 2013 at 11:03 AM, Bill Hoffman wrote: > 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 the #include >> fi

[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 build

[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 http://www.kitware.com/

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 ho

Re: [CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
ry 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 wrote: > I determined that this failed starting in 2.8.7 (2.8.6 has the cudart > library on th

Re: [CMake] IMPORTED_LINK_DEPENDENT_LIBRARIES not working anymore?

2013-03-13 Thread James Bigler
there wasn't 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 wrote: > I used the following code in 2.8.4, but in 2.8.9 and 2.8.10 it doesn't add > the CUD

[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 to

Re: [CMake] List from strings (CMAKE_CXX_FLAGS and friends)

2012-12-03 Thread James Bigler
Has nobody else notice this particular language inconsistency? On Tue, Nov 27, 2012 at 1:12 PM, James Bigler wrote: > I'm running into this again, and I trawled through the mailing list, and > according to Bill (4/11/2009 - managing lists with space separated > elements), I sho

[CMake] Unspecified arguments to CMake script

2012-11-27 Thread James Bigler
Is it possible to have an unbounded number of arguments to a script processed by CMake using the -P argument? I need to specify a variable number of arguments, so using -D isn't going to help much. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/

[CMake] List from strings (CMAKE_CXX_FLAGS and friends)

2012-11-27 Thread James Bigler
I'm running into this again, and I trawled through the mailing list, and according to Bill (4/11/2009 - managing lists with space separated elements), I should be able to get a list from a string with a single command. If you want to convert a string to a list you can do it like this: set(list ${

Re: [CMake] setting LINKER_LANGUAGE still adds -lstdc++

2012-10-09 Thread James Bigler
On Tue, Oct 9, 2012 at 12:07 AM, Eric Noulard wrote: > 2012/10/9 James Bigler : > > In my project I need to manually link against a special version of > > libstdc++, so I manually set the target link language to C and then add > my > > special library to the link line.

Re: [CMake] setting LINKER_LANGUAGE still adds -lstdc++

2012-10-08 Thread James Bigler
On Mon, Oct 8, 2012 at 10:40 PM, James Bigler wrote: > In my project I need to manually link against a special version of > libstdc++, so I manually set the target link language to C and then add my > special library to the link line. On Linux this seems to work just fine, > but on

[CMake] Scope of imported targets

2012-07-27 Thread James Bigler
Is there are particular reason why imported targets don't have global scope (doc says current directory and below), but regular targets do (seen everywhere)? This seems really inconsistent to me. I'm trying to build a custom library from other pieces using my own set of commands. I can't use add

Re: [CMake] Change the VS linker

2012-06-20 Thread James Bigler
you could add a > custom target like this: > > add_custom_target(EchoEnv ${CMAKE_COMMAND} -E environment) > > > HTH, > David > > > On Wed, Jun 20, 2012 at 2:45 PM, James Bigler wrote: > >> Is it possible to change what executable is used for linking in VS >> targets? >>

[CMake] Change the VS linker

2012-06-20 Thread James Bigler
Is it possible to change what executable is used for linking in VS targets? I see CMAKE_LINKER, but the variable says "CMAKE_LINKER-NOTFOUND", which leads me to believe that the VS generator doesn't use this variable. Thanks, James -- Powered by www.kitware.com Visit other Kitware open-source p

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-08 Thread James Bigler
On Mon, May 7, 2012 at 4:04 PM, Ming wrote: > ** >> > *By design, CMake should detect configuration changes and reconfigure > before the build starts. The VS plugin was designed to provide a single > dialog box that would allow for reloading of the entire solution with a > single click rath

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-07 Thread James Bigler
On Mon, May 7, 2012 at 11:41 AM, Ming wrote: >** > >> * -The code in question is the Geant4 (** >> http://geant4.web.cern.ch/geant4/support/download.shtml* >> *) toolkit, which uses CMake to handle its cross-platform >> configuration

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-07 Thread James Bigler
On Sat, May 5, 2012 at 3:32 AM, Ming wrote: > *From: **James Bigler* * * > *Sent: Saturday, May 05, 2012 1:51 AM* > *To: **Ming* * * > *Cc: **cmake@cmake.org* * * > *Subject: Re: [CMake] Moving large MSVS projects to CUDA* > ** > *On Fri, May 4, 2012 at

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-04 Thread James Bigler
On Fri, May 4, 2012 at 12:39 PM, Ming wrote: > Hello CMake community, > > I have experience using CMake to generate sime cuda-enabled executables > (where the cpp’s reside in one folder, etc.). > I am attempting to move a large project that utilizes CMake, from just c++ > to CUDA enabled c++. >

Re: [CMake] Wrong cl.exe getting picked up

2012-03-15 Thread James Bigler
On Thu, Mar 15, 2012 at 1:30 PM, John Drescher wrote: > > OK, but it does try to fill in the CMAKE_C_COMPILER value. What are you > > suggesting? That this is a bug or some kind of mistake on my part > thinking > > that the value in CMAKE_C_COMPILER is somehow relevant for Visual Studio > > tar

Re: [CMake] Wrong cl.exe getting picked up

2012-03-15 Thread James Bigler
On Thu, Mar 15, 2012 at 6:46 AM, Bill Hoffman wrote: > On 3/14/2012 6:39 PM, James Bigler wrote: > >> I have a system with several copies of Visual Studio installed. >> >> When I set the generator for "Visual Studio 9 2008" it ends up

[CMake] Wrong cl.exe getting picked up

2012-03-14 Thread James Bigler
I have a system with several copies of Visual Studio installed. When I set the generator for "Visual Studio 9 2008" it ends up picking up a different compiler: CMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/SCE/Common/VSI/bin/cl.exe I think this is because of the following code in CMakeDetermi

[CMake] cmake -E copy with file permission changes

2012-01-31 Thread James Bigler
We use perforce for our source control, and perforce typically syncs files as read only until you check them out for editing. During our build process we copy a few scripts from the source tree to the build tree using 'cmake -E copy' in an 'add_custom_command'. This works famously until we try to

Re: [CMake] Visual Studio 2010 is crashing when building project

2012-01-26 Thread James Bigler
On Thu, Jan 26, 2012 at 9:45 AM, Robert Dailey wrote: > Hi, > > I am using CMake 2.8.7 and generating for VS2010. When I build any > project, visual studio crashes. I think it might be because of ZERO_CHECK. > > Any idea what this might be? Could it be the ZERO_CHECK visual studio > macros ? Note

Re: [CMake] User configuration files for Visual Studio

2012-01-20 Thread James Bigler
rate these files without replacing > custom user-edits made through visual studio, or even by hand. > > - > Robert Dailey > > > > On Thu, Jan 12, 2012 at 11:31 AM, James Bigler wrote: > >> I would be fine with that if the generation of these files would only >>

[CMake] GCC compiler version

2012-01-13 Thread James Bigler
Is there a CMake variable for the GCC compiler version if using GCC? I thought I remember seeing email traffic about something along these lines a while back, but I can't find the email or documentation describing it (if it exists). Thanks, James -- Powered by www.kitware.com Visit other Kitwar

Re: [CMake] User configuration files for Visual Studio

2012-01-12 Thread James Bigler
> the cache variables or whatnot in CMake, so next time you generate you will > have them. > > There is nothing preventing you from using the normal method of changing > debug parameters. > > - > Robert Dailey > > > > On Wed, Jan 11, 2012 at 5:53 PM, James Big

Re: [CMake] User configuration files for Visual Studio

2012-01-11 Thread James Bigler
On Wed, Jan 11, 2012 at 8:41 AM, David Cole wrote: > I'm sure there are a handful of interested parties on this topic. > > One concern I would have is that if we start to generate this, we > might clobber stuff that users go in and edit by hand in the Visual > Studio UI. It's a minor concern, but

Re: [CMake] Some issues with visual studio

2012-01-08 Thread James Bigler
On Sun, Jan 8, 2012 at 7:29 AM, Renato Utsch wrote: > Hello, I have been experimenting some issue with visual studio and > couldn't fix them, even when searching in google for help :O > > So, I have 2 main issues: > > 1. When CMake creates the visual studio solution, it configures to the > "Debug

Re: [CMake] Visual Studio Generator: Unable to show property page for custom build tool

2012-01-04 Thread James Bigler
On Wed, Jan 4, 2012 at 2:30 PM, Michael Guerrero wrote: > Hi, I’ve been experimenting with using Visual Studio’s “Custom Build Tool” > per cpp file to perform some specialized operations. However, the property > page is not visible (not editable) when I generate a project with cmake. > To see w

Re: [CMake] [cmake-developers] The upcoming CMake 2.8.7 release candidate cycle

2011-12-07 Thread James Bigler
I had two or three changes to FindCUDA that missed the cutoff by an hour. Could they be considered as well? James On Wed, Dec 7, 2011 at 9:49 AM, David Cole wrote: > During our merge session yesterday, there were a handful of topics > that we were almost ready to merge to 'master' but which cou

Re: [CMake] Transitive linking

2011-11-18 Thread James Bigler
On Fri, Nov 18, 2011 at 5:51 PM, Michael Hertling wrote: > On 11/18/2011 10:03 PM, James Bigler wrote: > > 2011/11/18 Alexander Neundorf > > > >> On Friday 18 November 2011, James Bigler wrote: > >>> I thought CMake knew how to not drag all the dependent

Re: [CMake] Transitive linking

2011-11-18 Thread James Bigler
2011/11/18 Alexander Neundorf > On Friday 18 November 2011, James Bigler wrote: > > I thought CMake knew how to not drag all the dependent libraries once you > > linked an executable module. > > > > add_library(A STATIC a.cpp) > > add_library(B SHARED b.c

[CMake] Transitive linking

2011-11-18 Thread James Bigler
I thought CMake knew how to not drag all the dependent libraries once you linked an executable module. add_library(A STATIC a.cpp) add_library(B SHARED b.cpp) target_link_libraries(B A) add_library(C SHARED c.cpp) target_link_libraries(C B) add_executable(run run.cpp) target_link_libraries(run C)

[CMake] VS2010: Build failure in single custom command results in all custom commands being rerun

2011-10-07 Thread James Bigler
This is just to let those of you who are using VS 2010 and use a lot of custom build commands that any build failure in a single custom command will result in all custom commands in that target (project) being rebuilt. I've opened a thread here: http://social.msdn.microsoft.com/Forums/en-AU/msbuil

[CMake] Curious build output

2011-10-05 Thread James Bigler
What is this extra chatty output from? I never remember seeing it in VS 2008, but I see it in VS 2010. >-- Build started: Project: copy_scripts, Configuration: Release x64 -- 1>Build started 10/5/2011 12:38:07 PM. 1>InitializeBuildStatus: 1> Creating "x64\Release\copy_scripts\copy_script

Re: [CMake] VS 2010 macro

2011-09-13 Thread James Bigler
On Tue, Aug 30, 2011 at 9:11 AM, Bill Hoffman wrote: > On 8/30/2011 4:11 AM, Andrea Galeazzi wrote: > >> Hi, >> I'd like to know if the bug 0011258 >> > >> will be fixed or the >> >> community simply

Re: [CMake] Building the package target as part of the ALL_BUILD target

2011-08-25 Thread James Bigler
ctly calls cpack with appropriate arguments. > > And with a custom target, you can make it part of all > > > HTH, > David > > On Thu, Aug 25, 2011 at 4:13 PM, James Bigler > wrote: > > Does anyone know of a way to have the package target built by default? >

[CMake] Building the package target as part of the ALL_BUILD target

2011-08-25 Thread James Bigler
Does anyone know of a way to have the package target built by default? In other words add it to the ADD_BUILD built in target? I'm guessing since there isn't support for adding custom targets to built in CMake targets that this would have to be controlled by some magic CMAKE_ variable. Thanks, J

[CMake] depend.mk doesn't include /usr/local headers

2011-06-27 Thread James Bigler
I've just spent several hours chasing down a problem that was related to cmake makefiles not detecting a change in a header in /usr/local. I would build a new version of a library, run 'make install' which would put it into /usr/local, then rebuild my project. I mistakenly assumed that if one of

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-17 Thread James Bigler
On Fri, Jun 17, 2011 at 11:12 AM, t m wrote: > > As far as I correctly understood patch from Peter, implementation for > > makefile dependency is on place. > > For me makefile dependency is fine, since I'm using only makefiles. > > > > I just tried to understand idea of LANGUAGE inside cmake. I t

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-14 Thread James Bigler
On Tue, Jun 14, 2011 at 5:18 AM, Łukasz Tasz wrote: > Hi all, > > > > > Other than the 'more elegant' prospect of being able to just put .cu > files > > into a target, is there anything else deficient about the current > FindCUDA > > macros? All you have to do really is to use cuda_add_executabl

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-12 Thread James Bigler
On Tue, Jun 7, 2011 at 12:50 PM, t m wrote: > Hi > > I've two topics related to the support for custom lang in cmake. I > hope you can help me. > > 1) Does anyone knows plan about merge the following feature related to > the CUDA: http://public.kitware.com/Bug/view.php?id=11887 > > I'm in the pro

[CMake] Rename the output of cpack

2011-05-17 Thread James Bigler
CPack allows me to configure the basename of the package, but I would like to be able to change the extension used. I dug around the CPack sources and it looks like the file extension is baked into the 'virtual const char* GetOutputExtension() { return ".sh"; }' function. It doesn't look like I c

Re: [CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
On Mon, Apr 25, 2011 at 11:42 AM, Eric Noulard wrote: > 2011/4/25 James Bigler : > > If I have a custom command: > > > > add_custom_command(OUTPUT myfile.out) > > > > Then I add that file to the target: > > > > add_executable(mytarget main.cpp myfile.o

[CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
If I have a custom command: add_custom_command(OUTPUT myfile.out) Then I add that file to the target: add_executable(mytarget main.cpp myfile.out) If I do a 'make help' I get rules for main.o, but none for myfile.out. Is there something I can add to create a helper makefile target? Thanks, Ja

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread James Bigler
ot;$CMAKE" -G "Visual Studio 10 Win64" ..) >> >> >> >> where ".." is my top level directory containing a CMakelists.txt. I >> >> have no problems then with: >> >> IF (WIN32) >> >> IF (${CMAKE_SIZEOF_VOID_P} MAT

Re: [CMake] Properly Detecting Win64

2011-04-19 Thread James Bigler
On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman wrote: > On 4/12/2011 4:13 PM, David Cole wrote: > > Does somebody have reproducible steps to get to the point where >> CMAKE_SIZEOF_VOID_P disappears?? >> >> I've never seen that... >> >> How many times do you have to re-configure before you start se

Re: [CMake] Properly Detecting Win64

2011-04-12 Thread James Bigler
On Tue, Apr 12, 2011 at 1:27 PM, j s wrote: > > > On Tue, Apr 12, 2011 at 2:13 PM, James Bigler wrote: > >> On Mon, Jan 17, 2011 at 11:27 AM, Michael Jackson < >> mike.jack...@bluequartz.net> wrote: >> >>> >>> On Jan 17, 2011, at 1:23 PM, E

Re: [CMake] Properly Detecting Win64

2011-04-12 Thread James Bigler
On Mon, Jan 17, 2011 at 11:27 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > > On Jan 17, 2011, at 1:23 PM, Eric Noulard wrote: > > > 2011/1/17 Michael Jackson : > >> I have the following code: > >> > >> if ( "${CMAKE_SIZEOF_VOID_P}" EQUAL "8" ) > >>set(CPACK_PACKAGE_FILE_NAME

  1   2   3   4   5   >