Re: [CMake] Linking object files into executable target

2008-12-09 Thread Colin D Bennett
On Tue, 9 Dec 2008 22:26:11 -0800 Colin D Bennett <[EMAIL PROTECTED]> wrote: > The problem is that CMake is *silently* ignoring the request to link > the object file into the executable target with ADD_EXECUTABLE(). I forgot to include the CMake/SDCC toolchain file I'm using, which might be of he

[CMake] Linking object files into executable target

2008-12-09 Thread Colin D Bennett
I'm using CMake and SDCC to build a project for the 8051 microcontroller. CMake has been working great for this so far, but now I need to link in an object file that I've assembled with SDCC's "asx8051" assembler, and I am not able to get CMake to explicitly add an object file to the list of objec

[CMake] [PATCH] Support for >= and <= operators in IF() conditional

2008-12-09 Thread Philip Lowman
Sent this in a few days ago for any who are interested. http://public.kitware.com/Bug/view.php?id=8222 It's not bloat, it's convenience! =) -- Philip Lowman ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Should changing, adding or removing add_definitions call trigger a recompile of affected files

2008-12-09 Thread Philip Lowman
On Tue, Dec 9, 2008 at 1:08 PM, Philip Lowman <[EMAIL PROTECTED]> wrote: > This is a known problem. Visual Studio has no way of knowing that the > compiler flags changed in a project file CMake is writing to. > > I would love to see a patch for this for CMake 2.8. One thought I had here was to

Re: [CMake] Question about install()

2008-12-09 Thread Bill Hoffman
Robert Dailey wrote: I actually did a little thinking and I came up with this: add_custom_command( TARGET ${component_project_name} POST_BUILD COMMAND "depends.py" ARGS "$(ConfigurationName)" ) Of course this only works for visual studio projects, b

Re: [CMake] Question about install()

2008-12-09 Thread Hugo Heden
2008/12/9 Robert Dailey <[EMAIL PROTECTED]>: > On Tue, Dec 9, 2008 at 11:05 AM, Robert Dailey <[EMAIL PROTECTED]> wrote: >> >> Michael, >> >> Is there a way to call add_custom_command() on a specific configuration >> for a specific target? If I can do this then I can use CMAKE to copy the >> files

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 4:33 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > On Tue, Dec 9, 2008 at 4:25 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > >> Robert Dailey wrote: >> >> >>> After much research, I've found out that CMake cannot provide a custom >>> command (Post build event) to a specific

[CMake] How to add a libaray for another libaray?

2008-12-09 Thread Kermit Mei
Hello, My project is layout like this: Linux-cmd$ tree . |-- CMakeLists.txt |-- core | |-- CMakeLists.txt | |-- ... ... ... | |-- (Some source files to implement the internal function.) `-- ui |-- CMakeLists.txt |-- ... ... ... |-- (Some source files to impliment the UI) |-- main.cpp

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 4:25 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > > >> After much research, I've found out that CMake cannot provide a custom >> command (Post build event) to a specific configuration in the case where >> CMake is used to generate a multi-configuration

Re: [CMake] Question about install()

2008-12-09 Thread Bill Hoffman
Robert Dailey wrote: After much research, I've found out that CMake cannot provide a custom command (Post build event) to a specific configuration in the case where CMake is used to generate a multi-configuration target, such as a visual studio project. This is a HUGE problem for me. Are the

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 11:05 AM, Robert Dailey <[EMAIL PROTECTED]> wrote: > Michael, > > Is there a way to call add_custom_command() on a specific configuration for > a specific target? If I can do this then I can use CMAKE to copy the files > appropriately and your method would work perfectly. >

Re: [CMake] MSVC71 WholeProgramOptimization flags (/LTCG and /GL)

2008-12-09 Thread Luke Kucalaba
Problem solved! I finally found some time today to checkout the CMake source code and get setup for development. I started the build and found the answer I was looking for in cmLocalVisualStudio7Generator::OutputBuildTool() : const char* tool = "VCLibrarianTool"; fout << "\t\t\t Thank

Re: [CMake] Emulating libtool's -version-info with CMake?

2008-12-09 Thread Shlomi Fish
On Tuesday 09 December 2008, Eric Noulard wrote: > 2008/12/9 Shlomi Fish <[EMAIL PROTECTED]>: > > Hi all! > > > > I have a .so library (for Unix/Windows) that I maintain several versions > > of. I'd like to have a symbolic links structure similar to > > libtool's -version-info : > > > > http://www.

Re: [CMake] file(GLOB) for directories?

2008-12-09 Thread Robert Dailey
On Tue, Dec 9, 2008 at 12:30 PM, David Cole <[EMAIL PROTECTED]> wrote: > "file(GLOB" with globbing expression of "*" and then iterate the results > and ask "if(IS_DIRECTORY" on each result... Thanks, this works perfectly! ___ CMake mailing list CMake@c

Re: [CMake] Linking boost failure

2008-12-09 Thread Hendrik Sattler
Am Tuesday 09 December 2008 18:09:23 schrieb kafou nmento: > Hi all! > I'm compiling a Qt based libtorrent app with CMake using MinGW generator. > For those not knowing libtorrent, it is a lib fully boost based. (boost > version used 1.34.1). 100% of the build goes well. But at the linking it > fai

Re: [CMake] file(GLOB) for directories?

2008-12-09 Thread David Cole
"file(GLOB" with globbing expression of "*" and then iterate the results and ask "if(IS_DIRECTORY" on each result... On Tue, Dec 9, 2008 at 1:15 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > How would I use file( GLOB ) to get a list of directories instead of files? > > _

[CMake] file(GLOB) for directories?

2008-12-09 Thread Robert Dailey
How would I use file( GLOB ) to get a list of directories instead of files? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Should changing, adding or removing add_definitions call trigger a recompile of affected files

2008-12-09 Thread Philip Lowman
This is a known problem. Visual Studio has no way of knowing that the compiler flags changed in a project file CMake is writing to. I would love to see a patch for this for CMake 2.8. .. Original Message ... On Tue, 9 Dec 2008 10:38:22 -0700 "James Bigler" <[EMAIL PROTECTED]> wrote: >I

[CMake] Should changing, adding or removing add_definitions call trigger a recompile of affected files

2008-12-09 Thread James Bigler
I'm using CMake 2.6.3R5 on WinXP 64 using VS 2005 building a 32 bit binary. When I changed a CMake option it removed a call to add_definitions. The flags used to compile the project now changed. I thought I remember (and perhaps this was when I was using Makefiles more), that it should trigger a

[CMake] Linking boost failure

2008-12-09 Thread kafou nmento
Hi all! I'm compiling a Qt based libtorrent app with CMake using MinGW generator. For those not knowing libtorrent, it is a lib fully boost based. (boost version used 1.34.1). 100% of the build goes well. But at the linking it fails with errors like "undefined reference to boost::". The most

Re: [CMake] Question about install()

2008-12-09 Thread Robert Dailey
Michael, Is there a way to call add_custom_command() on a specific configuration for a specific target? If I can do this then I can use CMAKE to copy the files appropriately and your method would work perfectly. Thanks for your tme. ___ CMake mailing li

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread Bill Hoffman
George Neill wrote: Bill, On Tue, Dec 9, 2008 at 9:43 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: George Neill wrote: Bill, On Tue, Dec 9, 2008 at 7:02 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: George Neill wrote: Hi CMakers, I'd like to use cmake with the Sun cc/CC compiler on linux.

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread George Neill
Bill, >> Do you have CXXFLAGS, CFLAGS, or LDFLAGS set in your environment before you >> run CMake that have gnu flags in them? > > I do not, > > [EMAIL PROTECTED]:~$ env | grep CC > [EMAIL PROTECTED]:~$ env | grep CXX [EMAIL PROTECTED]:~$ env | grep CFLAGS [EMAIL PROTECTED]:~$ env | grep CXXFLAG

Re: [CMake] Emulating libtool's -version-info with CMake?

2008-12-09 Thread Eric Noulard
2008/12/9 Shlomi Fish <[EMAIL PROTECTED]>: > Hi all! > > I have a .so library (for Unix/Windows) that I maintain several versions of. > I'd like to have a symbolic links structure similar to > libtool's -version-info : > > http://www.ensta.fr/~diam/dev/online/autoconf/autobook/autobook_91.html > >

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread George Neill
Bill, On Tue, Dec 9, 2008 at 9:43 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >> Bill, >> >> On Tue, Dec 9, 2008 at 7:02 AM, Bill Hoffman <[EMAIL PROTECTED]> >> wrote: >>> >>> George Neill wrote: Hi CMakers, I'd like to use cmake with the Sun cc/CC com

[CMake] Emulating libtool's -version-info with CMake?

2008-12-09 Thread Shlomi Fish
Hi all! I have a .so library (for Unix/Windows) that I maintain several versions of. I'd like to have a symbolic links structure similar to libtool's -version-info : http://www.ensta.fr/~diam/dev/online/autoconf/autobook/autobook_91.html The problem is that when doing ADD_LIBRARY, the resultan

Re: [CMake] Win: Dependency for def file missing

2008-12-09 Thread Bill Hoffman
Martin Apel wrote: Bill Hoffman wrote: Martin Apel wrote: Hi all, I am generating a DLL under Windows using a def file. The def file itself is generated. It seems that CMake (2.6.3rc5) does not generate a dependency between the generated def file and the DLL. When I change the input, from whic

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread Bill Hoffman
George Neill wrote: Bill, On Tue, Dec 9, 2008 at 7:02 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: George Neill wrote: Hi CMakers, I'd like to use cmake with the Sun cc/CC compiler on linux. What do I need to change to make this work? Put them in your PATH. Then set CC=cc, CXX=CC and ru

Re: [CMake] Win: Dependency for def file missing

2008-12-09 Thread Martin Apel
Bill Hoffman wrote: > Martin Apel wrote: >> Hi all, >> >> I am generating a DLL under Windows using a def file. The def file >> itself is generated. It seems that CMake (2.6.3rc5) does not generate a >> dependency between the generated def file and the DLL. When I change the >> input, from which th

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread George Neill
Bill, On Tue, Dec 9, 2008 at 7:02 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >> Hi CMakers, >> >> I'd like to use cmake with the Sun cc/CC compiler on linux. What >> do I need to change to make this work? >> > > Put them in your PATH. Then set CC=cc, CXX=CC and run c

Re: [CMake] Search paths for FooConfig.cmake files

2008-12-09 Thread Brad King
Jose Luis Blanco wrote: Hello CMake developers! I've been thinking it would be interesting that CMake could look for FooConfig.cmake package files in some likely paths such as C:\Program Files\Foo-XXX\ . This is for Windows, of course, but perhaps could be extended to /opt/foo-XXX/ in Unix syste

Re: [CMake] Win: Dependency for def file missing

2008-12-09 Thread Bill Hoffman
Martin Apel wrote: Hi all, I am generating a DLL under Windows using a def file. The def file itself is generated. It seems that CMake (2.6.3rc5) does not generate a dependency between the generated def file and the DLL. When I change the input, from which the def file is generated, the def file

Re: [CMake] cmake 2.6.3 RC 5

2008-12-09 Thread Brad King
Brad King wrote: Alexander Neundorf wrote: So, I think it would be nice if find_package(NO_MODULE) would restore the FIND_QUIETLY variable to the state it was before (as I'm doing here manually). Good idea. I don't think we make any guarantee either way about the value of this variable *afte

[CMake] Search paths for FooConfig.cmake files

2008-12-09 Thread Jose Luis Blanco
Hello CMake developers! I've been thinking it would be interesting that CMake could look for FooConfig.cmake package files in some likely paths such as C:\Program Files\Foo-XXX\ . This is for Windows, of course, but perhaps could be extended to /opt/foo-XXX/ in Unix systems. I've written a patch

[CMake] Win: Dependency for def file missing

2008-12-09 Thread Martin Apel
Hi all, I am generating a DLL under Windows using a def file. The def file itself is generated. It seems that CMake (2.6.3rc5) does not generate a dependency between the generated def file and the DLL. When I change the input, from which the def file is generated, the def file is rebuilt, but not

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread Bill Hoffman
George Neill wrote: Hi CMakers, I'd like to use cmake with the Sun cc/CC compiler on linux. What do I need to change to make this work? Put them in your PATH. Then set CC=cc, CXX=CC and run cmake. -Bill ___ CMake mailing list CMake@cmake.org