[CMake] New CMake modules for a large variety of BLAS/LAPACK API implementations.

2007-01-25 Thread Alan W. Irwin
The FreeEOS project has a number of users that use a variety of different lapack-related libraries which are named in a variety of ways. Because the FindBLAS.cmake and FindLAPACK.cmake modules provided by Jan Woetzel at http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/ do not deal with

Re: [CMake] CMAKE_BUILD_TYPE

2007-01-25 Thread Brandon J. Van Every
Bill Hoffman wrote: Basically, there are two types of generators, single build type per build tree, and multi- build type per tree. The variables that are useful for that are here: CMAKE_BUILD_TYPE is used by makefile generators or any future generator that supports one build type per buil

Re: [CMake] include a Make.rules file?

2007-01-25 Thread Brandon J. Van Every
Sam Miller wrote: I am trying to convert an hand-rolled Makefile build system into CMake. The project itself is a subset of a larger project, which uses a Make.rules file for various cross compilation rules and install directories. Is there any way to include this Make.rules file into the Makefi

Re: [CMake] passing arguments to "cmake -P"

2007-01-25 Thread Brandon J. Van Every
David Cole wrote: Put the -D args *before* the -P -- it'll work like you expect then... I've added content bug #4372 on this issue. The order dependency should be documented. Cheers, Brandon Van Every ___ CMake mailing list CMake@cmake.org http:

Re: [CMake] GUIDs in VS solution files

2007-01-25 Thread Vincent Scheib
Indeed, the first GUID in the project definition line indicates the project type (C++, C#, Visual Basic...). The INCLUDE_EXTERNAL_MSPROJECT command needs to change the GUID based on the project type. Thanks for pointing this out.. ;) I just added some C# projects to our solution, quite handy. He

[CMake] Mixing C and Fortran in Visual Studio with Intel Visual Fortran

2007-01-25 Thread KEVIN.SISCO
I'm having trouble using CMake in a project with mixed Fortran and C code and I'm hoping someone here can help. I am using Visual Studio 2005 and Intel Visual Fortran 9.1. Sorry for the length of this post. 1) The test for the Fortran compiler is failing indicating a broken compiler. It br

Re: [CMake] passing arguments to "cmake -P"

2007-01-25 Thread David Cole
Put the -D args *before* the -P -- it'll work like you expect then... :-) David On 1/25/07, Abe Stephens <[EMAIL PROTECTED]> wrote: Is there a way to pass command line arguments into variables when using "cmake -P"? I tried "cmake -P foo.cmake -D var=value" but that didn't work. I could do it

[CMake] passing arguments to "cmake -P"

2007-01-25 Thread Abe Stephens
Is there a way to pass command line arguments into variables when using "cmake -P"? I tried "cmake -P foo.cmake -D var=value" but that didn't work. I could do it using configure file, but that seems overly complicated. Thanks- Abe ___ CMake mailing

[CMake] custom preprocessor

2007-01-25 Thread Ignacio CastaƱo
Hi, I use a custom preprocessor to compile some of my files. For that to work I create custom commands, so that for each c file, a gen.c file is produced. Only the generated files are compiled. There's a dependency between the gen.c and the c file, so that when the c file changes the gen.c file i

[CMake] include a Make.rules file?

2007-01-25 Thread Sam Miller
I am trying to convert an hand-rolled Makefile build system into CMake. The project itself is a subset of a larger project, which uses a Make.rules file for various cross compilation rules and install directories. Is there any way to include this Make.rules file into the Makefile generated by CMak

Re: [CMake] .c file including a .c file

2007-01-25 Thread Bill Hoffman
Brandon J. Van Every wrote: In our PCRE library, pcre_ucp_findchar.c has #include "ucp_findchar.c" Will CMake automagically detect this dependency? I think it would be incorrect to list ucp_findchar.c as a source file, as we don't want an object file to result. I suppose I'll do ADD_DEPENDE

Re: [CMake] Building both SHARED and STATIC libs

2007-01-25 Thread Bill Hoffman
Brandon J. Van Every wrote: Eric Noulard wrote: Is there a way to build both shared AND static in a single build Yes. However, you'll probably need to compile them in separate directories to prevent collisions between object files. The Chicken CMake build http://www.call-with-current-con

Re: [CMake] CMAKE_BUILD_TYPE

2007-01-25 Thread Bill Hoffman
Brandon J. Van Every wrote: I added the following notation to the Useful Variables page of the wiki: http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools "Note that CMAKE_BUILD_TYPE is not initialized with a readable value at configuration time. This is because the user is free

[CMake] CMAKE_BUILD_TYPE

2007-01-25 Thread Brandon J. Van Every
I added the following notation to the Useful Variables page of the wiki: http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools "Note that CMAKE_BUILD_TYPE is not initialized with a readable value at configuration time. This is because the user is free to select a build type at bu

Re: [CMake] Building both SHARED and STATIC libs

2007-01-25 Thread Brandon J. Van Every
Eric Noulard wrote: > 2007/1/25, Andreas Schneider <[EMAIL PROTECTED]>: >> Eric Noulard wrote: >> > Is there a way to build both shared AND static >> >> Hi Eric, >> >> yes there is. From the cmake documentation: >> >> SET_TARGET_PROPERTIES >> >> When a library is built CMake by default generates co

Re: [CMake] Building both SHARED and STATIC libs

2007-01-25 Thread Brandon J. Van Every
Eric Noulard wrote: Is there a way to build both shared AND static in a single build Yes. However, you'll probably need to compile them in separate directories to prevent collisions between object files. The Chicken CMake build http://www.call-with-current-continuation.org/index.html has

[CMake] .c file including a .c file

2007-01-25 Thread Brandon J. Van Every
In our PCRE library, pcre_ucp_findchar.c has #include "ucp_findchar.c" Will CMake automagically detect this dependency? I think it would be incorrect to list ucp_findchar.c as a source file, as we don't want an object file to result. I suppose I'll do ADD_DEPENDENCIES if they're no automagi

Re: [CMake] Building both SHARED and STATIC libs

2007-01-25 Thread Eric Noulard
2007/1/25, Andreas Schneider <[EMAIL PROTECTED]>: Eric Noulard wrote: > Is there a way to build both shared AND static Hi Eric, yes there is. From the cmake documentation: SET_TARGET_PROPERTIES When a library is built CMake by default generates code to remove any exist

Re: [CMake] faking convenience libraries

2007-01-25 Thread Brandon J. Van Every
Bill Hoffman wrote: Brandon J. Van Every wrote: Bill Hoffman wrote: You can not use FIND_* stuff because the files will not be there. There is a risk that cmake could change where the .o files are put. To mitigate that risk, I would recommend setting up everything with variables. You a

Re: [CMake] SET_SOURCE_FILES_PROPERTIES in subdir

2007-01-25 Thread Peter Soetens
Quoting Alexander Neundorf <[EMAIL PROTECTED]>: Von: Peter Soetens <[EMAIL PROTECTED]> Hi, I'm having this situation: a source file property is set in a subdir (GENERATED true), but when the source file property is read again in the root directory, it is no longer present on that file. Is th

[CMake] Problem with last CMake

2007-01-25 Thread Ilya Shvetsov
Hi, all. I try use last CMake 2.4.6 It fails generate MSYS Makefiles. At the same time version 2.4.3 has NO such problem. I have all last updates for MSYS and for MinGW. System is Windows XP SP2 Hear is cmake log: cmake -G "MSYS Makefiles" .. -- Check for working C compiler:

Re: [CMake] SET_SOURCE_FILES_PROPERTIES in subdir

2007-01-25 Thread Alexander Neundorf
Von: Peter Soetens <[EMAIL PROTECTED]> > Hi, > > I'm having this situation: a source file property is set in a subdir > (GENERATED true), but when the source file property is read again in the > root directory, it is no longer present on that file. Is this intentional > behaviour ? > > It's n

[CMake] SET_SOURCE_FILES_PROPERTIES in subdir

2007-01-25 Thread Peter Soetens
Hi, I'm having this situation: a source file property is set in a subdir (GENERATED true), but when the source file property is read again in the root directory, it is no longer present on that file. Is this intentional behaviour ? It's not documented that the property on files scope is 'local'

Re: [CMake] Telling whether MSVC is in Debug or Release configuration

2007-01-25 Thread Bill Hoffman
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Hi, I would like to obtain library name through: GET_TARGET_PROPERTY(library_name MyLibraryProject ${CMAKE_ BUILD_TYPE}_LOCATION) This works on Linux. However, ${CMAKE_ BUILD_TYPE} doesn't get set in MSVC. How can I

Re: [CMake] faking convenience libraries

2007-01-25 Thread Bill Hoffman
Brandon J. Van Every wrote: Bill Hoffman wrote: You can not use FIND_* stuff because the files will not be there. There is a risk that cmake could change where the .o files are put. To mitigate that risk, I would recommend setting up everything with variables. You already have these ${

[CMake] Building both SHARED and STATIC libs

2007-01-25 Thread Eric Noulard
Is there a way to build both shared AND static in a single build or should I run 2 builds one with BUILD_SHARED_LIBS ON and another one with BUILD_SHARED_LIBS OFF I would something like: BUILD_SHARED_LIBS BOTH :)) Using this scheme we can deliver both static and shared libs to our users. -- Er

AW: [CMake] [CPack] Changing the appearance of the NSIS installer

2007-01-25 Thread wedekind
Hi David, thanks for reply, even it's 2 months later it was still helpful for me. I've followed your steps and it works for me! Unfortunately I cannot reproduce what I have done wrong 2 months ago, but I guess the main difference to your approach is that I have tried to use my own NSIS.template.in