[CMake] select debug or optimized at make time instead of at cmake time

2006-10-06 Thread Richard Fuchs
Is there a way to be able to select if the build will be debug or optimized at make time instead of during cmake time? So, I can SET(CMAKE_BUILD_TYPE Debug) or SET(CMAKE_BUILD_TYPE Release) for debug or optimized code respectively, then when I run make, the corresponding compiler flags are

[CMake] custom_command pre_build vs. post_build

2006-09-20 Thread Richard Fuchs
I've added some logging around each of our libraries that we build, but I'm getting an unexpected result. I'm using a custom command with the cmake -E echo to print a log out before and after a library is built. However, the results are not consistent. When we have custom targets, things

[CMake] ADD_LIBRARY default behavior

2006-08-30 Thread Richard Fuchs
I want to be able to create my libraries in a different directory instead of the current_bin_dir For example: ADD_LIBRARY(serialize SHARED ${SERIALIZE_SRCS}) creates current_bin_dir/libserialize.so But if I try: ADD_LIBRARY(/all_my_lib_files/serialize SHARED ${SERIALIZE_SRCS}) instead of

Re: [CMake] ADD_LIBRARY default behavior

2006-08-30 Thread Richard Fuchs
William A. Hoffman wrote: At 11:06 AM 8/30/2006, Richard Fuchs wrote: I want to be able to create my libraries in a different directory instead of the current_bin_dir See : http://www.cmake.org/Wiki/CMake_Useful_Variables LIBRARY_OUTPUT_PATH -Bill Ah, so simple

Re: [CMake] ADD_LIBRARY default behavior

2006-08-30 Thread Richard Fuchs
William A. Hoffman wrote: At 01:51 PM 8/30/2006, Richard Fuchs wrote: William A. Hoffman wrote: At 11:06 AM 8/30/2006, Richard Fuchs wrote: I want to be able to create my libraries in a different directory instead of the current_bin_dir See : http

Re: [CMake] ADD_LIBRARY default behavior

2006-08-30 Thread Richard Fuchs
Mike Jackson wrote: On 8/30/06 1:51 PM, Richard Fuchs [EMAIL PROTECTED] wrote: William A. Hoffman wrote: At 11:06 AM 8/30/2006, Richard Fuchs wrote: I want to be able to create my libraries in a different directory instead of the current_bin_dir See : http

[CMake] End around for java?

2006-08-07 Thread Richard Fuchs
Could I just use EXECUTE_PROCESS to call make (with a hand created Makefile) or even the java compiler itself to get around the problems I'm having with cmake and java not liking each other very much? Thanks Richard ___ CMake mailing list

Re: [CMake] End around for java?

2006-08-07 Thread Richard Fuchs
Brad King wrote: Richard Fuchs wrote: Could I just use EXECUTE_PROCESS to call make (with a hand created Makefile) or even the java compiler itself to get around the problems I'm having with cmake and java not liking each other very much? You can use ADD_CUSTOM_COMMAND

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-02 Thread Richard Fuchs
Brad King wrote: Richard Fuchs wrote: After hunting through CMakeJavaInformation.cmake, it doesn't seem to have a CMAKE_Java_LINK_EXECUTABLE target/property (or whatever the correct name for it is). Does this mean that you can't call ADD_EXECUTABLE with java files and I need to use

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-02 Thread Richard Fuchs
Spoke to soon, it seems to be a problem with where javac is invoked. With the current makefiles that are created, the javac -d option has a relative path from where the source files are located, but javac is being invoked from the root project dir. I was able to modify the build.make file

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-01 Thread Richard Fuchs
Brad King wrote: Richard Fuchs wrote: I'm getting this error CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_Java_LINK_EXECUTABLE where/how does this variable get set? What is your CMakeLists.txt file code

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-01 Thread Richard Fuchs
To answer my own question, yes don't call ADD_EXECUTABLE with java files, use ADD_LIBRARY. After hunting through CMakeJavaInformation.cmake, it doesn't seem to have a CMAKE_Java_LINK_EXECUTABLE target/property (or whatever the correct name for it is). Does this mean that you can't call

[CMake] CMAKE_Java_LINK_EXECUTABLE

2006-07-31 Thread Richard Fuchs
I'm getting this error CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_Java_LINK_EXECUTABLE where/how does this variable get set? Thanks Richard ___ CMake mailing list

[CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Richard Fuchs
Im setting up the build environment for our project and Ive been looking around to find some examples of how to create CMakelists.txt files and the only examples Ive come across so far are the trivial ones on the cmake page and the crazy convoluted ones (well, from my novice perspective)