[CMake] CMake: Error running link command: %1 is not a valid Win32 application

2015-02-05 Thread Jussi Lind
I'm trying to build a NaCl extension for Google Chrome on 64-bit Windows 8.1 using CMake. It uses a custom toolchain that comes with the SDK. The same code works on Ubuntu without any problems. Everything goes well until CMake tries to link with this command: cmake -E cmake_link_script link.txt

Re: [CMake] Mixed linking

2015-02-05 Thread Norbert Pfeiler
Hey, to build a static qt executable for windows you may be interested in using msys2. It offers a prepackaged static qt5 with patches for static linking with cmake (as the official files are a bit broken for mingw). Currently you have to define »QT_STATIC« and explicitly include your required plu

[CMake] ExternalProject: download step progress prints too much

2015-02-05 Thread Luc J. Bourhis
Using "include(ExternalProject)" with CMake 2.8, the download step echoes its progress in my terminal as: I am pretty sure the intended effect was a single line with the percentage changing as the download progresses. But what is missing from my environment to achieve that? I am running a stock F

Re: [CMake] custom target like add_executable

2015-02-05 Thread Bill Newcomb
I was missing the dependency of foo.sha1 on foo, but adding it doesn't change the behavior in this example--it is still regenerated after every make. But now I think I see why. Commenting out first one, then the other of my add_custom_*, I start to see why this is the case--add_custom_output doe

[CMake] Post test in build tree

2015-02-05 Thread Marco Atzeri
on latest Lapack source there is on "CTestCustom.cmake.in" the following command SET(CTEST_CUSTOM_POST_TEST "./lapack_testing.py -s -d TESTING") but unfortunately as "./lapack_testing.py" is on the source tree it does not work if the build tree is a different one. Any suggestion how to modify i

Re: [CMake] Check symbol in header files with dependencies

2015-02-05 Thread Rolf Eike Beer
Am Donnerstag, 5. Februar 2015, 21:12:36 schrieb Alexander Koeppe: > Hi Cmake user list, > > I have a problem that I need to check the presence of a certain symbol > in a header file using CHECK_SYMBOL_EXISTS which has several dependencies. > > The check fails because the header file also contain

Re: [CMake] Mixed linking

2015-02-05 Thread Stephen Kelly
Ghyslain Leclerc wrote: > Here are a few questions for the list (hoping someone more knowledgable > than me will read this and help): > > 1) Am I right when I say CMake, Qt and static linking don’t mix ? They should mix fine. > > I have tried on OS X. I have compiled a static version of Qt,

Re: [CMake] Resolving CMP0026 warnings

2015-02-05 Thread Stephen Kelly
Knox, Kent wrote: > The problem is that get_prerequisites( ) needs a path to the target. How > do I now get this path without calling the LOCATION property? I don't > know where I can use a generator expression. Replace your configure_file with something like file(GENERATE OUTPUT "${CMAKE_CU

[CMake] Check symbol in header files with dependencies

2015-02-05 Thread Alexander Koeppe
Hi Cmake user list, I have a problem that I need to check the presence of a certain symbol in a header file using CHECK_SYMBOL_EXISTS which has several dependencies. The check fails because the header file also contains data types that require an additional header file to be included by the test

[CMake] Mixed linking

2015-02-05 Thread Ghyslain Leclerc
Hello, My apologies for the long post, but I think context helps a little. We have a set of applications (4 at the moment) which compile against ITK, VTK, DCMTK and Boost.  All of those things are compiled statically.  So is the application.  We are developing on Windows, OS X and Linux boxes,

[CMake] Resolving CMP0026 warnings

2015-02-05 Thread Knox, Kent
Hi all~ I have a question similar to one recently asked by NoRulez about CMP0026. I've been working on updating my legacy cmake code to compile without warnings with the 3.x series. When I install my projects, I want to copy my 'non-system' target dependencies to help debug on non-development

Re: [CMake] custom target like add_executable

2015-02-05 Thread Alan W. Irwin
On 2015-02-05 10:14-0800 Bill Newcomb wrote: A contrived example: $ ls .. b CMakeLists.txt foo $ cat ../CMakeLists.txt cmake_minimum_required(VERSION 3.1) add_custom_target(foo.sha1 ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/foo.sha1) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/

Re: [CMake] Workaround for CMP0026

2015-02-05 Thread Stephen Kelly
NoRulez wrote: > Thank you for your help. > > I think that for the replacement there is some missing documentation > outstanding, because i didn't find the "TYPE" attribute in the "file" > function for example. I copied and modifier the content from a generated cmake_install.cmake script. The

Re: [CMake] custom target like add_executable

2015-02-05 Thread Bill Newcomb
A contrived example: $ ls .. b CMakeLists.txt foo $ cat ../CMakeLists.txt cmake_minimum_required(VERSION 3.1) add_custom_target(foo.sha1 ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/foo.sha1) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/foo.sha1 COMMAND openssl sha1 -out ${CMAKE

[CMake] Correct dependencies in a code generation workflow

2015-02-05 Thread Dominic Kempf
Dear CMake list, I am trying to get a code generating tool chain to work in a cmake based build system with the Unix Makefiles generator and cmake 2.8.12. Look at the following MWE of what I am doing: add_custom_command(OUTPUT generated.hh COMMAND DEPENDS so

Re: [CMake] CMake & Android with debugging

2015-02-05 Thread Robert Dailey
Would love some feedback from those who have experience with this setup. On Tue, Feb 3, 2015 at 11:47 AM, Robert Dailey wrote: > So the way I've seen JAVA integration with NDK suggested is to use a > custom target to launch ant to build the APK. However, if I do it this > way, how would I launch

[CMake] ExternalProject_add and add_subdirectory in one step

2015-02-05 Thread Franz Engel
Hi, I try to clone an repository from my bare-repository and to build my project tree. Therefore I use the following commands: ExternalProject_Add ( demoA PREFIX ${MAIN_PATH}/demoA GIT_REPOSITORY ${REPOSITORY_PATH}/demoA GIT_TAG origin/master UPDATE_COMMAND ""

[CMake] [ANNOUNCE] CMake 3.1.2 Released

2015-02-05 Thread Robert Maynard
We are pleased to announce that CMake 3.1.2 is now available for download. Please use the latest release from our download page: http://www.cmake.org/download/ Thanks for your support! - Changes in 3.1.2 since 3.1.1: Ben

Re: [CMake] Building for 64 bit with Visual Studio 2013

2015-02-05 Thread Klaim - Joël Lamotte
I think adding a simple check (fatal-error) on the value of CMAKE_SIZEOF_VOID_P in your cmake files would help the user realise that they are not using the right generator? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FA

Re: [CMake] Workaround for CMP0026

2015-02-05 Thread NoRulez
Thank you for your help. I think that for the replacement there is some missing documentation outstanding, because i didn't find the "TYPE" attribute in the "file" function for example. Or examples for the CMP0026 policy like in the CMP0043 documentation. Nevertheless, I also need to change th

Re: [CMake] E-Mail Notification of CDash is not working anymore

2015-02-05 Thread Gerhard Gappmeier
thx for the reply and sorry for the late response. I've checked this, and except for one I believe the settings are correct. What I don't understand is what this is for? The CDash server has a local git clone and can access all commits, so I don't understand what this credential is for when using