[CMake] Are CMAKE_CXX_FLAGS supposed to go on the link line?

2015-01-08 Thread Paul Smith
It seems different generators are handling this differently, which is frustrating (I've tried with both CMake 3.1.0 and 2.8.12.2)... or else there's something very bizarre about my cmake files. The new doc layout looks nice, but it really needs an infusion of detail. Here's the doc for CMAKE_CXX_

[CMake] ExternalProject git checkout --depth=1 ???

2015-01-08 Thread Kent Williams
I'm building the Mozilla Spidermonkey JS interpreter as an ExternalProject. So far so good, but I had a question/feature request: Wouldn't it be grand to be able to add --depth 1 to the git clone? This is perfect for grabbing giant repositories. Mozilla is more than 3 gigabytes with a full clon

Re: [CMake] Unable to create project files with Visual Studio 2010 on Windows 7

2015-01-08 Thread David . Karr
> On 1/6/2015 7:10 PM, david.k...@engilitycorp.com wrote: > > I have just started using a new Windows 7 host with Visual Studio > 2010 > > Professional. When I call CMake to generate my project files, I get > > the following output in CMakeError.log: > Does your visual studio work without CMake? C

Re: [CMake] Creating an installer using cpack

2015-01-08 Thread J Decker
On Thu, Jan 8, 2015 at 12:46 PM, Gonzalo Garramuno wrote: > I have a cmake file to build my project (mrViewer). The project has > additional script files that are not mentioned in my cmake file. > The project also has dependencies on c libraries installed elsewhere > (/usr/local, etc). > > The t

Re: [CMake] Creating an installer using cpack

2015-01-08 Thread Daniel Schepler
For (a): If by "respecting its local location", you mean you want the scripts to be in the same location in the installation directory as it is in the source directory, we've been using the functions below (in cmake/installutils.cmake). macro (split_install_args files_var install_args_var) s

[CMake] Creating an installer using cpack

2015-01-08 Thread Gonzalo Garramuno
I have a cmake file to build my project (mrViewer). The project has additional script files that are not mentioned in my cmake file. The project also has dependencies on c libraries installed elsewhere (/usr/local, etc). The tgz,deb and rpm files currently contain just the main executable aft

Re: [CMake] cmake FortranCInterface test fails in a linking step due to the -rdynamic option in Linux-GNU.cmake

2015-01-08 Thread Brad King
On 1/8/2015 12:44 PM, Bob Walkup wrote: > I think it would be preferable to replace "-rdynamic" with > "-Wl,--export-dynamic" as follows: > > set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,--export-dynamic") > > in the Linux-GNU.cmake file that is provided by cmake. What compiler id is reporte

[CMake] cmake FortranCInterface test fails in a linking step due to the -rdynamic option in Linux-GNU.cmake

2015-01-08 Thread Bob Walkup
I am attempting to build an application that uses cmake, but encountered an issue that is present in the most recent cmake versions. The system is Linux, and the problem occurs with a FortranCInterface test, when the Fortran compiler is IBM XL Fortran (the problem does not arise with gfortran).

[CMake] [3.1.0] [PATCH] CMP0054 in CMakeDetermineCXXCompiler.cmake

2015-01-08 Thread Paul Smith
Hi all. I'm testing an upgrade to CMake 3.1.0 (from 2.8.12.2) and seeing a weird warning, but ONLY on Windows; it works fine on GNU/Linux and OSX: -- The C compiler identification is MSVC 16.0.40219.1 -- Check for working C compiler using: Visual Studio 10 2010 Win64 -- Check for working C