[CMake] cmake system library

2013-01-12 Thread peterle oberwi
Hi,I want to use Boost library in my project. But there is one version installed in the system, but not the version I want to use in my project. Therefore I build the version and installed to a directory in my home. When I want to use this version it's very anyoing, because cmake find the system ve

Re: [CMake] cmake system library

2013-01-12 Thread Rolf Eike Beer
peterle oberwi wrote: > Hi, > > I want to use Boost library in my project. But there is one version > installed in the system, but not the version I want to use in my project. > Therefore I build the version and installed to a directory in my home. When > I want to use this version it's very anyoi

Re: [CMake] cmake system library

2013-01-12 Thread Nick Overdijk
You could install boost to /usr/local if you're on linux/OSX? That's the standard location for non-system libs, CMake-Modules will look there. On 2013-12-01, at 13:04:50 , peterle oberwi wrote: > Hi, > > I want to use Boost library in my project. But there is one version installed > in the sys

Re: [CMake] cmake system library

2013-01-12 Thread Alexander Neundorf
On Saturday 12 January 2013, Rolf Eike Beer wrote: > peterle oberwi wrote: > > Hi, > > > > I want to use Boost library in my project. But there is one version > > installed in the system, but not the version I want to use in my project. > > Therefore I build the version and installed to a director

Re: [CMake] cmake system library

2013-01-12 Thread Eric Noulard
2013/1/12 Rolf Eike Beer : > peterle oberwi wrote: >> Hi, >> >> I want to use Boost library in my project. But there is one version >> installed in the system, but not the version I want to use in my project. >> Therefore I build the version and installed to a directory in my home. When >> I want t

[CMake] cmake system library

2013-01-12 Thread peterle oberwi
2013/1/12 Rolf Eike Beer : > peterle oberwi wrote: >> Hi, >> >> I want to use Boost library in my project. But there is one version >> installed in the system, but not the version I want to use in my project. >> Therefore I build the version and installed to a directory

[CMake] cmake system library

2013-01-12 Thread peterle oberwi
I'm sorry but there is something wrong with my mail prog, please could somebody correct my mistake.Thank you for your answers. But my question is more in general. There defintly some libraries, which don't provide environment variables or other variables for the cmake module. I forgot to mention

Re: [CMake] cmake system library

2013-01-12 Thread Alexander Neundorf
On Saturday 12 January 2013, peterle oberwi wrote: > I'm sorry but there is something wrong with my mail prog, please could > somebody correct my mistake. > > Thank you for your answers. But my question is more in general. There > defintly some libraries, which don't provide environment variables

[CMake] CMAKE_INCLUDE_SYSTEM_FLAG_CXX set to -I by default?

2013-01-12 Thread Nick Overdijk
When I use include_directories(SYSTEM $path), it still includes stuff with -I. Through http://stackoverflow.com/questions/3371127/use-isystem-instead-of-i-with-cmake I found out I should change some variable, but this seems like a bug in CMake? -- Powered by www.kitware.com Visit other Kitwar

[CMake] target_link_libraries of MODULE

2013-01-12 Thread Paul Chavent
Hi. I'm working on a project basically compound of : - a core library that can be static or dynamic add_library(Foo-lib ${FOO_LIB_SOURCES}) - an executable that rely on the main library : add_executable(Foo-bin ${FOO_BIN_SOURCES}) target_link_libraries(Foo-bin Foo-lib) - a "dlopen"able

Re: [CMake] target_link_libraries of MODULE

2013-01-12 Thread Rolf Eike Beer
Paul Chavent wrote: Hi. I'm working on a project basically compound of : - a core library that can be static or dynamic add_library(Foo-lib ${FOO_LIB_SOURCES}) - an executable that rely on the main library : add_executable(Foo-bin ${FOO_BIN_SOURCES}) target_link_libraries(Foo-bin Foo-li