Re: [CMake] Windows XP and Docbook

2009-09-18 Thread Hendrik Sattler
Am Freitag 18 September 2009 22:06:11 schrieb Dixon, Shane: > I've been trying to improve my project documentation and in linux I've used > Docbook in the past with limited success. I was curious if there's a good > docbook solution in windows. I'd like to add "make docs" as a target, but > I

[CMake] Build cmake as a static executable

2009-09-18 Thread Xiangyun Kong
I need to deploy cmake in an environment in which the old shared libraries need to be used, so I would like to build cmake as a statically executable without linked any shared libraries. Do anyone try to build cmake that way ? Thanks for sharing any experience. Xiangyun __

[CMake] Lnk 1104 with nmake, and the lib prefix

2009-09-18 Thread Alain Leblanc
Hi, I'm having a problem building a dll using CMake with the nmake generator. It may be more of a VC++ question, but I figured someone here might know the answer. I have some C++ file that make calls to the boost libraries. I want to put them in a dll. CMake finds the libraries ok. This is from t

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-18 Thread Ingolf Steinbach
2009/9/18 Bill Hoffman : > If someone has a reasonable set of places to look we can add them. Does the > boost installer set any registry values? Not sure about that. Unfortunately, there is no installer for 1.40.0 yet; and 1.40 seems to be somewhat different than previous releases -- at least wit

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-18 Thread Bill Hoffman
Ingolf Steinbach wrote: 2009/9/18 John Drescher : It's difficult on windows since there is no standard location for stuff like this. Seconded. What is the FindBoost to do search all paths that are valid for the current user? Nevertheless, there *are* some hard-coded paths in FindBoost (C:\

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-18 Thread Ingolf Steinbach
2009/9/18 John Drescher : > It's difficult on windows since there is no standard location for > stuff like this. Seconded. > What is the FindBoost to do search all paths that > are valid for the current user? Nevertheless, there *are* some hard-coded paths in FindBoost (C:\boost, %ProgramFiles%\

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Robert Dailey
I'll see if I can get you guys a reproducible project. However, I hope you guys have access to the version of xcode I'm using. I'll also get you the version number next monday when I get back into work. On Fri, Sep 18, 2009 at 4:15 PM, Robert Dailey wrote: > Yeah, that's what I'm doing... basica

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Robert Dailey
Yeah, that's what I'm doing... basically: # Root CMakeLists.txt file: function( func1 file ) add_executable( foobar "${CMAKE_CURRENT_SOURCE_DIR}/${file}" ) endfunction() function( define_project file ) func1( ${file} ) endfunction() # CMakeLists.txt in a lower subdirectory (Inside foobar proj

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-18 Thread John Drescher
On Fri, Sep 18, 2009 at 5:01 PM, Ingolf Steinbach wrote: > 2009/9/18 John Drescher : >> You set BOOST_ROOT in your windows environment variables. > > Sorry, but I'd consider this just a workaround. > > From the discussion in this thread, I have the impression that the > only purpose of setting the

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-18 Thread Ingolf Steinbach
2009/9/18 John Drescher : > You set BOOST_ROOT in your windows environment variables. Sorry, but I'd consider this just a workaround. >From the discussion in this thread, I have the impression that the only purpose of setting the BOOST_ROOT environment variable is to tell FindBoost what the modul

[CMake] Add OPTIONAL to install(DIRECTORY ...)

2009-09-18 Thread Steven Wilson
Currently install(FILES ...) and install(PROGRAMS ...) allow the OPTIONAL modifier. Directories can also be optional install items. install(DIRECTORY dirs... DESTINATION [FILE_PERMISSIONS permissions...] [DIRECTORY_PERMISSIONS permissions...] [USE_SOURCE_PERMISSIONS]

[CMake] Add OSX_ARCHITECTURES and OSX_ARCHITECTURES_ to target properties

2009-09-18 Thread Steven Wilson
I work for a company that is considering porting one of its major software products to CMake. In the course of developing a CMake based build system for the Mac port of the product the following issue came up. What follows is a description of the problem and a proposed solution for the problem.

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Brad King
David Cole wrote: Sounds like maybe you are using "${CMAKE_CURRENT_SOURCE_DIR}" in a function or macro. (defined at the top level, but called from a lower level)... That works just fine...evaluation of the variable is the location of the current CMakeLists.txt file, not the file containing

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread David Cole
Sounds like maybe you are using "${CMAKE_CURRENT_SOURCE_DIR}" in a function or macro. (defined at the top level, but called from a lower level)... On Fri, Sep 18, 2009 at 4:12 PM, Brad King wrote: > Robert Dailey wrote: > >>Where is the CMakeLists.txt file containing this line? >>Pe

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Brad King
Robert Dailey wrote: Where is the CMakeLists.txt file containing this line? Perhaps "/Users/imac/work/redsword/CMakeLists.txt"? That's where the root one is, and this root script has all of the meat that the subdirectories call. This script is the one that has the functions that call

[CMake] Windows XP and Docbook

2009-09-18 Thread Dixon, Shane
I've been trying to improve my project documentation and in linux I've used Docbook in the past with limited success. I was curious if there's a good docbook solution in windows. I'd like to add "make docs" as a target, but I couldn't find anything like FindDocbook.cmake in my modules path. A

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Robert Dailey
On Fri, Sep 18, 2009 at 12:52 PM, Brad King wrote: > Robert Dailey wrote: > >> The goal here is to try to build Xcode projects for building iPhone apps. >> My CMake logic for producing projects is rather complex, which is why I am >> hesitant to post it here. But basically I'm taking the exact pa

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Brad King
Brad King wrote: Robert Dailey wrote: The goal here is to try to build Xcode projects for building iPhone apps. My CMake logic for producing projects is rather complex, which is why I am hesitant to post it here. But basically I'm taking the exact path above and passing it into add_executable

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Brad King
Robert Dailey wrote: The goal here is to try to build Xcode projects for building iPhone apps. My CMake logic for producing projects is rather complex, which is why I am hesitant to post it here. But basically I'm taking the exact path above and passing it into add_executable like so: add_exe

Re: [CMake] Xcode paths not turning out right

2009-09-18 Thread Brad King
Robert Dailey wrote: Hello, I'm using the latest (as of now) CMake build from CVS head. I noticed that when I specify a source file like so: /Users/imac/work/redsword/projects/foobar/mysource.mm XCode actually thinks it is here: /Users/imac/work/redsword/projects/foobar/projects/foobar/myso

Re: [CMake] [PATCH] CPack fails because of a sharing violation

2009-09-18 Thread Bill Hoffman
Claudio Bley wrote: Hi. Trying to build & install Boost I ran into the following error when CPack was called: , | CPack: - Install component: fusion_headers | CMake Error at libs/fusion/cmake_install.cmake:31 (FILE): | file Problem setting modification time on file | "C:/build/vc90nm

[CMake] [PATCH] CPack fails because of a sharing violation

2009-09-18 Thread Claudio Bley
Hi. Trying to build & install Boost I ran into the following error when CPack was called: , | CPack: - Install component: fusion_headers | CMake Error at libs/fusion/cmake_install.cmake:31 (FILE): | file Problem setting modification time on file | "C:/build/vc90nmake/boost_1_40_0/_CPac

Re: [CMake] Problem with ADD_CUSTOM_COMMAND & ARGS

2009-09-18 Thread Eric Tellefsen
Tyler, Shortly after postiing this followup I was able to resolve my problem via VERBATIM and some 'creative quoting' Thanks for your help, Eric Tyler Roscoe wrote on 09/17/2009 01:11:43 PM: > On Thu, Sep 17, 2009 at 08:24:28AM -0400, Eric Tellefsen wrote: > > On the plus side, the passed ar

Re: [CMake] external tools in visual studio

2009-09-18 Thread Eric Noulard
2009/9/18 : >> We use CMake + Flex/Bison for our project >> https://savannah.nongnu.org/projects/certi >> (install doc is here: http://www.nongnu.org/certi/certi_doc/index.html >>  but there is not much to discover) >> >> We  did face the same "m4 not found" trouble and it has >> been "fixed" by p

Re: [CMake] external tools in visual studio

2009-09-18 Thread th . tom
> We use CMake + Flex/Bison for our project > https://savannah.nongnu.org/projects/certi > (install doc is here: http://www.nongnu.org/certi/certi_doc/index.html > but there is not much to discover) > > We did face the same "m4 not found" trouble and it has > been "fixed" by putting > C:/Program

Re: [CMake] Use FIND_LIBRARY to search & link for an executable?

2009-09-18 Thread Bill Hoffman
Hendrik Sattler wrote: Zitat von Bill Hoffman : If the executable exports symbols, it should create an import .lib file, and find_library should be able to find it. You can not link to a .exe file. He talks about Linux, not Windows, AFAIK. OK, then he needs to use the correct flags with d

Re: [CMake] Use FIND_LIBRARY to search & link for an executable?

2009-09-18 Thread Hendrik Sattler
Zitat von Bill Hoffman : If the executable exports symbols, it should create an import .lib file, and find_library should be able to find it. You can not link to a .exe file. He talks about Linux, not Windows, AFAIK. HS ___ Powered by www.kitware

Re: [CMake] Use FIND_LIBRARY to search & link for an executable?

2009-09-18 Thread Bill Hoffman
If the executable exports symbols, it should create an import .lib file, and find_library should be able to find it. You can not link to a .exe file. -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitwar

Re: [CMake] newcomer question about dependencies

2009-09-18 Thread Anatoly Shirokov
I have tested the Visual Studio 2005 generator for this project. There are no such problems with one. The app.sln solution includes lib.vcproj as expected. It looks like something is wrong with Visual Studio 6 generator. Thanks in advance, Anatoly Shirokov. Anatoly Shirokov пишет: Hello ther

[CMake] newcomer question about dependencies

2009-09-18 Thread Anatoly Shirokov
Hello there! I have a simple project with the following structure: root CMakeLists.txt app CMakeLists.txt app.cpp lib CMakeLists.txt lib.cpp The root\CMakeLists.txt contains: cmake_minimum_required(VERSION 2.6) project(ROOT) add_subdirectory(app) add_subdirectory(lib) The roo

Re: [CMake] Use FIND_LIBRARY to search & link for an executable?

2009-09-18 Thread Hendrik Sattler
Zitat von Christian Ehrlicher : Von: Michael Wild On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote: > Hi, > > I've an external project which made the decision to create an > executable which exports symbols. This means if you want to write a > plugin for this project you have to link your

Re: [CMake] Use FIND_LIBRARY to search & link for an executable?

2009-09-18 Thread Michael Wild
On 18. Sep, 2009, at 9:15, Christian Ehrlicher wrote: Von: Michael Wild On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote: Hi, I've an external project which made the decision to create an executable which exports symbols. This means if you want to write a plugin for this project you hav

Re: [CMake] Use FIND_LIBRARY to search & link for an executable?

2009-09-18 Thread Christian Ehrlicher
> Von: Michael Wild > > On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote: > > > Hi, > > > > I've an external project which made the decision to create an > > executable which exports symbols. This means if you want to write a > > plugin for this project you have to link your plugin agains

Re: [CMake] Use FIND_LIBRARY to search & link for an executable?

2009-09-18 Thread Michael Wild
On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote: Hi, I've an external project which made the decision to create an executable which exports symbols. This means if you want to write a plugin for this project you have to link your plugin against this executable. Now I've the problem t