Re: [CMake] FIND_PACKAGE from another Project

2008-06-09 Thread hsanson
Alexander Neundorf wrote: On Monday 09 June 2008, Horacio Sanson wrote: On Mon, Jun 9, 2008 at 7:14 AM, Alexander Neundorf [EMAIL PROTECTED] wrote: On Friday 06 June 2008, hsanson wrote: From the CMake 2.4 documentation I get: Directories listed in CMAKE_MODULE_PATH

Re: [CMake] Force out of source build

2008-06-06 Thread hsanson
Andreas Schneider wrote: hsanson wrote: So how can I cause CMake to fail if I run it on the source directory?? Hi, try https://dev.csync.org/browser/cmake/Modules/MacroEnsureOutOfSourceBuild.cmake Thanks, The url above did not work for me but a Google search

[CMake] FIND_PACKAGE from another Project

2008-06-06 Thread hsanson
From the CMake 2.4 documentation I get: Directories listed in CMAKE_MODULE_PATH are searched for files called Findname.cmake. If no such file is found, it is expected that the package is another project built by CMake that has a nameConfig.cmake file. A cache entry called name_DIR is created

[CMake] Force out of source build

2008-06-05 Thread hsanson
I want to make sure I don't run cmake inside my source tree. I tried something like IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR}) MESSAGE(FATAL Don't build inside the source tree) ENDIF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR}) But seems the

[CMake] FIND_PROGRAM Version

2008-05-25 Thread hsanson
I use FIND_PROGRAM to find a grammar parser (ragel) to generate some source files needed for my project. The problem is that the way ragel is called (arguments) is different for each mayor version. I need to get the program mayor version 5.x or 6.x and then set the ADD_COMMAND arguments

[CMake] configure.h.cmake generation??

2008-05-14 Thread hsanson
I am following the instructions in this page to check for some header files and fucntions http://www.cmake.org/Wiki/CMake_HowToDoPlatformChecks; but so far it is not clear, at least to me, how the configure.h.cmake file mentioned is created. If I have to create it manually it beats the utility