Re: [CMake] Support for building of OCaml software?

2014-04-19 Thread Judicaël Bedouet
I'm sorry. I completely forgot your email. Below are my answer to your last questions. Please, have a look to the examples. Some of the answers are in this CMakeLists: https://github.com/ocaml-cmake/ocaml-cmake/blob/master/examples/code-analysis/CMakeLists.txt Regards, J. Bedouet > bytecode > H

Re: [CMake] Support for building of OCaml software?

2014-04-10 Thread Judicaël Bedouet
> How do you think about to extend configuration checks for OCaml compiler variants? What do you mean by OCaml compiler variants ? I only know this one : http://caml.inria.fr/download.en.html > Would you also like to check for the availability of any package manager? Do you mean OPAM, GODI... ?

Re: [CMake] Support for building of OCaml software?

2014-04-09 Thread Judicaël Bedouet
Hi Markus, There is a lot of work to be done to have OCaml fully integrated to CMake. You can find different CMake modules to compile OCaml executables on the Web. I recently put my scripts on github: https://github.com/ocaml-cmake/ocaml-cmake. Regards, J. Bedouet From: SF Markus Elfring > To

Re: [CMake] RPM packages and install(SCRIPT...)

2011-05-09 Thread Judicaël Bedouet
t 2011/5/5 Eric Noulard > 2011/5/5 Judicaël Bedouet : > > Hi, > > Hi Judicaël, > > > I use install(SCRIPT...) to make links during installation. It works with > a > > normal installation (make install) but the script seems not to be > executed > > by CPac

[CMake] RPM packages and install(SCRIPT...)

2011-05-05 Thread Judicaël Bedouet
Hi, I use install(SCRIPT...) to make links during installation. It works with a normal installation (make install) but the script seems not to be executed by CPack or CPack RPM (I have not tested other generators). I could solve the problem by making a specific RPM spec but the post-install code w

Re: [CMake] OCaml support in CMake?

2010-03-10 Thread Judicaël Bedouet
Hello, I'm currently working on scripts to manage OCaml libraries and executables in CMake. It's just a set of scripts. I wonder if they could be integrated in the CMake distribution or if it would be better to integrate a real OCaml support in CMake. (I'm not in the CMake team) I have sent two v

Re: [CMake] ANN: UseOcaml.cmake

2010-01-26 Thread Judicaël Bedouet
mplex with separate directories and I have to revise ocamldep output but it works. I don't have so much time for the moment but I will take a look at your CMake files as soon as possible to test and improve my scripts. Thanks, J. Bedouet 2010/1/26 Alan W. Irwin > On 2010-01-26 00:28+

Re: [CMake] ANN: UseOcaml.cmake

2010-01-25 Thread Judicaël Bedouet
o > build the object io.cmo three times and build fails are almost systematic. > > > > > > If you keep only one target, there is never no problems. > > > > > > An idea ? Too late in the night for me :-( > > > > > > Bye, > > > > J.

Re: [CMake] ANN: UseOcaml.cmake

2010-01-21 Thread Judicaël Bedouet
gt; > i started to work on your scripts. very nice work! > > unfortunately, i couldnt find the problem, and i cant reproduce it with my > scripts. there must be a difference somewhere. > > cheers, > keyan > > > > On 19 Jan 2010, at 00:30, Judicaël Bedouet wrote: >

Re: [CMake] ANN: UseOcaml.cmake

2010-01-18 Thread Judicaël Bedouet
ysis-build/io.cmo is not a > bytecode object file > > i use make -j 2 (at least 2), and my guess is that it has to do with > parallel compilation. could that be the case? > > cheers, > keyan > > On 18 Jan 2010, at 18:01, Judicaël Bedouet wrote: > > > Hi, > >

Re: [CMake] ANN: UseOcaml.cmake

2010-01-15 Thread Judicaël Bedouet
Indeed, it is much more sophisticated, so it may be more bugged ;-) >> shell i send you my scripts to take a look? It's not necessary. I have downloaded the refactoring branch of yars. Thanks. I comment my OCaml scripts and I send you, so that you could also have a look. I have took a look at yo

Re: [CMake] ANN: UseOcaml.cmake

2010-01-14 Thread Judicaël Bedouet
Hello, I have just also written a FindOCaml and UseOCaml script. I wrote them last week, "good minds think alike" :-) Are you interested in it ? FindOCaml script looks for ocaml, ocamlc, ocamlopt, ocamllex, ocamlyacc and ocamldep. UseOCaml script provides some macros to - compile native or

[CMake] Patch proposal for Purify under Windows

2009-01-05 Thread Judicaël Bedouet
Hello, I made a patch to improve integration between Purify and CTest under Windows. http://public.kitware.com/Bug/view.php?id=8153 This patch corrects a bug under Windows (CTest was unable to analyse Purify output) and allows to specify a suppression file (via /FilterFiles option). Have a good

Re: [CMake] Visual Studio Warning Level

2008-11-24 Thread Judicaël Bedouet
Hello, I'm very interested in the fact that CMake could offer possibilities to portably set default warning levels. All people, with who I work, wondered a day how to set warning flags, especially for gcc (Flag /W3 is already set for Visual Studio). Different simple solutions have been found but

Re: [CMake] Variable naming when writing FindXXX.cmake files

2008-11-13 Thread Judicaël Bedouet
Thanks. J. Bedouet On Thu, Nov 13, 2008 at 9:16 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > On Thursday 13 November 2008, Judicaël Bedouet wrote: >> Hello, >> >> I have read the README file provided in directory cmake-2.6/Modules. >> >> I would just

[CMake] Variable naming when writing FindXXX.cmake files

2008-11-13 Thread Judicaël Bedouet
Hello, I have read the README file provided in directory cmake-2.6/Modules. I would just like to clarify a point : the names of the variables must always be uppercased even if the name of the package contains lowercase and uppercase letters, must'nt they ? For example, if I wrote a FindXalanC.cm

[CMake] Patch for UseSWIG and question about module

2008-11-02 Thread Judicaël Bedouet
I have just submitted a patch for module UseSWIG.cmake to solve some problems with language Java. http://public.kitware.com/Bug/view.php?id=7915 When solving these problems, I was wondering why the generated JNI library was not installed as a runtime under Windows. With CMake 2.6, dynamic librarie

Re: [CMake] Setting environment before running a test

2008-10-29 Thread Judicaël Bedouet
Thanks for your fast answers. Reported as http://public.kitware.com/Bug/view.php?id=7885 J. Bedouet On Wed, Oct 29, 2008 at 2:53 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote: > Judicaël Bedouet wrote: > >> Hello, >> >> I have a test which must be executed i

[CMake] Setting environment before running a test

2008-10-29 Thread Judicaël Bedouet
Hello, I have a test which must be executed in different environments. Test results depend on values of environment variables. Is there a way to easily set environment variables before running a test ? Somewhat like ADD_TEST (TestEnv1 testEnv) SET_TEST_PROPERTIES (TestEnv1 PROPERTIES ENV TEST_ENV

Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-14 Thread Judicaël Bedouet
On Sun, Sep 14, 2008 at 10:14 AM, Michael Wild <[EMAIL PROTECTED]> wrote: > > On 13. Sep, 2008, at 10:57, Judicaël Bedouet wrote: > > Thanks to both of you. >> >> I appreciate your example Michael but it can't work under Visual Studio. >> Command shoul

Re: [CMake] How to add a test and compare its output to a reference file ?

2008-09-13 Thread Judicaël Bedouet
rr) to a file. With second line, I would be able to compare output of the test program to a reference file. Thanks, J. Bedouet On Fri, Sep 12, 2008 at 4:22 PM, Michael Wild <[EMAIL PROTECTED]> wrote: > > On 12. Sep, 2008, at 16:14, Bill Hoffman wrote: > > Judicaël Bedouet w

[CMake] How to add a test and compare its output to a reference file ?

2008-09-11 Thread Judicaël Bedouet
Hi, I 'm converting a project to CMake. Tests in this project print messages to cout and these output traces are compared to reference files. If output and its reference are different, the corresponding test is considered as failed. I can't see how to make these tests work with CMake. I try to ru

Re: [CMake] Patch to find Boost under Windows

2008-09-02 Thread Judicaël Bedouet
>On 03.09.08 00:01:38, Judicaël Bedouet wrote: >>* I have downloaded Multithread DLL for Visual Studio 2003 and tried to find *>>* them with CMake 2.6-1. Boost version is 1.35 *>>* CMake finds headers but can't find libraries. CMake search the following *>>* direc

[CMake] Patch to find Boost under Windows

2008-09-02 Thread Judicaël Bedouet
Hello, Under Windows, I can't find Boost libraries. I have downloaded Multithread DLL for Visual Studio 2003 and tried to find them with CMake 2.6-1. Boost version is 1.35 CMake finds headers but can't find libraries. CMake search the following directories : - C:/boost/lib - C:/boost -

Re: [CMake] Generate docbook and PDF documentation with CMake

2008-06-30 Thread Judicaël Bedouet
Sorry, I haven't specified versions. I use cmake 2.7-20080513 and dblatex 0.2.5-1 under XUbuntu. J. Bedouet On Mon, Jun 30, 2008 at 11:49 AM, Judicaël Bedouet <[EMAIL PROTECTED]> wrote: > Hello, > > I successfully generate a docbook file for my custom modules with CMake. &g

[CMake] Generate docbook and PDF documentation with CMake

2008-06-30 Thread Judicaël Bedouet
Hello, I successfully generate a docbook file for my custom modules with CMake. Now, I would like to generate a PDF file. So I try dblatex --pdf mydocbook. dblatex finds one error at the beggining of the file. It doesn't like an empty itemizedlist. After deleting this list, it works wery well. A

Re: [CMake] CMake and swig problem

2008-06-18 Thread Judicaël Bedouet
Hello, I have a problem with Swig libraries generated by CMake and I find a mail from 2006 which describes the same problem. To summarize, SWIG libraries for Java must be generated with a lib prefix under Linux and CMake generates without prefix because some languages like Python don't need a lib

Re: [CMake] Coverage tests with gcov under Linux

2008-05-11 Thread Judicaël Bedouet
It perfectly works with CVS CMake. Thanks. Will this commit be integrated in CMake 2.6 or is it too late ? Thanks again, J. Bedouet On Sat, May 10, 2008 at 5:19 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Judicaël Bedouet wrote: >> >> It works if I set LC_ALL to POSIX

Re: [CMake] Coverage tests with gcov under Linux

2008-05-10 Thread Judicaël Bedouet
It works if I set LC_ALL to POSIX before running `make Experimental`. "Unknown line" messages disappear. I think it would be a good idea for CMake to set locales to POSIX before executing gcov. Thank you all, J. Bedouet On Sat, May 10, 2008 at 5:38 AM, John Doe <[EMAIL PROTECTED]> wrote: > I d

Re: [CMake] Coverage tests with gcov under Linux

2008-05-09 Thread Judicaël Bedouet
r/all] Erreur 2 make[1]: *** [CMakeFiles/Experimental.dir/rule] Erreur 2 make: *** [Experimental] Erreur 2 On Fri, May 9, 2008 at 6:46 PM, Judicaël Bedouet <[EMAIL PROTECTED]> wrote: > I have just made a little project with CDashTest and it's the same problem. > I have attached the sourc

Re: [CMake] POST_BUILD in a different directory

2008-05-09 Thread Judicaël Bedouet
AND ${CMAKE_COMMAND} -E copy >${__COPY_SOURCE_PATH}/${LIBNAME}.dll >${__COPY_DEST_PATH} > DEPENDS ${__COPY_SOURCE_PATH}/${LIBNAME}.dll >) > > > > kind regards > Andreas > &g

[CMake] Coverage tests with gcov under Linux

2008-05-09 Thread Judicaël Bedouet
Hello, I would like to exploit gcov results with CMake and CDash. At the moment, I have installed EasyPhp, created a project under CDash and added CTestConfig.cmake, generated by Cdash, to the source files of my project. When I run `make Experimental`, I have errors for each file involved (see e

[CMake] POST_BUILD in a different directory

2008-04-24 Thread Judicaël Bedouet
Hello, I would like to use the POST_BUILD option of the command ADD_CUSTOM_COMMAND in a CMakeLists.txt, different from the CMakeLists.txt which is used to generate the target. I made this test. In the top level source directory, CMAKE_MINIMUM_REQUIRED (VERSION 2.6) PROJECT (test CXX) ADD_SUBD