[CMake] Version in name of shared library
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! -- 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] target_link_libraries chain dynamic->static
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 linking it with target_link_libraries(target D.so). But finally, my link cmdline is following: -o application -lD -lA -lB -C. But I want to link only one shared lib - D.so! As I understand this is results of caching libs. How I can resolve this? 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 CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] VS10 empty property pages for single source file
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-prevents-property-pages-from-showing I can't use drive mapping as workaround. Can I somehow switch off asbolute paths in filename or fix this any other way? May be there is a patch for ms studio that's already in downloads? 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 CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] how to add flags to static library cmdline?
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 CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] regex first subfolder
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-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Visual Studio generator and visible projects
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 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? > > Which version of CMake are you using? > > What does your main CMakeLists.txt looks like? > > Did you use any > add_executable or add_library in it? > -- > Erk > Membre de l'April - « promouvoir et défendre le logiciel libre » - > http://www.april.org > -- 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Visual Studio generator and visible projects
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 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] specify solution name with --build
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:STATIC=C:/_work/test_build > //Value Computed by CMake > Project_SOURCE_DIR:STATIC=C:/_work/test > > //Value Computed by CMake > test_BINARY_DIR:STATIC=C:/_work/test_build > //Value Computed by 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 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 files could not be found and will not be loaded. >> >> Can I somehow specify the name of solution/project file? On linux --build >> works fine with Makefiles. >> 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 CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > > > > The problem here is likely an incorrect value of CMAKE_PROJECT_NAME in the > CMakeCache.txt file. If so, that probably means you do not have a PROJECT > command in your top level CMakeLists.txt file. > > Simply add one, and try a fresh build. (Starting with an empty > directory...) > > cmake --build uses the value of CMAKE_PROJECT_NAME to figure out what sln > file name to pass to Visual Studio for building. > > > HTH, > David > > -- 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] specify solution name with --build
Seem I've found issue, in CMakeCache.txt I have two targets: //Value Computed by CMake Project_BINARY_DIR:STATIC=C:/_work/test_build //Value Computed by CMake Project_SOURCE_DIR:STATIC=C:/_work/test //Value Computed by CMake test_BINARY_DIR:STATIC=C:/_work/test_build //Value Computed by 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 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 files could not be found and will not be loaded. > > Can I somehow specify the name of solution/project file? On linux --build > works fine with Makefiles. > 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 CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] specify solution name with --build
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 files could not be found and will not be loaded. Can I somehow specify the name of solution/project file? On linux --build works fine with Makefiles. 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 CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] always rebuild executable
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 executable. Can I force to rebuild executable every build? -- 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] --start-group, --end-group
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/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] cmake logs
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 Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] How to change default target in solution?
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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] few solutions with cmake
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, app. 'app' depends on 'lib2'. I want to make additional solution for 'app' and its dependencies (lib2), without lib1. Can I make somehow 2 solutions? ___ 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Function and list
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? ___ 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake