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

Re: [cmake-developers] Moving from Module to Target-based linking

2015-10-12 Thread Ryan Pavlik
, perhaps it was not filed yet as a bug. (cf. https://github.com/OSVR/OSVR-Core/pull/232#issuecomment-147109322 ) Ryan On Thu, Oct 8, 2015, 10:23 AM Brad King <brad.k...@kitware.com> wrote: > On 10/08/2015 08:58 AM, Ryan Pavlik wrote: > > Happy to learn the correct way to make an

Re: [cmake-developers] added get_git_revision and get_git_branch commands as follow-up to cm...@cmake.org

2015-10-08 Thread Ryan Pavlik
Just wanted to mention that a similar module I wrote is my most popular stack overflow post and had seen a number of pull requests and acknowledgements, so it's seemingly widely used. While it's slightly more complicated than required (when i first wrote it, I thought you had to use the configured

Re: [cmake-developers] Moving from Module to Target-based linking

2015-10-08 Thread Ryan Pavlik
That's an interesting script. If you look at the bundled modules, some are gradually being converted to use imported targets: off the top of my head, I know glut is one. Not sure a template like yours will make it into the standard distribution, there are just too many special cases and weird

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

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

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,

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

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]

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

Re: [CMake] Static code analysis with CDash

2011-04-01 Thread Ryan Pavlik
/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 Applications Center Iowa State

Re: [CMake] Detecting 32/64 bit systems

2011-02-13 Thread Ryan Pavlik
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 rpav...@iastate.edu wrote: CMAKE_SIZEOF_VOID_P will tell you the difference

Re: [CMake] qt moc like feature

2011-02-11 Thread Ryan Pavlik
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/listinfo/cmake -- Ryan Pavlik HCI

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

2011-02-10 Thread Ryan Pavlik
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 rpav...@iastate.edu http

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread Ryan Pavlik
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] Action to perform unconditionally

2011-02-02 Thread Ryan Pavlik
://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 Applications

Re: [CMake] Executable in the main directory

2011-02-02 Thread Ryan Pavlik
-- 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 www.kitware.com Visit other Kitware

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

2011-01-25 Thread Ryan Pavlik
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://academic.cleardefinition.com Internal VRAC/HCI Site: http

Re: [CMake] add_subdirectory and eclipse project

2011-01-14 Thread Ryan Pavlik
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 rpav...@iastate.edu http

Re: [CMake] List operations

2011-01-13 Thread Ryan Pavlik
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 -- Ryan Pavlik HCI Graduate Student Virtual

Re: [CMake] feature request for eclipse

2011-01-13 Thread Ryan Pavlik
://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 ___ Powered

Re: [CMake] List operations

2011-01-13 Thread Ryan Pavlik
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 rpav...@iastate.edu wrote: And, just as a caution: Don't use file(GLOB to create a list of source files to compile. Search the wiki

Re: [CMake] Installing a helper application

2011-01-06 Thread Ryan Pavlik
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 -- Ryan Pavlik HCI Graduate Student Virtual Reality

Re: [CMake] suspicious behaviour of FindPkgConfig

2011-01-06 Thread Ryan Pavlik
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 rpav...@iastate.edu http

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

2010-12-20 Thread Ryan Pavlik
://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 Applications

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
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 rpav...@iastate.edu http

Re: [CMake] cmake find_package() returns?

2010-12-13 Thread Ryan Pavlik
: 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
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/listinfo/cmake -- Ryan Pavlik HCI

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

2010-12-04 Thread Ryan Pavlik
/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] 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 kbe...@sandia.gov wrote: Hi Ryan, On Dec 4, 2010, at 10:08 AM, Ryan Pavlik wrote: You can configure this for your project: http://www.cmake.org

Re: [CMake] CMake Xcodeproject

2010-12-01 Thread Ryan Pavlik
-- 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 www.kitware.com Visit other Kitware

Re: [CMake] newline: for all platforms

2010-11-27 Thread Ryan Pavlik
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/listinfo/cmake -- Ryan Pavlik HCI Graduate

Re: [CMake] Compiling header files

2010-11-16 Thread Ryan Pavlik
/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] XCode 3.2.4 and CMake 2.8.2, setting GCC version to 4.0

2010-11-04 Thread Ryan Pavlik
://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 Applications Center Iowa

Re: [CMake] header files with visual studio

2010-11-04 Thread Ryan Pavlik
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.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik

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

2010-11-01 Thread Ryan Pavlik
/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, ACM and ACM SIGCHI Member, ASME http://academic.cleardefinition.com

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

2010-10-29 Thread Ryan Pavlik
/cmake-modules -- 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 www.kitware.com Visit

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

2010-10-28 Thread Ryan Pavlik
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] HINTS vs PATHS

2010-10-27 Thread Ryan Pavlik
/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.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com

Re: [CMake] Status of clang support?

2010-10-24 Thread Ryan Pavlik
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

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
/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 Applications Center Iowa State University

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

2010-10-07 Thread Ryan Pavlik
://github.com/rpavlik/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] undefining preprocessor macros

2010-09-30 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 HCI Graduate Student Virtual Reality Applications Center Iowa State University Member, ACM

Re: [CMake] Decoupuling configuration and toolchain

2010-09-23 Thread Ryan Pavlik
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

Re: [CMake] Decoupuling configuration and toolchain

2010-09-23 Thread Ryan Pavlik
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 rpav...@iastate.edu: Keep these lines, if they are necessary for your system: if(CMAKE_CONFIGURATION_TYPES) set(CMAKE_CONFIGURATION_TYPES Debug

Re: [CMake] Build multiple lib

2010-09-22 Thread Ryan Pavlik
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 University Member

Re: [CMake] Build multiple lib

2010-09-22 Thread Ryan Pavlik
in link time or build time, and since you probably should be using the solution file rather the individual vcproj files to launch your environment, there's really be very little effective difference. Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav

Re: [CMake] ccmake and cmake

2010-09-22 Thread Ryan Pavlik
with 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...@iastate.edu http

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

2010-09-22 Thread Ryan Pavlik
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/HCI Site: http://tinyurl.com/rpavlik

Re: [CMake] Execution order

2010-09-17 Thread Ryan Pavlik
-- 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 www.kitware.com Visit other Kitware

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

2010-09-17 Thread Ryan Pavlik
OK to just link to the name of the library. However, I can envision possibly wanting to run a find_package script in there, etc. Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal

Re: [CMake] Quick question about set and substitutions

2010-09-16 Thread Ryan Pavlik
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 rpav...@iastate.edu http

Re: [CMake] Quick question about set and substitutions

2010-09-16 Thread Ryan Pavlik
, 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 d3c...@gmail.com wrote: On Thu, Sep 16, 2010 at 6:30 PM, Ryan Pavlik rpav...@iastate.edu wrote: Why

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

2010-09-14 Thread Ryan Pavlik
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 rpav...@iastate.edu http

Re: [CMake] cgi sript compile

2010-09-14 Thread Ryan Pavlik
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-source

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

2010-09-13 Thread Ryan Pavlik
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] 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 University http

Re: [CMake] PIE and PIC in mixed projects

2010-09-09 Thread Ryan Pavlik
/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 www.kitware.com Visit other

Re: [CMake] what does NAME mean?

2010-09-03 Thread Ryan Pavlik
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 Applications

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

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

2010-09-02 Thread Ryan Pavlik
matching variables for the other target types, but I can't seem to find them on the online documentation. Hope this helps! Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal VRAC

Re: [CMake] Associating files with command

2010-09-01 Thread Ryan Pavlik
, this is what I have to stick to. /Anders On Tue, Aug 31, 2010 at 10:38 PM, Ryan Pavlik rpav...@iastate.edu mailto:rpav...@iastate.edu wrote: You were close: here's a function to handle the wrapping - could stick this in the Findtolua.cmake file that you've hopefully made

Re: [CMake] Import library for executables?

2010-09-01 Thread Ryan Pavlik
) 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/ ___ Powered by www.kitware.com

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

2010-08-31 Thread Ryan Pavlik
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/ ___ Powered by www.kitware.com Visit other Kitware open

Re: [CMake] Associating files with command

2010-08-31 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 HCI Graduate Student Virtual Reality Applications Center Iowa State University http

Re: [CMake] file(GLOB oddities

2010-08-27 Thread Ryan Pavlik
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://academic.cleardefinition.com

Re: [CMake] Windows debugger command project settings

2010-08-20 Thread Ryan Pavlik
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 University http://academic.cleardefinition.com

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

2010-08-12 Thread Ryan Pavlik
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/ ___ Powered

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

2010-08-06 Thread Ryan Pavlik
: 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] Complex command

2010-08-06 Thread Ryan Pavlik
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 Kitware open-source

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 Human

Re: [CMake] FindMatlab tips?

2010-08-06 Thread Ryan Pavlik
FORCE ) SET( MATLAB_ENG_LIBRARY ${MATLAB_ROOT_DIR}/extern/lib/${LIB_DIR}/microsoft CACHE STRING FORCE ) INCLUDE_DIRECTORIES( ${MATLAB_INCLUDE_DIR} ) endmacro() --end snip-- -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State

Re: [CMake] Cannot find modules directory on MacOS

2010-08-05 Thread Ryan Pavlik
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 rpav...@iastate.edu http

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

2010-08-05 Thread Ryan Pavlik
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.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik

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] Can cmake be used to build WDK driver applications?

2010-08-04 Thread Ryan Pavlik
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 rpav...@iastate.edu http

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
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 University rpav...@iastate.edu http://academic.cleardefinition.com

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
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 Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com

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.cleardefinition.com

Re: [CMake] Support for multiple components in cpack

2010-07-30 Thread Ryan Pavlik
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 Reality Applications Center Iowa State University rpav...@iastate.edu http

Re: [CMake] autoheader-like functionality?

2010-07-30 Thread Ryan Pavlik
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 of useful modules of functionality! (And, the docs are your friend, and keeping them open on a second monitor is a very good idea.) Ryan -- Ryan

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
, when it guesses the wrong decorated name or wrong location for my platform, at which point I realize I missed a library in my build system. It ends up being a slightly more convenient unresolved symbols error. Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality

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

2010-07-30 Thread Ryan Pavlik
) For more info: http://msdn.microsoft.com/en-us/library/abx4dbyh%28VS.80%29.aspx http://www.rationaldev.com/error_LNK2005_method_already_defined_in_LIBCMT_lib http://support.microsoft.com/kb/94248 - see section 4 and 5 Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual

Re: [CMake] libraryname decoration

2010-07-30 Thread Ryan Pavlik
learned that it's the wrong thing to do and that full library paths passed to the linker are the most reliable.) -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com

Re: [CMake] Cuda with CMake

2010-07-29 Thread Ryan Pavlik
. 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://academic.cleardefinition.com

Re: [CMake] Windows library target names

2010-07-22 Thread Ryan Pavlik
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://academic.cleardefinition.com/ ___ Powered

Re: [CMake] Windows library target names

2010-07-22 Thread Ryan Pavlik
like MSVC, each target gets a directory for each build type, and in a single-config generator you'll only have one build type per entire build tree. Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http

Re: [CMake] Parallel build with ctest 2.8.2

2010-07-21 Thread Ryan Pavlik
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/listinfo/cmake -- Ryan Pavlik HCI

Re: [CMake] Including Directories from external packages

2010-07-16 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 HCI Graduate Student Virtual Reality Applications Center Iowa State University

Re: [CMake] Macro Problem

2010-07-14 Thread Ryan Pavlik
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 rpav...@iastate.edu http

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

2010-07-14 Thread Ryan Pavlik
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.cleardefinition.com Internal VRAC/HCI

Re: [CMake] CTest examples

2010-07-12 Thread Ryan Pavlik
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 -- Ryan Pavlik Human-Computer Interaction Graduate

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 executable

Re: [CMake] Help getting my simple OpenGL project to use cmake

2010-07-08 Thread Ryan Pavlik
-- 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 Kitware open-source projects

Re: [CMake] Passing Function Arguments

2010-07-08 Thread Ryan Pavlik
://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 rpav...@iastate.edu http://academic.cleardefinition.com

Re: [CMake] How to tell cmake to use libs under Frameworks instead of macports and how to produce valid xcode project file, on Mac OS X Snow Leopard.

2010-07-03 Thread Ryan Pavlik
Lopes I've had no problems using CMake 2.8.1 and Xcode 3.1.3/4 - what version of xcode are you using? Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com

Re: [CMake] Combining projects made by several CMake solutions into 1 solution

2010-06-16 Thread Ryan Pavlik
, Bawenang R. P. P. Take a look here: this might serve your needs. http://cmake.org/cmake/help/cmake-2-8-docs.html#module:ExternalProject Ryan -- Ryan Pavlik Human-Computer Interaction Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http

  1   2   >