Re: [CMake] Boost on Windows

2009-06-23 Thread Christopher Harvey
define BOOST_ROOT and point it at the root install location for boost. I had the same problem, that fixed it. I only had to do that on windows. Curtis Rueden wrote: Hi everyone, I am using CMake to build some code cross-platform. This code requires Boost Thread to compile. I am having several

Re: [CMake] include directories getting excaped.

2009-06-22 Thread Christopher Harvey
wowI typed that at 2:25am last night. so many typos I actually found out what's going on. It's not cmakes fault, pkg-config under windows is returning that exact same string, but I didn't notice because --cflags looked alright. when using --cflags-only-I I get the C:\Program thing. Maybe I'll

Re: [CMake] FIND_PATH finds two out of three?

2009-05-19 Thread Christopher Harvey
I don't know how the ARTK library is installed on linux systems, but you could add the NO_DEFAULT_PATH option to find_path...chances are it's looking in a default path and picking up a header in /usr/include before getting to your specified directories. What makes you think the /usr/include is

Re: [CMake] FIND_PATH finds two out of three?

2009-05-19 Thread Christopher Harvey
? Also please keep this on the cmake mailing list. e...@cs.bgu.ac.il wrote: On Tue 19 May 3:07 2009 Christopher Harvey wrote: I don't know how the ARTK library is installed on linux systems, but you could add the NO_DEFAULT_PATH option to find_path...chances are it's looking in a default

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Christopher Harvey
Hi, Interesting question. You said that only one of them has to be used in every executable, the implementation to use is determined by the executable. These are static libraries, so how can the exec pick one if it isn't even built? (As opposed to loading one dynamically) Basically I'm still

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Christopher Harvey
hardcoded in each executable makefile, in the link line. There is no automatic lib dependency management. Alexandre -Message d'origine- De : cmake-boun...@cmake.org De la part de Christopher Harvey Envoyé : jeudi 19 mars 2009 17:58 Hi, Interesting question. You said that only one

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Christopher Harvey
libraries, and the dependency chain is too complicated for us to keep maintaining it by hand). Alexandre -Message d'origine- De : cmake-boun...@cmake.org De la part de Christopher Harvey Envoyé : jeudi 19 mars 2009 19:04 À : Alexandre Feblot Cc : cmake@cmake.org Objet : Re: [CMake

Re: [CMake] printing search paths?

2009-02-26 Thread Christopher Harvey
Hi Bill, You can use the MESSAGE(${SOME_INCLUDES}) command. You can also use the verbose makefile to watch the -I flags that are passed to the compiler. Chris. Bill O'Hara wrote: Hi If I do a few include_directories() commands in various files.. is there a variable which I can use to print

Re: [CMake] Compiling OpenGL application with CMake

2009-02-24 Thread Christopher Harvey
Packages don't have to be required because many projects don't require every single library they can use. For example, not requiring libpng just means if it's not on the system then your project can't open pngs. Andrea Tagliasacchi wrote: This is a bit odd to me. Why would not everything be

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christopher Harvey
Michael Jackson wrote: On Feb 20, 2009, at 8:51 AM, Christian Ehrlicher wrote: Michael Jackson schrieb: On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher ch.ehrlic...@gmx.de: Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too

Re: [CMake] Creating a library

2009-02-18 Thread Christopher Harvey
Off the top of my head I think TARGET_LINK_LIBRARIES(Test1 ${MyLibs}) should be TARGET_LINK_LIBRARIES(Test1 MyLibs) Also, I think you need to specify a static library if you want one. It seems like a static library is what you want in this case. I wrote this up really quick, and could be wrong

Re: [CMake] About Gmm++

2009-02-17 Thread Christopher Harvey
I wasn't able to get a copy, but it's in kde svn /kde-svn/src/trunk/koffice/*cmake*/modules/ Kaveh Kohan wrote: Dear CMake users, I am trying to use gmm++ in my code. I read somewhere on web that FindGMM.cmake is available. I don't know from where I can download it. I would be thankful if

Re: [CMake] CMake Library Issues

2009-02-03 Thread Christopher Harvey
perhaps include_directories(..) That's how I do it. You can also print the ${SERVER_SOURCE_DIR} variable. MESSAGE(SERVER_SOURCE_DIR is ${SERVER_SOURCE_DIR}) Let me know if this works. Nick Ogden wrote: Hi there, I have a problem with using CMake to compile a library that I'm trying to use

Re: [CMake] Problem with FindBoost

2009-01-11 Thread Christopher Harvey
Wilfried Holzke wrote: Hi, I try to find Boost within a CMakeList.txt file. I got the following from the documentation of CMake 2.6: * SET(Boost_USE_STATIC_LIBS OFF) SET(Boost_USE_MULTITHREAD OFF) FIND_PACKAGE(Boost 1.34.1 COMPONENTS multi_array) if (NOT Boost_FOUND)

Re: [CMake] MSVC not true!

2008-12-19 Thread Christopher Harvey
how can you be sure it's not going into the if? what's the full code? Brad Aisa wrote: The cmake web site says MSVC: True when using Microsoft Visual C However if I put it in test like this: if (MSVC) ... it is not true! ___ CMake mailing list

Re: [CMake] website down?

2008-12-13 Thread Christopher Harvey
works here. Philip Lowman wrote: Is anyone else having problems with accessing the CMake website? -- Philip Lowman ___ CMake mailing list CMake@cmake.org

Re: [CMake] INCLUDE_DIRECTORIES problem...

2008-11-15 Thread Christopher Harvey
what is ${project_SOURCE_DIR} ? try adding MESSAGE(project_SOURCE_DIR is '${project_SOURCE_DIR}') right before that line in your cmakelists. I have a sneaking suspicion it's not what you think it is. You have to use something like ${project_SOURCE_DIR}/../include instead. BRM wrote: I have a

Re: [CMake] INCLUDE_DIRECTORIES problem...

2008-11-15 Thread Christopher Harvey
what is ${project_SOURCE_DIR} ? try adding MESSAGE(project_SOURCE_DIR is '${project_SOURCE_DIR}') right before that line in your cmakelists. I have a sneaking suspicion it's not what you think it is. You have to use something like ${project_SOURCE_DIR}/../include instead. BRM wrote: I have a

Re: [CMake] Variable naming when writing FindXXX.cmake files

2008-11-13 Thread Christopher Harvey
I recently wondered the same thing, but when I ran the script by this mailing list, using all uppercase didn't seem to be a problem. Judicaël Bedouet wrote: Hello, I have read the README file provided in directory cmake-2.6/Modules. I would just like to clarify a point : the names of the

Re: [CMake] [New Module] FindDevIL.cmake

2008-11-13 Thread Christopher Harvey
Alexander Neundorf wrote: Hi Chris, On Monday 10 November 2008, Christopher Harvey wrote: Hi list, This is a pretty simple module. I'd like to give back to cmake, even in a small way. I'll maintain this module myself if it's put into the cmake core. I removed

Re: [CMake] CMake -fPIC

2008-11-13 Thread Christopher Harvey
I'm not sure what exactly it wants you to recompile with the -fPIC flag, however with cmake simply doing add_library should include the -fPIC flag automatically. If you want to verify what flags are being used to compile a target set CMAKE_VERBOSE_MAKEFILE to TRUE and you should see that -fPIC is

[CMake] [New Module] FindDevIL.cmake

2008-11-10 Thread Christopher Harvey
the name of the IL library. # ILU_LIBRARY the name of the ILU library. # ILUT_LIBRARY the name of the ILUT library. # IL_INCLUDE_DIR where to find the il.h, ilu.h and ilut.h files. # IL_FOUND this is set to TRUE if all the above variables were set. # Original file by: Christopher Harvey

[CMake] a couple of ideas for cmake

2008-11-07 Thread Christopher Harvey
Hi cmake maintainers, I'm wondering if there was a reason why the windows configure interface outputs message commands as individual dialogs instead of inside some sort of in-program terminal (that the user wouldn't be able to type into). It seems to me that it would make the cmake experience more

Re: [CMake] my FindDevIL.cmake module

2008-11-07 Thread Christopher Harvey
Alexander Neundorf wrote: On Friday 07 November 2008, Christopher Harvey wrote: Hi list, I wrote this library finding module. If it's good enough for cmake please include it. If not let me know what's wrong with it so I can fix it up. It has only had limited testing under linux. Before

[CMake] boost component names

2008-11-06 Thread Christopher Harvey
Hi list, Sometimes when using the FindBoost.cmake package I have a very hard time figuring out what valid names for the components list are. Normally I just do a google code search but now I can't find what I'm looking for. I'd like to check to make sure that the boost uBLAS library is

[CMake] my FindDevIL.cmake module

2008-11-06 Thread Christopher Harvey
and ilut.h files. # IL_FOUND this is set to TRUE if all the above variables were set. # Original file by: Christopher Harvey FIND_PATH(IL_INCLUDE_DIR il.h PATH_SUFFIXES include PATHS ~/Library/Frameworks /Library/Frameworks /usr/local/include/IL /usr/include/IL /usr/local/include

[CMake] FindSDL.cmake on windows

2008-10-29 Thread Christopher Harvey
Hi list, I just tried FindSDL today. Works great under linux, however under windows it doesn't seem to do anything at all. My SDL library is installed in a non-standard location (is there a standard location on windows?) Here is my CMakeLists.txt layout: FIND_PACKAGE(SDL) ... ... IF(SDL_FOUND)

[CMake] find_library feature request

2008-09-22 Thread Christopher Harvey
Hello list, I was wondering if a better way to handle failed find_library under windows would be to give the user a chance to manually find the package before giving an error. I know the user always has the chance to specify the path afterwards in the GUI, but I think that for users that are

[CMake] possible bug report on release binary dynamic library search paths

2008-09-19 Thread Christopher Harvey
Sorry about the long subject, My question is about the way cmake defines dynamic link library search paths for release builds of executables. I've got an executable, written in C++ that depends on a shared library within the same project. When I run ldd on that executable I get this output

Re: [CMake] possible bug report on release binary dynamic library search paths

2008-09-19 Thread Christopher Harvey
Eric Noulard wrote: 2008/9/19 Christopher Harvey [EMAIL PROTECTED]: Sorry about the long subject, My question is about the way cmake defines dynamic link library search paths for release builds of executables. I've got an executable, written in C++ that depends on a shared library within

[CMake] can't get compile_definitions working quite right

2008-09-04 Thread Christopher Harvey
Hello list, I'll just start off by pasting my CMakeLists.txt, and I'll explain the problem right after. CMAKE_MINIMUM_REQUIRED(VERSION 2.6) ADD_LIBRARY(Portal SHARED BSPWorld.cc Polygon3D.cc) SET_TARGET_PROPERTIES(Portal PROPERTIES

Re: [CMake] Out-of-project link library problem

2008-09-03 Thread Christopher Harvey
usually, I just do this type of thing: TARGET_LINK_LIBRARIES(binary SDL GL GLU GLEW) try getting rid of quotes, and putting them all in a single command. Andrew Sayman wrote: I've been working on linking to some system libraries in a project I'm building in Linux and I've run into a problem

Re: [CMake] getting consistent symbol exporting across platforms

2008-08-09 Thread Christopher Harvey
))) in both cases, building the library and including the library somewhere else. visibility is available in a stable form since 4.0.2. Before that there were issues with the standard library. kind regards Andreas Pokorny 2008/8/9 Christopher Harvey [EMAIL PROTECTED]: Hi, I read that gcc exports all

[CMake] trouble setting library output directoy

2008-07-15 Thread Christopher Harvey
Hi, I've got a root directory, say / and there is a CMakeLists.txt in it, that looks like this: CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(GlewMingW) #SET(CMAKE_VERBOSE_MAKEFILE TRUE) INCLUDE_DIRECTORIES(include) ADD_LIBRARY(glew STATIC src/glew.c) #ADD_EXECUTABLE(visualinfo

[CMake] GUI front end

2008-03-05 Thread Christopher Harvey
I was talking to a friend about different build systems. We both like CMake but we are unable to find a gui for it. (Other than the ncurses one) It's not terribly important, mostly for fun really. Are there any GUIs that use GTK or other for CMake? thanks.

Re: [CMake] GUI front end

2008-03-05 Thread Christopher Harvey
Pau Garcia i Quiles wrote: Quoting Bill Hoffman [EMAIL PROTECTED]: Mike Jackson wrote: In CMake CVS there is a Qt 4.x based GUI in development. I use it on a daily basis on OS X and it is quite nice. If you compile CMake from CVS, there is an option to compile the QtGUI. Look for it in

[CMake] linking to arbitrary libraries in linux.

2008-02-27 Thread Christopher Harvey
Hi, Before I ask my question I want to clarify what I mean by an arbitrary library. There are libraries that are registered in the system and you can link to them like so: target_link_library(targetName GL SDL pq) and they get sent to the linker int the form: -lGL -lSDL -lpq that fine, but I have

Re: [CMake] linking to arbitrary libraries in linux.

2008-02-27 Thread Christopher Harvey
Philip Lowman wrote: On Wed, Feb 27, 2008 at 8:08 PM, Christopher Harvey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Philip Lowman wrote: On Wed, Feb 27, 2008 at 7:13 PM, Christopher Harvey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto