Re: [CMake] Re: Bug with cmake's `--debug-trycompile' option?

2007-12-19 Thread Clark J. Wang
On Dec 19, 2007 12:35 PM, Bill Hoffman [EMAIL PROTECTED] wrote: Clark J. Wang wrote: Anybody has any idea? On Dec 11, 2007 5:07 PM, Clark J. Wang [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I This is fine for `sys/event.h' is not available on my system. But when

[CMake] Re: Bug with cmake's `--debug-trycompile' option?

2007-12-18 Thread Clark J. Wang
Anybody has any idea? On Dec 11, 2007 5:07 PM, Clark J. Wang [EMAIL PROTECTED] wrote: I have a CMakeLists.txt like this: PROJECT(foo) SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) INCLUDE(CheckIncludeFile) CHECK_INCLUDE_FILE(poll.h VAR1) CHECK_INCLUDE_FILE(sys/event.h VAR2) When I run

[CMake] Bug with cmake's `--debug-trycompile' option?

2007-12-11 Thread Clark J. Wang
I have a CMakeLists.txt like this: PROJECT(foo) SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) INCLUDE(CheckIncludeFile) CHECK_INCLUDE_FILE(poll.h VAR1) CHECK_INCLUDE_FILE(sys/event.h VAR2) When I run `cmake .' it outputed like this: -- Check for working C compiler: /usr/bin/gcc -- Check for

[CMake] What does this mean: IF(${VARIABLE} MATCHES ^${VARIABLE}$)

2007-12-11 Thread Clark J. Wang
The header of many CMake modules often looks like this (take CheckIncludeFile as an example): MACRO(CHECK_INCLUDE_FILE INCLUDE VARIABLE) IF(${VARIABLE} MATCHES ^${VARIABLE}$) ... ... The IF statement really puzzles me a lot. What is it used to do?

Re: [CMake] need help with modified helloworld

2007-07-24 Thread Clark J. Wang
On 7/25/07, Andy Dingfelder [EMAIL PROTECTED] wrote: I'm wondering if someone could help me with a simple change to the helloworld example I have gotten the helloworld to work with either windows output or linux output, by changing the base CMakeLists.txt file but am struggling on how to build

Re: [CMake] Re: CMake Digest, Vol 39, Issue 38

2007-07-19 Thread Clark J. Wang
On 7/19/07, cjacker [EMAIL PROTECTED] wrote: Shall I reply this message? I found a question about redflag Is RedFlag's project using CMake? Yes. I am A so called Development Dept. Senior Manager from RedFlag. Is RedFlag hiring new people? Maybe I can consider joining RedFlag. :-) From

Re: [CMake] About variable Usage in cmake

2007-07-18 Thread Clark J. Wang
On 7/19/07, cjacker [EMAIL PROTECTED] wrote: I am writing a not too short Chinese tutorial about cmake. Up to now nine chapter had already been finished, include: Interesting. Is RedFlag's project using CMake? :-) prefix 1,about cmake 2,how to install cmake. 3,Hello World in cmake use

Re: [CMake] how to use CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH?

2007-07-18 Thread Clark J. Wang
On 7/19/07, cjacker [EMAIL PROTECTED] wrote: cmake-2.4.6. I had search it anywhere. somebody said these are environment variable in some CMakeLists.txt I also find something like this: set(CMAKE_INCLUDE_PATH /include) This seems like a cmake variable not a environment variable. Also, I did

Re: [CMake] cmake install - problem at copy

2007-07-10 Thread Clark J. Wang
On 7/10/07, B. Carrupt [EMAIL PROTECTED] wrote: It's working now, thanks. I had to add /usr/local/lib in ld.so.conf (don't know why it's not there by default) so that the wx libraries could be found. What I don't understand is why it was working when I ran the binary from the build/bin

Re: [CMake] cmake install - problem at copy

2007-07-09 Thread Clark J. Wang
On 7/9/07, digicapt - cmake [EMAIL PROTECTED] wrote: Hi, I'm using the version 2.4-patch 6 of cmake on a Fedora core 6 and I have a problem with the INSTALL : the generated target works fine (in the build directory) but the copy in the destination is changed so that some libraries are not

[CMake] CMake 2.6.0?

2007-07-02 Thread Clark J. Wang
The wiki page on http://www.cmake.org/Wiki/CMake_Cross_Compiling says: Cross compiling is supported by CMake starting with version 2.6.0. Where's CMake 2.6.0? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] custom target (kernel modules)

2007-06-30 Thread Clark J. Wang
On 6/29/07, Alexandru Ciobanu [EMAIL PROTECTED] wrote: Hi, Clark! Here is the reason why I wanted to use this approach. I use ADD_CUSTOM_COMMAND and ADD_CUSTOM_TARGET because I don't want to run that Makefile at all if the files did not change. ADD_CUSTOM_TARGET with ALL parameter would

Re: [CMake] Getting an RPath set in a Library

2007-06-30 Thread Clark J. Wang
On 7/1/07, Mike Jackson [EMAIL PROTECTED] wrote: On Jun 30, 2007, at 3:12 PM, Alan W. Irwin wrote: On 2007-06-30 11:50-0400 Mike Jackson wrote: So I tried various incantations of SET_TARGET_PROPERTIES and all had no effect: IF ( APPLE ) SET_TARGET_PROPERTIES (${MXADATAMODEL_LIB_NAME}

Re: [CMake] custom target (kernel modules)

2007-06-28 Thread Clark J. Wang
On 6/28/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-06-28 10:08-0400 Alexandru Ciobanu wrote: Hi! I am trying to build kernel modules with CMake. To do that I use the command below: add_custom_target ( manager.ko ${kbuild_cmd} WORKING_DIRECTORY

Re: [CMake] custom target (kernel modules)

2007-06-28 Thread Clark J. Wang
On 6/29/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-06-29 09:04+0800 Clark J. Wang wrote: On 6/28/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-06-28 10:08-0400 Alexandru Ciobanu wrote: If I use the ALL parameter in add_custom_target() it will always rebuild it, even

[CMake] Progress above 100% when making chicken-2.6

2007-06-27 Thread Clark J. Wang
I downloaded chicken-2.6 from http://www.call-with-current-continuation.org/index.html and compiled it with CMake-2.4.6. When making, the progress percentage showed more than 100%: ... ... [ 96%] Building C object CMakeFiles/libuchicken.dir/runtime.o [ 98%] Building C object

[CMake] Re: [2.4.6] EXCLUDE_FROM_ALL does not work?

2007-06-14 Thread Clark J. Wang
There's already a but for it: http://www.cmake.org/Bug/bug.php?op=showbugid=5096 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to get suffix of shared library file?

2007-06-14 Thread Clark J. Wang
On 6/15/07, Brandon Van Every [EMAIL PROTECTED] wrote: On 6/13/07, Clark J. Wang [EMAIL PROTECTED] wrote: I've tried GET_TARGET_PROPERTY but it does not work. The SUFFIX property returns NOTFOUND unless we explicitly set it by calling SET_TARGET_PROPERTIES. I'd call that a bug. Would you

[CMake] How to get suffix of shared library file?

2007-06-13 Thread Clark J. Wang
Shared libs have different suffixes on different OSes. For example on Linux the suffix is `.so' and on Mac OS X it's `.dylib'. I want to use `dlopen()' in my code so I want to get the suffix and then define it in a header file. Can I do that in CMake? And how? Thanks.

Re: [CMake] How to get suffix of shared library file?

2007-06-13 Thread Clark J. Wang
On 6/14/07, Brandon Van Every [EMAIL PROTECTED] wrote: On 6/13/07, Clark J. Wang [EMAIL PROTECTED] wrote: Shared libs have different suffixes on different OSes. For example on Linux the suffix is `.so' and on Mac OS X it's `.dylib'. I want to use `dlopen()' in my code so I want to get

Re: [CMake] How to get suffix of shared library file?

2007-06-13 Thread Clark J. Wang
On 6/14/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-06-14 08:58+0800 Clark J. Wang wrote: Shared libs have different suffixes on different OSes. For example on Linux the suffix is `.so' and on Mac OS X it's `.dylib'. I want to use `dlopen()' in my code so I want to get the suffix

Re: [CMake] How to get suffix of shared library file?

2007-06-13 Thread Clark J. Wang
On 6/14/07, Clark J. Wang [EMAIL PROTECTED] wrote: On 6/14/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-06-14 08:58+0800 Clark J. Wang wrote: Shared libs have different suffixes on different OSes. For example on Linux the suffix is `.so' and on Mac OS X it's `.dylib'. I want

[CMake] [2.4.6] EXCLUDE_FROM_ALL does not work?

2007-06-13 Thread Clark J. Wang
$ ls CMakeLists.txt dummy.c $ cat CMakeLists.txt PROJECT(foo) ADD_LIBRARY(dummy SHARED EXCLUDE_FROM_ALL dummy.c) $ cmake . -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working

Re: [CMake] Re: How to integrate 3rd-party software into cmake system

2007-06-10 Thread Clark J. Wang
On 6/10/07, Jack Kelly [EMAIL PROTECTED] wrote: Clark J. Wang wrote: Clark J. Wang wrote: Another question: By default `make clean' does not know how to clean the 3rd-party package. How can I add another command which will be run by `make clean

Re: [CMake] Re: How to integrate 3rd-party software into cmake system

2007-06-10 Thread Clark J. Wang
On 6/10/07, Mike Jackson [EMAIL PROTECTED] wrote: On Jun 10, 2007, at 8:30 AM, Clark J. Wang wrote: On 6/10/07, Jack Kelly [EMAIL PROTECTED] wrote: Clark J. Wang wrote: Clark J. Wang wrote: Another question: By default `make clean' does not know how to clean

Re: [CMake] How to integrate 3rd-party software into cmake system

2007-06-09 Thread Clark J. Wang
On 6/9/07, Brandon Van Every [EMAIL PROTECTED] wrote: On 6/9/07, Clark J. Wang [EMAIL PROTECTED] wrote: ADD_CUSTOM_COMMAND( OUTPUT ${hellolib} ${helloexe} COMMAND make -C ${hellodir} COMMAND cp ${hellodir}/libhello.so ${hellolib} COMMAND cp ${hellodir}/hello ${helloexe

[CMake] Re: How to integrate 3rd-party software into cmake system

2007-06-09 Thread Clark J. Wang
On 6/9/07, Clark J. Wang [EMAIL PROTECTED] wrote: For example, I have a project `test' which needs a 3rd-party software `hello'. The directory structure looks like this: test/test.c test/CMakeLists.txt test/build -- I run cmake in this directory test/hello/hello.c test/hello/main.c test/hello

Re: [CMake] Re: How to integrate 3rd-party software into cmake system

2007-06-09 Thread Clark J. Wang
On 6/9/07, gga [EMAIL PROTECTED] wrote: Clark J. Wang wrote: Another question: By default `make clean' does not know how to clean the 3rd-party package. How can I add another command which will be run by `make clean'? AFAIK, you can't. But you can add additional files to the clean

[CMake] What's the difference of CMAKE_SOURCE_DIR, PROJECT_SOURCE_DIR and project_SOURCE_DIR?

2007-05-22 Thread Clark J. Wang
For PROJECT(project), what's the difference between CMAKE_SOURCE_DIR, PROJECT_SOURCE_DIR and project_SOURCE_DIR? And XXX_BINARY_DIR? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Re: What's the difference of CMAKE_SOURCE_DIR, PROJECT_SOURCE_DIR and project_SOURCE_DIR?

2007-05-22 Thread Clark J. Wang
On 5/22/07, Clark J. Wang [EMAIL PROTECTED] wrote: For PROJECT(project), what's the difference between CMAKE_SOURCE_DIR, PROJECT_SOURCE_DIR and project_SOURCE_DIR? And XXX_BINARY_DIR? I found quite a few of similar variables on the wiki page ( http://www.cmake.org/Wiki/CMake_Useful_Variables

Re: [CMake] [Cygwin] SET_TARGET_PROPERTIES does not work fine

2007-05-22 Thread Clark J. Wang
On 5/23/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-05-23 09:50+0800 Clark J. Wang wrote: In Cygwin environment I have a C source file named `grep.c' which needs `libpcre' to compile. The CMakeLists.txt writes: PROJECT(myGrep) SET(CMAKE_VERBOSE_MAKEFILE ON) FIND_PROGRAM

Re: [CMake] Module FindTCL behaves differently on Linux and Mac OS X

2007-05-20 Thread Clark J. Wang
On 5/18/07, Clark J. Wang [EMAIL PROTECTED] wrote: On 5/18/07, Alan W. Irwin [EMAIL PROTECTED] wrote: On 2007-05-18 11:00+0800 Clark J. Wang wrote: In my Ubuntu Linux box, after INCLUDE(FindTCL) I get the following result: TCL_INCLUDE_PATH = /usr/include/tcl8.4 TCL_LIBRARY

Re: [CMake] how to get compile environment ($host) in cmake

2007-05-17 Thread Clark J. Wang
On 5/17/07, haibin zhang [EMAIL PROTECTED] wrote: Hi all : how to get $host in cmake ? In autotool , it can use $host to get compile environment, example cygwin,i686-pc-mingw32 . Use CMAKE_SYSTEM regards -- Mp3疯狂搜-新歌热歌高速下

Re: [CMake] how to get compile environment ($host) in cmake

2007-05-17 Thread Clark J. Wang
set this , WIN32 or UNIX or other ? When running `cmake path-to-source' , there will be a file `path-to-source/CMakeFiles/CMakeCCompiler.cmake' created.It'll set variables like UNIX, CYGWIN or MINGW. regards *Clark J. Wang [EMAIL PROTECTED]* 写道: On 5/17/07, haibin zhang [EMAIL PROTECTED

[CMake] Module FindTCL behaves differently on Linux and Mac OS X

2007-05-17 Thread Clark J. Wang
In my Ubuntu Linux box, after INCLUDE(FindTCL) I get the following result: TCL_INCLUDE_PATH = /usr/include/tcl8.4 TCL_LIBRARY = /usr/lib/libtcl8.4.so But in my Mac OS X 10.4 the result is: TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers TCL_LIBRARY =

[CMake] How to specify target specific CPPFLAGS or CFLAGS?

2007-05-15 Thread Clark J. Wang
I have a C source file `foo.c' and I want to produce 2 executables like this: $ gcc -DFLAG_1 -o foo_1 foo.c $ gcc -DFLAG_2 -o foo_2 foo.c How should I write the CMake rules? Thanks. ___ CMake mailing list CMake@cmake.org

Re: [CMake] How to specify target specific CPPFLAGS or CFLAGS?

2007-05-15 Thread Clark J. Wang
Thanks, Eric. The FM is not as easy to understand as the FMs of autotools :) I prefer TexInfo format manuals. It's much readable than man pages but I find no TexInfo manuals in CMake's package :( On 5/15/07, Eric Noulard [EMAIL PROTECTED] wrote: 2007/5/15, Clark J. Wang [EMAIL PROTECTED]: I

[CMake] No support for lex/flex and yacc/bison?

2007-05-15 Thread Clark J. Wang
I read through the CMake's man page and found no support for lex/flex and yacc/bison. Need I define my own rules to handle with lex/yacc source files? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake