[cmake-developers] [CMake 0012641]: cmake --build dir confuses cmake. dir is treated as source to path or source to build dir
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12641 == Reported By:kesten Assigned To: == Project:CMake Issue ID: 12641 Category: CMake Reproducibility:always Severity: minor Priority: normal Status: new == Date Submitted: 2011-12-26 13:06 EST Last Modified: 2011-12-26 13:06 EST == Summary:cmake --build dir confuses cmake. dir is treated as source to path or source to build dir Description: with PROJECT_SOURCE_DIR = home/kesten/VersionControlProjects/Bazaar/Engines/Bullet/bullet-trunk/trunk PROJECT_SOURCE_DIR$ cmake -G Unix Makefiles --build ../../cmake-build-svn-trunk -- Build files have been written to: /home/kesten/VersionControlProjects/Bazaar/Engines/Bullet/bullet-trunk/trunk If I supply a . to take the place of path-to-source-dir then it works PROJECT_SOURCE_DIR$ cmake -G Unix Makefiles --build ../../cmake-build-svn-trunk . Expected Behaviour: cmake can run with no paths given. cmake --build dir should put build files in dir. At the least, a warning should be issued that --build was ignored because cmake expected: cmake --build dir path-to-source (use . for dir that cmake is issued from) Steps to Reproduce: run cmake --build dir without specifying path-to-source or build-dir after dir == Issue History Date ModifiedUsername FieldChange == 2011-12-26 13:06 kesten New Issue == -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
[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] building on linux, extra libraries referenced
On 12/26/2011 08:46 AM, J Decker wrote: I have this huge project that I've been building with cmake; and even under gcc (mingw) I don't have this problem... but what is happening is I have a generic list of libraries that I provide for applications to link against. This includes the c version and the c++ version of two libraries. On Windows, only those libraries that are actually used are referenced in the final output. On Linux, with very recent gcc compilers, the programs end up with references to both libraries, and both(all 4) libraries are loaded. I understand that this is probably a feature of some sort; but now do I specify for ld to only use the libraries that have referenced symbols in them? Actually, it should be just the reverse. Recent versions of Linux (Ubuntu and Debian I know of) should have --as-needed and --no-copy-dt-needed-entries in effect by default, causing the behaviour you want. Michael -- 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] regex first subfolder
On 12/26/2011 11:52 AM, Anton Sibilev wrote: 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}) ? string(REGEX REPLACE ^(/?[^/]+).* \\1 folder ${folder}) Michael -- 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] Printing the detailed link command call
Hello, I'm having some troubles with a linking step and I would like to see exactly which parameters are given to my compiler when running the Makefile generated by CMake. Currently it only shows: Linking CXX shared library xxx which isn't enough for me to find out why I have undefined symbols. I couldn't find any information about this on the web (maybe searching with the wrong words but...). Thanks, Ceylo -- 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] building on linux, extra libraries referenced
Hmm Maybe this isn't what I thought it was... how do I get cmake to link against libraries built in the same project with -l instead of direct reference? ../../../../libbag.psi++.so ../../../../libbag.psi.so ../../../../libbag++.so ../../../../libbag.externals.so ../../../../libbag.so -lodbc -lsqlite3 -lfreetype -Wl,-rpath,/home/d3x0r/work/build/sack/build/core: I want the first .so's to be referenced more like sqlite3 or freetype. On Mon, Dec 26, 2011 at 3:37 AM, Michael Wild them...@gmail.com wrote: On 12/26/2011 08:46 AM, J Decker wrote: I have this huge project that I've been building with cmake; and even under gcc (mingw) I don't have this problem... but what is happening is I have a generic list of libraries that I provide for applications to link against. This includes the c version and the c++ version of two libraries. On Windows, only those libraries that are actually used are referenced in the final output. On Linux, with very recent gcc compilers, the programs end up with references to both libraries, and both(all 4) libraries are loaded. I understand that this is probably a feature of some sort; but now do I specify for ld to only use the libraries that have referenced symbols in them? Actually, it should be just the reverse. Recent versions of Linux (Ubuntu and Debian I know of) should have --as-needed and --no-copy-dt-needed-entries in effect by default, causing the behaviour you want. Michael -- 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 -- 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] Printing the detailed link command call
Try make VERBOSE=1 Michael On 26.12.2011, at 15:18, Ceylow cey...@gmail.com wrote: Hello, I'm having some troubles with a linking step and I would like to see exactly which parameters are given to my compiler when running the Makefile generated by CMake. Currently it only shows: Linking CXX shared library xxx which isn't enough for me to find out why I have undefined symbols. I couldn't find any information about this on the web (maybe searching with the wrong words but...). Thanks, Ceylo -- 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 -- 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