Re: [CMake] Putting the git commit hash in a cmake variable

2018-10-14 Thread Ryan Pavlik
Fwiw, this is my single most popular stack overflow post (and presumably my most popular CMake module) https://stackoverflow.com/questions/1435953/how-can-i-pass-git-sha1-to-compiler-as-definition-using-cmake/4318642#4318642 It does incorporate the other ideas that have come up, like making a depe

Re: [CMake] Alternative to configure_file

2015-04-17 Thread Ryan Pavlik
Well, if the file needs to have the substitutions performed, like after an edit, CMake will have to run. What you could do is write a standalone cmake script that just does the configure file step, then add it as a custom command on a custom target, just running that configure script in script mode

Re: [CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?

2015-04-09 Thread Ryan Pavlik
It's for if your use case requires the project to be installed in a specific location that's not the automatically generated one. For instance, if you're building multiple external projects you might have them all install to the same subdirectory of the binary directory for convenience. Ryan On T

Re: [CMake] Supress generation of a Makefile

2015-03-18 Thread Ryan Pavlik
If you can't/won't use CMake on all platforms (why? Seems like extra maintenance effort)... You should be OK if you do an out of source build as usually recommended for CMake; that is, generating the build files (by running cmake in) in a different directory than your source code. Ryan On Wed, Ma

Re: [CMake] Check whether C++ headers are self-sufficient

2015-03-14 Thread Ryan Pavlik
I also have this implemented - in my case, the headers are fine to include in a .cpp with just a do-nothing main function and build into an executable, testing linking too. https://github.com/rpavlik/util-headers/blob/master/tests/cleanbuild/CMakeLists.txt Ryan On Sat, Mar 14, 2015 at 8:56 AM Ro

Re: [CMake] Multi-platform visual studio projects

2015-03-08 Thread Ryan Pavlik
You are correct: if you're using the visual studio generators it doesn't matter (in general) what your process environment variables are. Note that if you're using find package, some of those scripts use environment variables to help find libraries, but they are not the "standard" variables set by

Re: [CMake] Mastering CMake updated to CMake 3.1

2015-03-07 Thread Ryan Pavlik
Will the excerpted CMake tutorial [1] be updated? I find that to be a useful reference to point newcomers to. If nothing else, it looks like the source code didn't handle the move to the updated website well as all angle-bracket includes got eaten as HTML tags presumably. [1] http://www.cmake.org/

Re: [CMake] Boost library directory not found unless I explicitly set BOOST_LIBRARYDIR ?

2014-11-14 Thread Ryan Pavlik
I've used a script to help it out a bit. I think these Windows installers are new. Here's the script I use - it basically sets BOOST_ROOT and BOOST_LIBRARYDIR automatically in some cases. https://gist.github.com/rpavlik/586f1fda6e32777623e1 Ryan On Fri, Nov 14, 2014 at 6:56 AM, Glenn Coombs wr

Re: [CMake] Static code analysis with CDash

2011-04-01 Thread Ryan Pavlik
om > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mai

Re: [CMake] Detecting 32/64 bit systems

2011-02-13 Thread Ryan Pavlik
dows CMAKE_SIZEOF_VOID will tell me the > *target* build system, not the physical one, while it will mach > CMAKE_SYSTEM_PROCESSOR if the both are the same? > > Many thanks for the clarification. > > Dominik > > On Sat, Feb 12, 2011 at 6:34 PM, Ryan Pavlik wrote: > >

Re: [CMake] Detecting 32/64 bit systems

2011-02-12 Thread Ryan Pavlik
tp://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student

Re: [CMake] qt moc like feature

2011-02-11 Thread Ryan Pavlik
com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality App

Re: [CMake] Boost macro behavior with respect to version

2011-02-10 Thread Ryan Pavlik
> ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ >

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread Ryan Pavlik
MPIRunCommand="" >MPIRunArguments="" >MPIRunWorkingDirectory="" >ApplicationCommand="" >

Re: [CMake] Executable in the main directory

2011-02-02 Thread Ryan Pavlik
e logiciel libre » - >> http://www.april.org > > > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html

Re: [CMake] Action to perform unconditionally

2011-02-02 Thread Ryan Pavlik
re.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.c

Re: [CMake] Cannot run/debug cmake project with MSVC 2010 which works well in Linux

2011-01-25 Thread Ryan Pavlik
using my CreateLaunchers.cmake script, which can set the debugging/run options of the ALL_BUILD target to achieve the same result. https://github.com/rpavlik/cmake-modules Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http

Re: [CMake] CMake, CUDA, VS build issues

2011-01-15 Thread Ryan Pavlik
itware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo

Re: [CMake] add_subdirectory and eclipse project

2011-01-14 Thread Ryan Pavlik
gt; > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications C

Re: [CMake] List operations

2011-01-13 Thread Ryan Pavlik
ht? > > In my particular case, I'm running CMake using -P as a script > processor, so there's no problem with the cache getting out of sync. > > On Thu, Jan 13, 2011 at 7:59 AM, Ryan Pavlik wrote: > > And, just as a caution: Don't use file(GLOB to create a list of so

Re: [CMake] feature request for eclipse

2011-01-13 Thread Ryan Pavlik
source/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Studen

Re: [CMake] List operations

2011-01-13 Thread Ryan Pavlik
ing to > a new town. > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cm

Re: [CMake] suspicious behaviour of FindPkgConfig

2011-01-06 Thread Ryan Pavlik
gen' > -- package 'Doxygen' not found > > I get it work by putting find_package(Doxygen) before > include(FindPkgConfig) statement. Can someone explain me this strange > behaviour please ? > > Cheers, > -- > Nizar > > ____

Re: [CMake] Installing a helper application

2011-01-06 Thread Ryan Pavlik
ep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > > > Follow this link to subscribe/unsubscribe: > > http://www.cmake.org/mailman/listinfo/cmake > > ___ > Powered by www.kitwa

Re: [CMake] can't build translated makefile on snow leopard 10.6.5 w/ g++ 4.2.1 (complaint: g++: No such file or directory, although g++ is there!!)

2010-12-20 Thread Ryan Pavlik
d instead I use the ldd. > > thanks for any help! > > ps. note that I am building from command line without xcode > and the -pedantic flag I use is not the reason of the failure > > > ___ > Powered by www.kitware.com > >

Re: [CMake] Setting up command line arguments on generated executables

2010-12-20 Thread Ryan Pavlik
utton... > > Michael > > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: >

Re: [CMake] cmake find_package() returns?

2010-12-13 Thread Ryan Pavlik
ink to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik _

Re: [CMake] CMake 2.8.4 release scheduled for next month

2010-12-09 Thread Ryan Pavlik
open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Patch CMake for Mac static library creation

2010-12-04 Thread Ryan Pavlik
The name of the target property likely has to be matching the original case (all caps) Ryan On Sat, Dec 4, 2010 at 1:10 PM, Belcourt, K. Noel wrote: > Hi Ryan, > > On Dec 4, 2010, at 10:08 AM, Ryan Pavlik wrote: > > You can configure this for your project: > > http://www

Re: [CMake] Patch CMake for Mac static library creation

2010-12-04 Thread Ryan Pavlik
html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applicat

Re: [CMake] CMake Xcodeproject

2010-12-01 Thread Ryan Pavlik
gt; Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa

Re: [CMake] newline: for all platforms

2010-11-27 Thread Ryan Pavlik
check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http

Re: [CMake] Compiling header files

2010-11-16 Thread Ryan Pavlik
t; Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications

Re: [CMake] header files with visual studio

2010-11-04 Thread Ryan Pavlik
___ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the CMake FAQ at: >> http://www.cmake.org/Wiki/CMake_FAQ >> >>

Re: [CMake] XCode 3.2.4 and CMake 2.8.2, setting GCC version to 4.0

2010-11-04 Thread Ryan Pavlik
; > > > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://ww

Re: [CMake] Are header-only targets supported?

2010-11-01 Thread Ryan Pavlik
html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa Stat

Re: [CMake] how to define current working directory of command line tool

2010-10-29 Thread Ryan Pavlik
www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http:/

Re: [CMake] How to work around broken Find module

2010-10-28 Thread Ryan Pavlik
keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State Un

Re: [CMake] HINTS vs PATHS

2010-10-27 Thread Ryan Pavlik
he CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.

Re: [CMake] Status of clang support?

2010-10-24 Thread Ryan Pavlik
z Loskot, http://mateusz.loskot.net > Charter Member of OSGeo, http://osgeo.org > Member of ACCU, http://accu.org > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.k

Re: [CMake] Excluded from build

2010-10-13 Thread Ryan Pavlik
Not sure about files inside a typical target, but you can add a custom target that does nothing but has your desired files listed as sources. (Also, if you are looking to list files that aren't something that CMake knows should be compiled, like a text file/readme, configs, etc, those can just

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Ryan Pavlik
_ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mai

Re: [CMake] Is there a tool pretty much like cmake for Java?

2010-10-07 Thread Ryan Pavlik
vrpn/blob/cmake-java/java_vrpn/CMakeLists.txt Hope this helps! Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University Member, ACM and ACM SIGCHI Member, ASME http://academic.cleardefinition.com ___

Re: [CMake] Build several libraries with different compilation flags

2010-10-01 Thread Ryan Pavlik
...) does cmake sensitive to the order of these instruction ? thank you very much Eric -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University Member, ACM and ACM SIGCHI Member, ASME http://academic.cleardefinition.com

Re: [CMake] CMake Digest, Vol 77, Issue 104

2010-10-01 Thread Ryan Pavlik
't do this at all, and adhere to the flags. >> > >> >> Interesting - I've been doing this: >> >> if(CMAKE_BUILD_TYPE EQUAL Debug) >>    set(CMAKE_CXX_FLAGS -Wno-long-long -Wno-comment -Wwrite-strings >> -std=c++0x -pedantic-errors -pedantic -Wall -W -g

Re: [CMake] undefining preprocessor macros

2010-09-30 Thread Ryan Pavlik
ource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University Member, AC

Re: [CMake] setting Visual Studio solution name

2010-09-28 Thread Ryan Pavlik
rce.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Appl

Re: [CMake] Decoupuling configuration and toolchain

2010-09-23 Thread Ryan Pavlik
could I put the custom options for the compiler, for example in > arm-debug I'd like to have > CMAKE_CXX_FLAGS -no-rtti > what do you mean with build directory, the source directory? > > Citando Ryan Pavlik : > > > Keep these lines, if they are necessary for your

Re: [CMake] Decoupuling configuration and toolchain

2010-09-23 Thread Ryan Pavlik
target or configuration. > Cheers > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FA

Re: [CMake] best practice way of copying libraries to an install package

2010-09-22 Thread Ryan Pavlik
some best practices, that would be great. Use CMake and CPack? See the wiki, and elsewhere on the internet. Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal VRAC/H

Re: [CMake] ccmake and cmake

2010-09-22 Thread Ryan Pavlik
its own ccmake build as well - you will need to find the ccmake binary of the appropriate version. (It's not just a front-end, it's an integrated app) Hope this helps! Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastat

Re: [CMake] Build multiple lib

2010-09-22 Thread Ryan Pavlik
ibrary is pretty much just a bunch of object files glued together, so you don't really "link" a static library, in my understanding, you just need to track those transitive link dependencies for whatever ends up using your library). The alternate, and preferred, technique would b

Re: [CMake] Build multiple lib

2010-09-22 Thread Ryan Pavlik
except for assembling MainLib? If not, just drop them, they're useless. Michael Furthermore, you could use the source_group feature to organize the sources without needing to do the multiple library approach. -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State Uni

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Ryan Pavlik
l paths to the location on the original build machine. If I install the export target for a static libfoo, which links to /home/rpavlik/libbar.a, the targets file includes that full path. I'm not sure what the "right" solution is - in my case, I was bundling all the dependenc

Re: [CMake] Execution order

2010-09-17 Thread Ryan Pavlik
urce.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa

Re: [CMake] Quick question about set and substitutions

2010-09-16 Thread Ryan Pavlik
o achieve the same result, but in a more fine-grained, per-target way that probably is appealing given your goal) I was hoping that there was an easy solution - hope this helps! Ryan On Thu, Sep 16, 2010 at 8:42 PM, J Decker wrote: > On Thu, Sep 16, 2010 at 6:30 PM, Ryan Pavlik wrote:

Re: [CMake] Quick question about set and substitutions

2010-09-16 Thread Ryan Pavlik
> TARGETNAME="\"\"" > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake F

Re: [CMake] cgi sript compile

2010-09-14 Thread Ryan Pavlik
ssing that URL. Hope this helps! Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University http://academic.cleardefinition.com/ ___ Powered by www.kitware.com Visit other Kitware open-s

Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-14 Thread Ryan Pavlik
ject. >> >> Call Stack (most recent call first): >> >> CMakeLists.txt:8 (project) >> >> Configuring incomplete, errors occurred! >> >> On Tue, Sep 14, 2010 at 9:39 AM, Micha Renner > > wrote: >> >>> There were and there are proble

Re: [CMake] Use of CMAKE_LIBRARY_OUTPUT_DIRECTORY

2010-09-13 Thread Ryan Pavlik
"install(TARGETS" instead of setting the output directories, and then just (on the user-side) setting the CMAKE_INSTALL_PREFIX and doing a make install. Hope this helps! Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State Univer

Re: [CMake] Undefined reference to __Unwind_Resume when building a universal binary with make on Mac OS X

2010-09-13 Thread Ryan Pavlik
CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University http://academic.cleardefinition.com/ __

Re: [CMake] PIE and PIC in mixed projects

2010-09-09 Thread Ryan Pavlik
nsource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik

Re: [CMake] what does mean?

2010-09-03 Thread Ryan Pavlik
bly should) ignore them. If you are trying to add a new compiler or generator, you will want to look in the C++ source and/or give the list more information on what you're trying to do. Hope this helps! Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applic

Re: [CMake] Modification of link flags for all targets within a subdirectory -- how?

2010-09-02 Thread Ryan Pavlik
On 9/2/2010 1:43 PM, Ingolf Steinbach wrote: Hi, 2010/9/2 Ryan Pavlik: Set the appropriate variables at the top of the CMakeLists.txt file of the given subdirectory. Each add_subdirectory call creates a new scope, so variables set in sub-directories do not propagate to parents unless

Re: [CMake] Modification of link flags for all targets within a subdirectory -- how?

2010-09-02 Thread Ryan Pavlik
/mailman/listinfo/cmake -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik ___ Powered by

Re: [CMake] Import library for executables?

2010-09-01 Thread Ryan Pavlik
e this: add_library(libfoo libsource.cpp libsource.h libsource2.cpp) add_executable(foo foo.cpp foo2.cpp) target_link_libraries(foo libfoo) Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University http://academic.cleardefinition.com/

Re: [CMake] Associating files with command

2010-09-01 Thread Ryan Pavlik
uot;${path}" COMMENT "Wrapping ${basename} with tolua") endforeach() set(${outvar} ${outfiles} PARENT_SCOPE) endfunction() So unless someone knows how to add a file to a library, associate it with a custom build command, this is what I have to stick to. /Anders

Re: [CMake] Associating files with command

2010-08-31 Thread Ryan Pavlik
Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman

Re: [CMake] Conditional compiling [i.e. OpenMP]

2010-08-31 Thread Ryan Pavlik
fig.h before (earlier in the file) you are setting the HAVE_OPENMP variable, because everything else you've mentioned sounds OK. Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University http://academic.cleardefinition.com/ _

Re: [CMake] file(GLOB oddities

2010-08-27 Thread Ryan Pavlik
onent(outputvar "somedir" ABSOLUTE) http://cmake.org/cmake/help/cmake-2-8-docs.html#command:get_filename_component Hope this helps! Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University http://aca

Re: [CMake] Windows debugger command project settings

2010-08-20 Thread Ryan Pavlik
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State Univers

Re: [CMake] [VS] How to set static run-time for static lib release config?

2010-08-15 Thread Ryan Pavlik
edited version. Bye Almost nobody uses the static runtime unless someone else's lib forces them to, after which they will probably mutter under their breath. With that disclaimer aside: http://github.com/rpavlik/physical-modeling-utilities/blob/master/cmake/MSVCStaticRuntime.cmake -- Rya

Re: [CMake] How to build .ax libraries with cmake?

2010-08-14 Thread Ryan Pavlik
: set(CMAKE_SHARED_MODULE_SUFFIX .ax) add_library(YourTarget MODULE source.cpp source.h) Ryan||*||* <http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_SHARED_MODULE_SUFFIX> -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa

Re: [CMake] Obtaining info about the compiler command arguments

2010-08-12 Thread Ryan Pavlik
" right after the make command instead, for on-the-fly testing. Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com/ ___ Powe

Re: [CMake] FindMatlab tips?

2010-08-06 Thread Ryan Pavlik
TLAB_MEX_LIBRARY ${MATLAB_ROOT_DIR}/extern/lib/${LIB_DIR}/microsoft CACHE STRING "" FORCE ) SET( MATLAB_MX_LIBRARY ${MATLAB_ROOT_DIR}/extern/lib/${LIB_DIR}/microsoft CACHE STRING "" FORCE ) SET( MATLAB_ENG_LIBRARY ${MATLAB_ROOT_DIR}/extern/lib/${LIB_DIR}/microsoft CACHE ST

Re: [CMake] Virtual Studio 8 and 10 error: '/Tc' requires an argument

2010-08-06 Thread Ryan Pavlik
I just need someone to look over my shoulder. John McGehee In general, the defaults work fine - no need to re-set the flags variables. Don't set a variable unless you know you need to - a lot of what you find on line is for strange projects or old CMake versions. Ryan -- Ryan Pavlik

Re: [CMake] Complex command

2010-08-06 Thread Ryan Pavlik
cross-platform in a good way. -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com/ ___ Powered by www.kitware.com Visit other Kitw

Re: [CMake] Virtual Studio 8 and 10 error: '/Tc' requires an argument

2010-08-06 Thread Ryan Pavlik
p messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-05 Thread Ryan Pavlik
gt; Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > htt

Re: [CMake] Cannot find "modules" directory on MacOS

2010-08-05 Thread Ryan Pavlik
th the MacOS installer package for cmake-2.8.2. > > Thanks, > > Chris Wolf > > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please

Re: [CMake] Can cmake be used to build WDK driver applications?

2010-08-04 Thread Ryan Pavlik
ed to find or create find_package modules for the WDK components you need, and you may also need to add a custom command post_build to sign the binary. Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpa

Re: [CMake] Double linking / linking static libraries

2010-08-04 Thread Ryan Pavlik
actually causing a failure to build? Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com/ ___ Powered by www.kitware.com Visit

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
On 7/30/10 7:11 AM, Olaf van der Spek wrote: On Fri, Jul 30, 2010 at 2:05 PM, Ryan Pavlik wrote: It's a shame gcc doesn't support it yet. I would love to see support there. Olaf The issue conceptually for me here, is that the code shouldn't/doesn't necessarily know wha

Re: [CMake] [VS] How to set static run-time for static lib release config?

2010-07-30 Thread Ryan Pavlik
On 7/30/10 7:01 AM, Olaf van der Spek wrote: On Fri, Jul 30, 2010 at 1:52 PM, Ryan Pavlik wrote: Almost nobody uses the static runtime unless someone else's lib forces them Why not? If Windows had proper package management I wouldn't use it either, but until then... Olaf I

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
On 7/30/10 6:58 AM, Olaf van der Spek wrote: On Fri, Jul 30, 2010 at 1:49 PM, Ryan Pavlik wrote: And, if you ask any auto*-using developer how they feel about detecting and configuring boost, prepare for some impolite words. Even the cmake module for detecting it is complex. (and auto

Re: [CMake] autoheader-like functionality?

2010-07-30 Thread Ryan Pavlik
CMake and add the check to the build. (A bit of the opposite from the auto* - figure out how to add the check to configure.in first, then run autoheader, then configure, then do the code using the define.) Good luck! The switch is well worth it, especially as you start building a library

Re: [CMake] Support for multiple components in cpack

2010-07-30 Thread Ryan Pavlik
using my work will want every part of it, and I can anticipate easily the parts that might not be needed - the common case of a runtime system/language that also provides a c/c++ api and headers for more advanced usage.) Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual

Re: [CMake] [VS] How to set static run-time for static lib release config?

2010-07-30 Thread Ryan Pavlik
With that disclaimer aside: http://github.com/rpavlik/physical-modeling-utilities/blob/master/cmake/MSVCStaticRuntime.cmake -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinitio

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
y work on windows with MSVC, and I'm not prepared to let #pragma comment(lib, "mylib.lib") surrounded by ifdefs sneak into my source code.) -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Cente

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
its way into open source code, and hopefully if folks want to do similar things they end up finding these modules, and/or even improving them...) -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State Un

Re: [CMake] Cuda with CMake

2010-07-29 Thread Ryan Pavlik
y what you want. See the top of the FindCUDA.cmake file or the web docs under "Standard CMake Modules" for more info. Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://aca

Re: [CMake] Windows library target names

2010-07-22 Thread Ryan Pavlik
On 7/22/2010 3:23 PM, Olaf van der Spek wrote: On Thu, Jul 22, 2010 at 9:23 PM, Ryan Pavlik wrote: On 7/22/10 10:08 AM, Olaf van der Spek wrote: Hi, All target names have the same base name. So both the debug and release variant are called xbt.lib. However, I've only got a single li

Re: [CMake] Windows library target names

2010-07-22 Thread Ryan Pavlik
umentation for more info - it's under "Variables that Control the Build". Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://aca

Re: [CMake] Parallel build with ctest 2.8.2

2010-07-21 Thread Ryan Pavlik
cts at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Ryan Pavlik HCI Graduate Student Virtual Reality Application

Re: [CMake] Including Directories from external packages

2010-07-16 Thread Ryan Pavlik
ource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University

Re: [CMake] cmake 2.8.2 win32: invalid escape sequence when finding fortran compiler

2010-07-14 Thread Ryan Pavlik
___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FA

Re: [CMake] Macro Problem

2010-07-14 Thread Ryan Pavlik
urce/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virt

Re: [CMake] CTest examples

2010-07-12 Thread Ryan Pavlik
On 7/12/2010 2:00 PM, Torri, Stephen CIV NSWCDD, W15 wrote: From: cmake-boun...@cmake.org on behalf of Ryan Pavlik Sent: Mon 7/12/2010 9:59 AM To: cmake@cmake.org Subject: Re: [CMake] CTest examples I'm been using Boost Test, and I've written a module that lets you add the executab

Re: [CMake] CTest examples

2010-07-12 Thread Ryan Pavlik
___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/uns

Re: [CMake] Passing Function Arguments

2010-07-08 Thread Ryan Pavlik
/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iow

  1   2   >