Re: [CMake] Find module for the Subversion API

2009-08-14 Thread Philip Lowman
On Thu, Aug 13, 2009 at 4:32 PM, Robert Dailey rcdai...@gmail.com wrote: In case no one knows this, the Subversion API requires over 10 separate dependencies in order to build it into a fully-functional API. In other words, there are certain dependencies that are optional, but I'm assuming a

Re: [CMake] ccmake .

2009-08-14 Thread Dominik Szczerba
Tested with cmake 2.6.4 on linux. It is the case with all my projects, probably we don't need a test case. The mentioned actions simply modify CMakeCache.txt (check with your running projects), while they should not, should they? Dominik Eric Noulard wrote: 2009/8/13 Dominik Szczerba

Re: [CMake] ccmake .

2009-08-14 Thread Michael Wild
I also noticed that ccmake always modifies the cache. But that in itself should NOT cause a complete rebuild of your project. On the next `make' it should only re-configure and regenerate the build system, and then print a list of all targets as Make checks them all, but nothing should

Re: [CMake] CPack Error: Not enough items on list: CPACK_INSTALL_CMAKE_PROJECTS

2009-08-14 Thread Karl Reite
Your post solved it! I use an environment variable for project name, which is set only for the process running CMake, not CPack. So when i substitute this variable with a string, it is ok. Thank you! Karl From: David Cole [mailto:david.c...@kitware.com]

[CMake] Useful feature: join_arguments() ?

2009-08-14 Thread Marcel Loose
Hi all, I was wondering whether it would be useful if join_arguments() were added to CMake (not as a macro, but as a built-in command), where join_arguments() does the oppositie of separate_arguments(); i.e. create a space separated string of the elements of a list. I know that several people

Re: [CMake] ccmake .

2009-08-14 Thread Eric Noulard
2009/8/14 Michael Wild them...@gmail.com: I also noticed that ccmake always modifies the cache. But that in itself should NOT cause a complete rebuild of your project. On the next `make' it should only re-configure and regenerate the build system, and then print a list of all targets as Make

Re: [CMake] How to set suid for an executable with CMake and CPack?

2009-08-14 Thread Dong Tiger
Another question, how to set the owner of files for MacOSX PackageMaker packages? 2009/8/14 Dong Tiger idlecat...@gmail.com fakeroot make package solved my problem. 2009/8/10 Eric Noulard eric.noul...@gmail.com 2009/8/10 Dong Tiger idlecat...@gmail.com: Thanks. I'll take a look although I

[CMake] .vfproj with cmake

2009-08-14 Thread lokmane.abbas-turki
 Hi,  I cannot create a Visual Frotran Project using Intel Fortran 11.0 on  Visual Studio 9. When I press configure on the CMake GUI I have the following error: CMake Error at C:/PRogram Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestFortranCompiler.cmake:25 (MESSAGE): The Fortran compiler

Re: [CMake] .vfproj with cmake

2009-08-14 Thread Bill Hoffman
lokmane.abbas-turki wrote: Hi, I cannot create a Visual Frotran Project using Intel Fortran 11.0 on Visual Studio 9. When I press configure on the CMake GUI I have the following error: CMake Error at C:/PRogram Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestFortranCompiler.cmake:25

Re: [CMake] ccmake .

2009-08-14 Thread Dominik Szczerba
Filed under: http://public.kitware.com/Bug/view.php?id=9418 Many thanks Eric and Michael. PS. Indeed, cmake-gui does NOT modify the cache in vein, which is what I would expect. Dominik Eric Noulard wrote: 2009/8/14 Michael Wild them...@gmail.com: I also noticed that ccmake always

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Kenneth Chang
Tried this, ABCD_LIBRARY gets the correct path, but for some reason, target_link_libraries likes to convert it to -Lxxx -lyyy on the link line. (I've previously typed the name of the file directly into the target_link_libraries() command too) I'm seeing some of these properties like

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Michael Wild
What version of CMake are you using? Anything before 2.6 used to do this, newer versions shouldn't. Michael On 14. Aug, 2009, at 18:23, Kenneth Chang wrote: Tried this, ABCD_LIBRARY gets the correct path, but for some reason, target_link_libraries likes to convert it to -Lxxx -lyyy on the

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Kenneth Chang
kch...@fiji:~$ cmake --version cmake version 2.6-patch 2 Michael Wild wrote: What version of CMake are you using? Anything before 2.6 used to do this, newer versions shouldn't. Michael On 14. Aug, 2009, at 18:23, Kenneth Chang wrote: Tried this, ABCD_LIBRARY gets the correct path, but for

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Dominik Szczerba
Try latest! BTW I am doing such tricks for annoying bad-named stuff: SET_SOURCE_FILES_PROPERTIES( ${FLEXLM_OBJECTS} PROPERTIES EXTERNAL_OBJECT true # if it should be compiled or only linked GENERATED false # if the

Re: [CMake] .vfproj with cmake

2009-08-14 Thread lokmane.abbas-turki
Please, find attached to this email the CMakeError.log file. Thank you. Lokman. Message du 14/08/09 14:17 De : Bill Hoffman A : lokmane.abbas-turki Copie à : cmake@cmake.org Objet : Re: [CMake] .vfproj with cmake lokmane.abbas-turki wrote: Hi, I cannot create a Visual Frotran

[CMake] DejaGNU.

2009-08-14 Thread Óscar Fuentes
A project has a large number of DejaGNU tests and it is unfeasible to translate them to CTest. So far I think it is possible to configure and drive DejaGNU from cmake for running all the test suite, but not parts or individual tests. Any experiences or advices on how to deal with DejaGNU from

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Kenneth Chang
Just downloaded 2.6.4, same behavior. Do I have to mark the .so extension so it's recognized as a linkable item? Kenny Dominik Szczerba wrote: Try latest! BTW I am doing such tricks for annoying bad-named stuff: SET_SOURCE_FILES_PROPERTIES( ${FLEXLM_OBJECTS} PROPERTIES

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Bill Hoffman
Kenneth Chang wrote: Just downloaded 2.6.4, same behavior. Do I have to mark the .so extension so it's recognized as a linkable item? Why not use target_link_libraries with a full path to the .so? -Bill ___ Powered by www.kitware.com Visit other

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Kenneth Chang
I did, then cmake broke the .so down into its component paths and library name, and used -Lpath -llibname, which caused the linker to look for path/liblibname.so -Kenny Bill Hoffman wrote: Kenneth Chang wrote: Just downloaded 2.6.4, same behavior. Do I have to mark the .so extension so

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Michael Wild
What does your cache entry say? When you did your testing, did you always delete the cache? Otherwise you get strange effects... Please show us the output of something like this in your CMakeLists.txt: message( STATUS DEBUG: ABCD_LIBRARY = '${ABCD_LIBRARY}' ) and the link command you can see

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Bill Hoffman
Kenneth Chang wrote: I did, then cmake broke the .so down into its component paths and library name, and used -Lpath -llibname, which caused the linker to look for path/liblibname.so It should not do that in 2.6.4, it should use the full path Do you have any policy warnings, or do you

[CMake] ENABLE_LANGUAGE(ASM_MASM) does not seem work correctly

2009-08-14 Thread Gareth Morgan
I'm trying to compile a ASM file using cmake 2.6 (patch 4). I'm running visual studio 2008, under 64-bit Vista. Neither Win32 or x64 build work. I have a simple test app (attached), with a single CPP file and an asm file. My cmakelists.txt looks like this (I have to include the .asm

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Kenneth Chang
I manufactured a simple setup to demonstrate what I have. I hope this helps. Thanks, Kenny CMakeLists.txt ~~ CMAKE_MINIMUM_REQUIRED( VERSION 2.6.4 ) ADD_EXECUTABLE( main main.cc ) SET( CMAKE_SHARED_LIBRARY_PREFIX_bak ${CMAKE_SHARED_LIBRARY_PREFIX} ) SET( CMAKE_SHARED_LIBRARY_PREFIX

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Tyler Roscoe
On Fri, Aug 14, 2009 at 05:38:06PM -0400, Kenneth Chang wrote: SET( CMAKE_SHARED_LIBRARY_PREFIX_bak ${CMAKE_SHARED_LIBRARY_PREFIX} ) SET( CMAKE_SHARED_LIBRARY_PREFIX ) FIND_LIBRARY( THOST_LIBRARY thostmduserapi.so PATHS /home/kchang/sandbox/thost ) SET( CMAKE_SHARED_LIBRARY_PREFIX

Re: [CMake] linking with .so w/ non-standard names

2009-08-14 Thread Bill Hoffman
Kenneth Chang wrote: I manufactured a simple setup to demonstrate what I have. I hope this helps. ... Is /home/kchang/sandbox/thost/thostmduserapi.so a valid object? I was able to reproduce what you had if I did this: cmake_minimum_required(VERSION 2.6.4) add_executable(foo foo.c)

[CMake] How to set ownership for files in Mac Package built with CPack

2009-08-14 Thread Dong Tiger
Hi, The ownership of files is set to the account who builds the package. But I want to set it to root. For debian packages, I can use fakeroot to do that. Is there equivalent of fakeroot on Mac? Thanks! And what if I want to set the ownership to account other than root? Is this doable for debian