Re: [CMake] CMAKE_CURRENT_SOURCE_DIR showing up in include directories

2012-06-07 Thread Robert Dailey
I think I might know what it is... I do the following: include_directories( Z ) add_library( A ) include_directories( A ) # Include "A"'s include directory add_library(B) # B depends on A, and thus includes its header directory My assumption was that, at configuration time, a snapshot of the cur

Re: [CMake] CMAKE_CURRENT_SOURCE_DIR showing up in include directories

2012-06-07 Thread Robert Dailey
Also, CMAKE_INCLUDE_CURRENT_DIR is not enabled. In addition, I do not see the current *binary* directory included in the list of include directories (which would appear if I had CMAKE_INCLUDE_CURRENT_DIR enabled) On Thu, Jun 7, 2012 at 7:56 PM, Robert Dailey wrote: > For some reason, I'm seein

[CMake] CMAKE_CURRENT_SOURCE_DIR showing up in include directories

2012-06-07 Thread Robert Dailey
For some reason, I'm seeing CMAKE_CURRENT_SOURCE_DIR (its value) show up in my list of include directories for some of the visual studio 2008 projects that CMake generates. I'm not explicitly including it in my call to include_directories(), so I'm not sure what is doing it. I debug the code that p

Re: [CMake] Case-insensitive string compare

2012-06-07 Thread David Cole
You can't. You have to use TOLOWER and add an extra variable if you can't mutate your existing variable value... set( file "Makefile" ) string( TOLOWER "${file}" file_lower ) if( file_lower STREQUAL "makefile" ) ... On Thu, Jun 7, 2012 at 6:37 PM, Robert Dailey wrote: > How can I perform a case

[CMake] Case-insensitive string compare

2012-06-07 Thread Robert Dailey
How can I perform a case-insensitive string comparison? I basically need to do this: set( file "Makefile" ) if( file STREQUAL "makefile" ) endif() The above condition should PASS, since I want to ignore case, but as of right now it seems STREQUAL is case-sensitive. I need to do this witho

Re: [CMake] choosing specific version of a library with find_package (i.e. choosing macports in /opt/local over system default in /usr)

2012-06-07 Thread Michael Jackson
I think the complexity is brought about by using MacPorts or Fink. If you simply compile the libraries yourself instead of letting MacPorts do it and install the libraries in /usr/local my guess your experience may be better. Not sure which libraries you are using from MacPorts but do those lib

Re: [CMake] choosing specific version of a library with find_package (i.e. choosing macports in /opt/local over system default in /usr)

2012-06-07 Thread Natalie Tasman
Thank you for your detailed reply, Rolf. The code you've included looks to me like the similar complexity of the code I've seen in the "FindModulexxx.cmake" files-- it looks like a solution for this one specific library, but perhaps one I'd have to replicate for every library used in the project.

Re: [CMake] find_package: how to require same directory prefix for both lib and header files?

2012-06-07 Thread Natalie Tasman
Those commands are from my CMakeLists.txt file, before find_packages was called. -Natalie On Thu, Jun 7, 2012 at 3:03 AM, Mathias Gaunard wrote: > On 07/06/2012 01:20, Natalie Tasman wrote: >> >> Using cmake 2.8.8, I know that I can add "backup" or "fallback" search >> directories for find_packa

Re: [CMake] Links to online documentation of CMake broken

2012-06-07 Thread Andreas Schuh
I see. I am using Safari 5.1.7 on Mac OS X 10.6.8. On Thu, Jun 7, 2012 at 3:51 PM, David Cole wrote: > It doesn't work in Safari either, from my Mac or from my iPad > > > On Thu, Jun 7, 2012 at 2:46 PM, Brad King wrote: >> >> On 06/07/2012 02:06 PM, Andreas Schuh wrote: >> > For example, the lin

Re: [CMake] Links to online documentation of CMake broken

2012-06-07 Thread David Cole
It doesn't work in Safari either, from my Mac or from my iPad On Thu, Jun 7, 2012 at 2:46 PM, Brad King wrote: > On 06/07/2012 02:06 PM, Andreas Schuh wrote: > > For example, the link > > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package > > is rewritten to http://www.cma

Re: [CMake] Links to online documentation of CMake broken

2012-06-07 Thread Brad King
On 06/07/2012 02:06 PM, Andreas Schuh wrote: > For example, the link > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package > is rewritten to http://www.cmake.org/cmake/help/v2.8.8/cmake.html > instead of > http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:find_package.

[CMake] Links to online documentation of CMake broken

2012-06-07 Thread Andreas Schuh
Hi, I noticed that the CMake documentation online has been updated and the URLs have changed. The main links are correctly rewritten to the new URLs, but the references to particular sections of the documents are discarded during this rewrite. This breaks many links in my documentation where I lin

Re: [CMake] CMakeCache.txt, MSVC generator, and automatic re-configuration

2012-06-07 Thread Bill Hoffman
On 6/7/2012 12:05 PM, Clifford Yapp wrote: I noticed when doing a recent test of our build with CMake 2.8.8 and MSVC that the CMakeCache.txt file seems to be getting changes applied to it during the generation step (primarily a lot of additions with the comment "Stored GUID", seemingly related to

[CMake] CMakeCache.txt, MSVC generator, and automatic re-configuration

2012-06-07 Thread Clifford Yapp
I noticed when doing a recent test of our build with CMake 2.8.8 and MSVC that the CMakeCache.txt file seems to be getting changes applied to it during the generation step (primarily a lot of additions with the comment "Stored GUID", seemingly related to custom commands/targets.) One of the things

Re: [CMake] find_package: how to require same directory prefix for both lib and header files?

2012-06-07 Thread Mathias Gaunard
On 07/06/2012 01:20, Natalie Tasman wrote: Using cmake 2.8.8, I know that I can add "backup" or "fallback" search directories for find_package, using INCLUDE_DIRECTORIES(/opt/local/include) LINK_DIRECTORIES(/opt/local/lib) In this case, cmake first searches its default paths and THEN the sp

Re: [CMake] "Mastering CMake": which cmake version?

2012-06-07 Thread Bill Hoffman
On 6/7/2012 10:24 AM, Thompson, K T wrote: On Wednesday, June 06, 2012 9:56 PM, Dan Kegel wrote: Working through examples is the most important feature of the text. I think the tutorial found at http://www.cmake.org/cmake/help/cmake_tutorial.html is the same or similar to those examples found i

Re: [CMake] "Mastering CMake": which cmake version?

2012-06-07 Thread Thompson, K T
On Wednesday, June 06, 2012 9:56 PM, Dan Kegel wrote: > I worked through a few tiny examples myself while I > was learning; they're online at > https://code.google.com/p/winezeug/source/browse/#svn%2Ftrunk%2Fcmake_exa > mples > They're kind of crappy, but at least they're very small, and they wor