Re: [CMake] CMakeModules repository at GitHub?

2013-03-30 Thread David Cole
Alan, Project config files must be installed *with* the project, in its install tree, in a standard location where CMake's find_package can find them [1]. If the project is unwilling to put such a file in its install tree, then it's game over for a project config file, and a Find module then

Re: [CMake] CMakeModules repository at GitHub?

2013-03-30 Thread Stephen Kelly
David Cole wrote: Two rules: - Project config files can only go *with* the project. (VTK and ITK have them. Qt 5 has one. KDE uses them... All the cool projects have one. :-) There is an additional note for this rule: - If a Config file is created, it must be created independent of

Re: [CMake] CMakeModules repository at GitHub?

2013-03-30 Thread Luigi Calori
Sorry if eventually off-topic: What about projects that do not have config files internally but are built and installed by ExternalProjects wrapper? Is it possible to generate a config file for the projet inside a custom step of the External projects ? Even if possible, would it be

[CMake] How to configure Fortran compiler, flags, and so on.

2013-03-30 Thread Daniel Carrera
Hello all, I am starting to learn about CMake. So far I have only written very minimal CMakeLists.txt files. I am wondering how hard it would be to make CMake read some configuration options for Fortran 95 from an external file similar to this: myprogram.conf FC = mpif90 F77 = $(FC)

[CMake] string(REGEX REPLACE …) syntax problem

2013-03-30 Thread Braden McDaniel
I must be Doing It Wrong; but I'm not seeing how... If I do a REGEX MATCH as follows: build_command(FOO) string(REGEX MATCH /build ([A-Za-z]+) BUILD_CONFIG ${FOO}) message(STATUS BUILD_CONFIG = ${BUILD_CONFIG}) ... I get, as expected: BUILD_CONFIG = /build Release However, if I use the

Re: [CMake] string(REGEX REPLACE …) syntax problem

2013-03-30 Thread David Cole
REGEX REPLACE will replace this with that in the entire input string, everywhere it matches. If you want to limit it to just the one bit that matches inside the parenthesis, you have to match the entire string, too, so that it will also be replaced. In your example, the \\1 is being set to

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-966-g8fe0f2b

2013-03-30 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 2487101..0c429a4 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ set(CMake_VERSION_MAJOR 2) set(CMake_VERSION_MINOR 8) set(CMake_VERSION_PATCH 10) -set(CMake_VERSION_TWEAK 20130330