Re: [CMake] Using cache in -P scripts?

2008-10-23 Thread Abe Stephens
e is an existing mechanism. --Thanks Abe On Oct 23, 2008, at 2:19 AM, Mathieu Malaterre wrote: On Thu, Oct 23, 2008 at 5:53 AM, Abe Stephens <[EMAIL PROTECTED]> wrote: Hi, Is it possible for a script executed during build (via custom command of cmake -P) to load and read values fro

[CMake] Using cache in -P scripts?

2008-10-22 Thread Abe Stephens
Hi, Is it possible for a script executed during build (via custom command of cmake -P) to load and read values from the project's CMakeCache.txt file? I tried using load_cache in the script, but apparently that isn't allowed. Thanks- Abe ___ CMa

Re: [CMake] Setting up dependencies for non C++ files.

2007-11-20 Thread Abe Stephens
If you can get a list of dependencies from the shader compiler, it's possible to parse that list into something cmake can use. We did this with the output of "nvcc -M" for FindCuda.cmake: https://code.sci.utah.edu/svn/people/abe/code/CMake-cuda/CMake/cuda/make2cmake.cmake Abe On Nov 20, 200

[CMake] Hiding custom command output in visual studio.

2007-05-24 Thread Abe Stephens
Hi, I have a custom build macro which runs an external compiler to produce a dependency file which is converted into a cmake dependency list. When my macro is used in visual studio, the auto-generated dependency file is listed in the solution tree along side the external source file that wa

[CMake] passing arguments to "cmake -P"

2007-01-25 Thread Abe Stephens
Is there a way to pass command line arguments into variables when using "cmake -P"? I tried "cmake -P foo.cmake -D var=value" but that didn't work. I could do it using configure file, but that seems overly complicated. Thanks- Abe ___ CMake mailing

[CMake] making files appear in MSVS "solution explorer"

2006-12-14 Thread Abe Stephens
How can I add any old file to the solution explorer panel in visual studio? The .i files used by the swig module show up quite nicely but I can't follow what's going on in that script closely enough to figure it out. In the example below, is it possible to have ${source_file} show up in the

Re: [CMake] lib/dll LINK_LIBRARIES on windows?

2006-12-13 Thread Abe Stephens
Tristan Carel wrote: The synopsis of `SWIG_LINK_LIBRARIES' macro is: SWIG_LINK_LIBRARIES(module_name library [library...]) So try this: SWIG_LINK_LIBRARIES(glm ${PYTHON_LIBRARIES} glm ) Whoops, that was a typo in the email on my part. I am specifying the target name as the first argument. Th

[CMake] lib/dll LINK_LIBRARIES on windows?

2006-12-13 Thread Abe Stephens
Hi, This might be a pretty easy question. I'm porting some code from my usual linux/osx development environment to WindowXP. I have a library called "glm" which builds lib/glm.dll. That appears to work. If I try to use that library in a SWIG_LINK_LIBRARIES directive, I get an error that "gl

[CMake] FIND_LIBRARY problem

2006-10-22 Thread Abe Stephens
Hi, I have a CMake build for a project. The project contains several directories (included with the SUBDIRS command). One of these directories has the same name as a library that I search for using FIND_LIBRARY. For some reason, cmake returns the path to this subdirectory instead of the path

Re: [CMake] -fPIC .. (help w/ SET_TARGET_PROPERTIES)

2006-09-27 Thread Abe Stephens
Axel Roebel wrote: Hello, On Wednesday 27 September 2006 07:49, [EMAIL PROTECTED] wrote: I don't think it matters whether the static library is linked with an executable or a shared library.  Certainly linking to an external shared library has worked for me recently without me hav

Re: [CMake] -fPIC .. (help w/ SET_TARGET_PROPERTIES)

2006-09-26 Thread Abe Stephens
Alan W. Irwin wrote: On 2006-09-26 17:06-0600 Abe Stephens wrote: When I build object files for shared library targets cmake includes the position independent code flag (-fPIC). However when I build objects for static library targets the flag is omitted. I try to link the static lib to other

[CMake] -fPIC flag on object build for static lib targets?

2006-09-26 Thread Abe Stephens
When I build object files for shared library targets cmake includes the position independent code flag (-fPIC). However when I build objects for static library targets the flag is omitted. I try to link the static lib to other objects in a shared library the linker chokes. How can I explicit

Re: [CMake] svn info from cmake script?

2006-08-11 Thread Abe Stephens
as the project configure too. Thanks-- Abe Brad King wrote: Abe Stephens wrote: How can I have a CMake script run if a certain non-source file has changed since the last project build? I have a script which extracts some revision information from "svn info" and place

[CMake] svn info from cmake script?

2006-07-24 Thread Abe Stephens
How can I have a CMake script run if a certain non-source file has changed since the last project build? I have a script which extracts some revision information from "svn info" and places it in a source file via CONFIGURE_FILE. I'd like this script to be executed during build every time the