Re: [CMake] static library linking problem

2013-05-14 Thread Andreas Mohr
On Tue, May 14, 2013 at 08:47:36PM -0400, cmake-requ...@cmake.org wrote: > Date: Tue, 14 May 2013 19:05:13 -0400 > From: Vojt?ch Nov?k > I am getting this error: > > undefined reference to `ccv_read_impl(...)' > and more undefined references to the stuff from the library As has been clarified

Re: [CMake] cmake : error : 'AT_SYMLINK_NOFOLLOW' undeclared

2013-05-14 Thread allan George
this constant is defined in following file :--- http://lxr.free-electrons.com/source/include/uapi/linux/fcntl.h#L44 I am using Raspbian distribution, for RPi. On Wed, May 15, 2013 at 6:31 AM, allan George wrote: > actually i have run autoreconf -fi & aclocal inside someother package. > Could it

Re: [CMake] cmake : error : 'AT_SYMLINK_NOFOLLOW' undeclared

2013-05-14 Thread allan George
actually i have run autoreconf -fi & aclocal inside someother package. Could it have changes something ? That is affecting cmake ? //Allan On Wed, May 15, 2013 at 6:17 AM, allan George wrote: > I am working on RPi raspberry pi. Using debian. > > //Allan > > On Tue, May 14, 2013 at 11:11 PM, Rolf

Re: [CMake] cmake : error : 'AT_SYMLINK_NOFOLLOW' undeclared

2013-05-14 Thread allan George
I am working on RPi raspberry pi. Using debian. //Allan On Tue, May 14, 2013 at 11:11 PM, Rolf Eike Beer wrote: > allan George wrote: > > Please suggest, what dependencies i have missed related to compilation of > > cmake ? > > I am getting error at make time > > This doesn't look like a missin

Re: [CMake] static library linking problem

2013-05-14 Thread Sascha Cunz
Am Dienstag, 14. Mai 2013, 19:05:13 schrieb Vojtěch Novák: > hello, > I'm working on a C++ package for ROS (robot operating system) that uses a C > library libccv.a. ROS uses CMake which is why I am asking here. Asking at > ROS answers did not help and I am totally stuck. [...] From a quick loo

[CMake] static library linking problem

2013-05-14 Thread Vojtěch Novák
hello, I'm working on a C++ package for ROS (robot operating system) that uses a C library libccv.a. ROS uses CMake which is why I am asking here. Asking at ROS answers did not help and I am totally stuck. here is the relevant part of my CMakeLists.txt: set(SOURCES src/${PROJECT_NAME}.cpp src/Ro

[CMake] Announcing CMake Tools for Visual Studio

2013-05-14 Thread David Golub
I'm pleased to announce the first release candidate of CMake Tools for Visual Studio, an extension adding support for syntax highlighting and IntelliSense in CMake code using Microsoft Visual Studio. The extension is open source (distributed under Ms-RL), freely available, and compatible with VS 2

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Brad King
On 05/13/2013 02:08 PM, Pritchett-Sheats, Lori wrote: > IMPLICIT_DEPENDS Fortran "${F_file}" The custom command is running a C preprocessor, not a Fortran compiler, so use "IMPLICIT_DEPENDS C". > list(APPEND PGSLibIface_SOURCE_FILES ${new_file_f90}) Do you mean to append to F90Library_S

Re: [CMake] How to install Fortran module files?

2013-05-14 Thread Neil Carlson
On Sun, May 12, 2013 at 9:22 AM, Zaak Beekman wrote: > I'm curious why you want to install the .mod files. As far as I know, I > don't think you need these at run time, but I could be wrong. (I know this > to be true at least for statically linked binaries.) > When application code that use the

Re: [CMake] How to install Fortran module files?

2013-05-14 Thread Neil Carlson
On Fri, May 10, 2013 at 4:01 PM, Yngve Inntjore Levinsen < yngve.levin...@gmail.com> wrote: > If you set the CMAKE_Fortran_MODULE_DIRECTORY variable, then all module > files by default will be built into this folder. In our case we set this to > ${CMAKE_BINARY_DIR}/fortran. Since nothing else is

Re: [CMake] cmake 2.8.10 broke Visual Studio 10 generator for me

2013-05-14 Thread Bill Hoffman
On 5/13/2013 9:26 PM, Richard Browne wrote: Compiling open source project OpenCV-2.3.1 on Windows works with cmake 2.8.9. The other day I updated to cmake 2.8.10, and it stopped working. If I go back to cmake 2.8.9 it works again. Has anyone seen this or can anyone point me in the right directi

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Andreas Mohr
Hi, [disclaimer: quoting below is non-standard] On Tue, May 14, 2013 at 10:48:22AM -0400, cmake-requ...@cmake.org wrote: > Date: Tue, 14 May 2013 14:36:18 + > From: "Pritchett-Sheats, Lori" | Hmm. Files with directory specification. | | But then... > > > set(F90Library_SOURCE_FILES) > > f

Re: [CMake] What are the best way to set project-wide compiler flags?

2013-05-14 Thread Matthew Woehlke
On 2013-05-14 13:48, Todd Greer wrote: My development team and I have struggled with what should be a simple question: what is the best way to add project-wide compiler flags? Here are the ways I've seen from the documentation and miscellaneous sources: 1. add_definitions function 2. COMPILE_FL

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Andreas Mohr
On Tue, May 14, 2013 at 10:48:22AM -0400, cmake-requ...@cmake.org wrote: > On 05/10/2013 11:14 AM, Brad King wrote: > > OTOH the Xcode generator just initializes all four configurations > > in EnableLanguage up front: > > > > > > http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalXCodeG

Re: [CMake] How can I run my excutable in build

2013-05-14 Thread Matthew Woehlke
On 2013-05-14 14:58, Nils Gladitz wrote: Unless I misunderstand the documentation a target level dependency is automatically added if the command references a target created by add_executable. That may be; I didn't check. Personally, I'd be inclined to be paranoid and list it anyway :-). At wo

Re: [CMake] How can I run my excutable in build

2013-05-14 Thread Nils Gladitz
Unless I misunderstand the documentation a target level dependency is automatically added if the command references a target created by add_executable. So the order at least should be guaranteed? Though either way your second argument is still valid. Nils On 05/14/2013 07:57 PM, Matthew Woehlk

Re: [CMake] CMAKE_C_FLAGS and CMAKE_C_COMPILER cross compilation woe

2013-05-14 Thread Andreas Mohr
Hi, On Tue, May 14, 2013 at 02:38:17PM -0400, cmake-requ...@cmake.org wrote: > Date: Tue, 14 May 2013 10:02:56 -0700 > From: Thomas Taranowski > I am running into a situation when cross compiling where I cannot get > cmake to emit the write CFLAGS for my cross-compilation toolchain > correctly.

[CMake] Reactivation of configuration-specific Xcode settings bug

2013-05-14 Thread Allen Pestaluky
Hello, I also would like to see a fix to this issue because configuration-specific settings would be very useful to my project: http://www.cmake.org/Bug/view.php?id=12532 Back in December, the reporter attached a possible fix -- Is there any chance anyone is available to take a look at it? Than

Re: [CMake] Creating a common (= across several projects) CMake module/include-file/library

2013-05-14 Thread Shlomi Fish
Hi Jean-Christophe, On Mon, 13 May 2013 18:27:03 -0400 Jean-Christophe Fillion-Robin wrote: > Hi, > > To download the common file(s) at configure time, you could follow the > approach discussed here: > http://cmake.3232098.n2.nabble.com/is-it-possible-to-download-CMake-modules-at-configure-time

Re: [CMake] Creating a common (= across several projects) CMake module/include-file/library

2013-05-14 Thread Shlomi Fish
Hi Matthew, On Mon, 13 May 2013 18:17:58 -0400 Matthew Woehlke wrote: > On 2013-05-11 17:22, Shlomi Fish wrote: > > many of my CMake-based projects carry a common top-level "Common.cmake" file > > that I copy from one project to another and enhance, and since this is > > duplicate code/functiona

[CMake] What are the best way to set project-wide compiler flags?

2013-05-14 Thread Todd Greer
Hi, My development team and I have struggled with what should be a simple question: what is the best way to add project-wide compiler flags? As background, we develop C++ software that builds for Windows, Mac, and several different Linux platforms. For a given platform, the set of compiler flag

Re: [CMake] How can I run my excutable in build

2013-05-14 Thread Matthew Woehlke
On 2013-05-14 06:19, Nils Gladitz wrote: I think something like this: add_executable(2 2.cpp) add_executable(gen gen.cpp) add_custom_command(OUTPUT 2.cpp COMMAND gen "${CMAKE_CURRENT_SOURCE_DIR}/2.txt" -o 2.cpp DEPENDS 2.txt ) 'DEPENDS 2.txt gen' :-). You want the dependency on 'gen

Re: [CMake] cmake : error : 'AT_SYMLINK_NOFOLLOW' undeclared

2013-05-14 Thread Rolf Eike Beer
allan George wrote: > Please suggest, what dependencies i have missed related to compilation of > cmake ? > I am getting error at make time This doesn't look like a missing dependency, but a constant that is expected in some Posix headers that is not defined on your system. So, what is your syst

Re: [CMake] cmake : error : 'AT_SYMLINK_NOFOLLOW' undeclared

2013-05-14 Thread allan George
Please suggest, what dependencies i have missed related to compilation of cmake ? I am getting error at make time Regards, //Allan On Tue, May 14, 2013 at 8:47 PM, allan George wrote: > Hi, > > I am getting following error when compiling cmake. > What is cause of this error please suggest. Does

[CMake] CMAKE_C_FLAGS and CMAKE_C_COMPILER cross compilation woe

2013-05-14 Thread Thomas Taranowski
I am running into a situation when cross compiling where I cannot get cmake to emit the write CFLAGS for my cross-compilation toolchain correctly. If I force the C compiler, via the CMakeForceCompiler mechanism, the CMAKE_C_FLAGS do not get passed to gcc during the build. Example make VERBOSE=tru

[CMake] cmake : error : 'AT_SYMLINK_NOFOLLOW' undeclared

2013-05-14 Thread allan George
Hi, I am getting following error when compiling cmake. What is cause of this error please suggest. Does cmake requires libtool ? Error [ 37%] Building C object Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_read_disk_posix.c.o /home/ig

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Brad King
On 05/14/2013 10:28 AM, Paul Smith wrote: > On Tue, 2013-05-14 at 09:51 -0400, Brad King wrote: >> On 05/10/2013 11:14 AM, Brad King wrote: >>> OTOH the Xcode generator just initializes all four configurations >>> in EnableLanguage up front: >>> >>> >>> http://cmake.org/gitweb?p=cmake.git;a=blob;

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Pritchett-Sheats, Lori
Lori A. Pritchett-Sheats Los Alamos National Laboratory CCS-2, Computational Physics 505-665-6675 From: Andreas Mohr [a...@lisas.de] Sent: Tuesday, May 14, 2013 1:14 AM To: cmake@cmake.org Cc: Pritchett-Sheats, Lori Subject: Re: Compiling Fortran Modules A

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Paul Smith
On Tue, 2013-05-14 at 09:51 -0400, Brad King wrote: > On 05/10/2013 11:14 AM, Brad King wrote: > > OTOH the Xcode generator just initializes all four configurations > > in EnableLanguage up front: > > > > > > http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalXCodeGenerator.cxx;hb=v2.8.

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Brad King
On 05/10/2013 11:14 AM, Brad King wrote: > OTOH the Xcode generator just initializes all four configurations > in EnableLanguage up front: > > > http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalXCodeGenerator.cxx;hb=v2.8.10.2#l182 I've now taught the VS generator to do the same: ht

Re: [CMake] How can I run my excutable in build

2013-05-14 Thread Nils Gladitz
I think something like this: add_executable(2 2.cpp) add_executable(gen gen.cpp) add_custom_command(OUTPUT 2.cpp COMMAND gen "${CMAKE_CURRENT_SOURCE_DIR}/2.txt" -o 2.cpp DEPENDS 2.txt ) Nils On Tue, May 14, 2013 at 12:00 PM, 王东岳 wrote: > Well, I want to run an excutable when build li

[CMake] How can I run my excutable in build

2013-05-14 Thread 王东岳
Well, I want to run an excutable when build like the following makefile: 2 : 2.cpp g++ 2.cpp -o 2 2.cpp : gen gen 2.txt -o 2.cpp gen : gen.cpp g++ gen.cpp -o gen So what should I do? I just have learnt how to build a simple project, -- 清华大学计算机系 Tsinghua University CST 王东岳 Dongyue.W

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Andreas Mohr
Hi, On Mon, May 13, 2013 at 09:31:46PM -0400, cmake-requ...@cmake.org wrote: > I'm converting a Fortran package that was using GNU make to build to CMake, > but I've run into a problem compiling F90 module code where the source code > is stored under many directories. > > The package has a dire