Re: [CMake] Linking problem

2011-07-27 Thread Maxime Lecourt
Hi, is that a valid CMake instruction ? target_link_libraries(bt "-Wl,-whole-archive -L../idt/ -latidt -Wl,-no-whole-archive") I thought you were supposed to use set_target_properties(bt PROPERTIES LINK_FLAGS "-Wl,-whole-archive -L../idt/ -latidt -Wl,-no-whole-archive") Maxime 2011/7/27 Sanata

Re: [CMake] Build order

2011-06-27 Thread Maxime Lecourt
2011/6/27 Michael Wild > On 06/27/2011 11:31 AM, Maxime Lecourt wrote: > > Hello, > > > > I'm using CMake to build OCaml libraries. > > For that, I use a macro that I call in my CMakeLists.txt > > > > As I have dependencies between my different lib

[CMake] Build order

2011-06-27 Thread Maxime Lecourt
tical order. add_ocaml_library(cabs SOURCES cabs.ml) add_ocaml_library(algo SOURCES algo.ml) (algo depends on cabs being already built) How can I create a "add_ocaml_dependencies" macro ? Or is there a way to force CMake to follow the build order in the CMakeLists.txt ? Regards

Re: [CMake] foreach et lists

2011-06-22 Thread Maxime Lecourt
The old syntax works, and I renamed file as f (good point). Thank you. 2011/6/22 Michael Wild > On 06/22/2011 04:11 PM, Maxime Lecourt wrote: > > Hello, > > > > I'm using CMake to do some OCaml building. > > > > I launch the build command, using add_c

[CMake] foreach et lists

2011-06-22 Thread Maxime Lecourt
Hello, I'm using CMake to do some OCaml building. I launch the build command, using add_custom_command, so for the build to actually trigger, I added the add_custom_target command. Which I thought I did fine : MACRO(OCAML_OPT LIST_OF_FILES) message(STATUS ${LIST_OF_FILES}) FOREACH(FILE

Re: [CMake] [CMAKE] setting list with different directories ?

2011-06-01 Thread Maxime Lecourt
Problem solved. The problem with linking with the C++ lib comes from C++ lib, and has nothing to do with CMake Thanks. 2011/6/1 Hendrik Sattler > Zitat von Maxime Lecourt : > > The declarations in my_c_header.h are surrounded by >> >> #if defined(__cplusplus) >>

Re: [CMake] [CMAKE] setting list with different directories ?

2011-06-01 Thread Maxime Lecourt
count when I compile my library as C. Maxime Lecourt 2011/6/1 Hendrik Sattler > Zitat von Maxime Lecourt : > > I'm having what is probably a newbie problem, but a problem to me. >> >> I have C source files in two different directories, that I use to build a >>

[CMake] [CMAKE] setting list with different directories ?

2011-06-01 Thread Maxime Lecourt
did not work, so I tried to add the files in extern directory by first finding them with find_file. I found the files, added them to the ppc_source list, but now have problems changing properties of the files in current directory (either that or extern files are skipped at compilation). What is the ri

Re: [CMake] Problems using add_custom_command and perl

2011-04-21 Thread Maxime Lecourt
2011/4/21 David Cole > On Thu, Apr 21, 2011 at 9:48 AM, Maxime Lecourt > wrote: > >> Hi, >> >> I'm currently trying to use add_custom_command, but I do not get any >> output (it's working fine in other projects, with Bison and Flex). >>

[CMake] Problems using add_custom_command and perl

2011-04-21 Thread Maxime Lecourt
Hi, I'm currently trying to use add_custom_command, but I do not get any output (it's working fine in other projects, with Bison and Flex). Basically, I have a CMakeLists.txt file with include(CMakeCallPerl.cmake) PERL_SCRIPT("${GLISS_PATH}/nmp2nml.pl" "ppc.nmp") And in my CMakeCallPerl.cmake