[CMake] Version in name of shared library

2012-09-06 Thread Anton Sibilev
Hi all! I'm making shared library with add_library(xxx SHARED xxx.c) and as result I got 'libxxx.so'. I want to create lib with name like 'libxxx.so.1', can you please help, how to make this? Point is not to create link or copy libxxx.so -> libxxx.so.1, but to create it initially. Thanks! -- Po

[CMake] target_link_libraries chain dynamic->static

2012-05-17 Thread Anton Sibilev
Hello! I use 2.8.8 and my build chais is following: I have 3 static libs - A.a, B.a, C.a. I'm creating new D.so (add_library .. SHARED .. ) with limited set on functions from static libs (linking -lA -lB -lC to resolve functions). Then I'm creating application, wich use D.so as main library. I'm

[CMake] VS10 empty property pages for single source file

2012-04-25 Thread Anton Sibilev
Hello! I use 2.8.8 version and got the problem, with absolute paths to files and bug in MSVS2010. Issues is already discribed in bugtracker. http://public.kitware.com/Bug/view.php?id=12570#c27757 http://connect.microsoft.com/VisualStudio/feedback/details/635294/using-absolute-path-in-clcompile-item

[CMake] how to add flags to static library cmdline?

2012-03-20 Thread Anton Sibilev
Hello! Does anyone know how to add flags to "lib.exe ... " ? IMy version is 2.8.7. There is no reference in docs.. Thanks! -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMak

[CMake] regex first subfolder

2011-12-26 Thread Anton Sibilev
Hello! Can you, please, help me with regex? I have the string, for example, "aaa111/bbb222/ccc333". As the result of regex I want to get "aaa111", but I can't set proper expression.. string (REGEX REPLACE "^(.*/)?" "" folder ${folder}) ? -- Powered by www.kitware.com Visit other Kitware open-so

Re: [CMake] Visual Studio generator and visible projects

2011-11-01 Thread Anton Sibilev
2.8.6. Just a minute later found that problem was in incorrect FOLDER property... Sorry! 2011/11/1 Eric Noulard > 2011/11/1 Anton Sibilev : > > Hello! Can you help me, please? > > I'm generating VS 2010 solution/projects and finally when I open main > > solution fil

[CMake] Visual Studio generator and visible projects

2011-11-01 Thread Anton Sibilev
Hello! Can you help me, please? I'm generating VS 2010 solution/projects and finally when I open main solution file I can SEE only ALL_BUILD project. All builds fine, all projects exists. But I can't see them and work with sources from them directly. What's wrong? -- Powered by www.kitware.com Vi

Re: [CMake] specify solution name with --build

2011-10-28 Thread Anton Sibilev
I've tried one more PROJECT and seems it's fixed now, thanks. 2011/10/26 David Cole > On Oct 26, 2011, at 6:03 AM, Anton Sibilev > wrote: > > Seem I've found issue, in CMakeCache.txt I have two targets: > > //Value Computed by CMake > Project_BINARY_DIR:

Re: [CMake] specify solution name with --build

2011-10-26 Thread Anton Sibilev
CMake test_SOURCE_DIR:STATIC=C:/_work/test May be that is why I have problem with --build? But I use project( "test" ) function only one time.. How I can remove this from projects generation? 2011/10/26 Anton Sibilev > Hello! Can you please help me? > I use such cmdline to run buil

[CMake] specify solution name with --build

2011-10-26 Thread Anton Sibilev
Hello! Can you please help me? I use such cmdline to run build with CMake - "cmake-2.8.6\bin\cmake --build folder_with_solution", where "folder_with_solution" is folder with some_name.sln file. And what I have is: The following files were specified on the command line: Project.sln These

[CMake] always rebuild executable

2011-10-18 Thread Anton Sibilev
Hi! Looking for some help.. I use add_executable(exename) + target_link_libraries (exename staticlibname), linux OS. If 'staticlibname' is not under CMake and chagnes somehow, CMake will not rebuild executable. And so I have a problem, that I have few updates of 'staticlibname' lib, but very old ex

[CMake] --start-group, --end-group

2011-05-19 Thread Anton Sibilev
Hello! I'm wondering how I can use "--start-group archives --end-group" linker flags with "Unix Makefiles". May be somebody know the right way? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/

[CMake] cmake logs

2011-05-10 Thread Anton Sibilev
Hi All! Please, help me to find in cmake's structure full logs of compilation/linkage. I use "Unix Makefiles" generator... ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Plea

[CMake] How to change default target in solution?

2011-03-11 Thread Anton Sibilev
Hello! By default ALL_BUILD is main target, how can I change it? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: htt

[CMake] few solutions with cmake

2011-03-03 Thread Anton Sibilev
Hello! One more question.. For example I have such structure: folder:base CMakeLists.txt (with PROJECT(someproject)) folder:lib1 CMakeLists.txt folder:lib2 CMakeLists.txt folder:app CMakeLists.txt and result is someproject.sln with 3 projects lib1, lib2, ap

[CMake] Function and list

2011-03-02 Thread Anton Sibilev
Hello! I have a function like FUNCTION (MY_FUNC list) MESSAGE ("..${list}") ENDFUNCTION () And I call it like: SET (list 11 22 33 44 55) MY_FUNC (list) and output is: ..11 How I can work with lists or unknown number of arguments in functions? ___ P