[CMake] providing host binary and target library cmake-package when cross compiling

2015-10-19 Thread Pascal Bach
Hello I'm working on CMake support for Apache Thrift [1]. It is currently already buildable using CMake. However while trying to add support for generating a ThriftConfig.cmake I ran into some issues related to cross compilation. Thrift has the following components relevant to the problem: C++

Re: [CMake] providing host binary and target library cmake-package when cross compiling

2015-10-19 Thread Pascal Bach
> still get the same build errors. > > This pastebin has all the relevant code: http://pastebin.com/BnVTnegP > > Anyone can see anything wrong with this? > > On Mon, Oct 19, 2015 at 10:11 PM, Pascal Bach <pascal.b...@siemens.com> > wrote: >> >> Hello &

Re: [cmake-developers] added get_git_revision and get_git_branch commands as follow-up to cm...@cmake.org

2015-10-05 Thread Pascal Bach
Hi Daniel I just wanted to let you know that I was planing to bring a git versioning script upstream soon. It is based on the following sequence of commands: https://github.com/bufferoverflow/proxyme/blob/master/CMakeLists.txt#L5 It tries to generate a version string of the following form:

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-31 Thread Pascal Bach
Am 30.07.2015 um 17:20 schrieb Clinton Stimpson: On Thursday, July 30, 2015 10:56:02 AM Brad King wrote: On 07/30/2015 09:29 AM, Pascal Bach wrote: CMAKE_FIND_ROOT_PATH_MODE would then need to be extended to support something like NATIVE and TARGET that one could use to choose where to look

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-30 Thread Pascal Bach
Hi again Am 30.07.2015 um 10:54 schrieb Pascal Bach: Hi Clint, Hi Brad What I want to avoid is users thinking that what you are proposing overrides any other way of finding Qt when cross compiling. The wording you propose is To find Qt in a cross compile environment set the following

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-30 Thread Pascal Bach
Hi Clint, Hi Brad What I want to avoid is users thinking that what you are proposing overrides any other way of finding Qt when cross compiling. The wording you propose is To find Qt in a cross compile environment set the following variables However there are users for which setting only

[cmake-developers] [PATCH 1/3] FindQt4: support OpenEmbedded Qt4 tool binary names

2015-07-29 Thread Pascal Bach
one. This patch adds support for the OpenEmbedded specific binary names. This patch was maintained as part of OpenEmbedded. Signed-off-by: Otavio Salvador ota...@ossystems.com.br Signed-off-by: Moritz Blume moritz.bl...@bmw-carit.de Signed-off-by: Pascal Bach pascal.b...@siemens.com --- Modules

[cmake-developers] [PATCH 2/3] FindQt4: improve cross compile support

2015-07-29 Thread Pascal Bach
= Path to native Qt binary directory QT_LIBRARY_DIR = Path to target Qt library directory QT_INCLUDE_DIR = Path to target Qt include directory QT_MKSPECS_DIR = Path to target Qt mkspecs directory Signed-off-by: Pascal Bach pascal.b...@siemens.com --- Modules/FindQt4.cmake | 12 ++-- 1 file

[cmake-developers] [PATCH 0/3] improve FindQt4 and crosscompilation

2015-07-29 Thread Pascal Bach
This patch set tries to improve how FindQt4 works in a cross compilation environment. In this case OpenEmbedded/Yoctor, but others should benefit from this too. Pascal Bach (3): FindQt4: support OpenEmbedded Qt4 tool binary names FindQt4: improve cross compile support FindQt4: document

[cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Pascal Bach
--- Modules/FindQt4.cmake | 20 1 file changed, 20 insertions(+) diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 9d03378..64c06e1 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -29,6 +29,26 @@ # for a particular executable, set the

Re: [cmake-developers] [PATCH 3/3] FindQt4: document cross compilation

2015-07-29 Thread Pascal Bach
On Wednesday, July 29, 2015 02:32:48 PM Pascal Bach wrote: --- Modules/FindQt4.cmake | 20 1 file changed, 20 insertions(+) diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 9d03378..64c06e1 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4

[cmake-developers] [PATCH] VS, WINCE: Fix entry point for Unicode builds

2014-12-02 Thread Pascal Bach
. Signed-off-by: Pascal Bach pascal.b...@siemens.com --- Source/cmVisualStudio10TargetGenerator.cxx | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index f591fc8

[cmake-developers] [PATCHv3] Tests: Run Tutorial steps 1-4 as tests for Windows CE

2014-10-29 Thread Pascal Bach
--- Tests/CMakeLists.txt | 53 +- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index e1e90a1..60b50f8 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1781,6 +1781,27 @@

[cmake-developers] [PATCH] WINCE: Run Tutorial steps 1-4 as tests for Windows CE

2014-10-21 Thread Pascal Bach
--- Tests/CMakeLists.txt | 30 ++ 1 file changed, 30 insertions(+) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 25cc846..fc3359e 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1835,6 +1835,36 @@ ${CMake_BINARY_DIR}/bin/cmake

[cmake-developers] [PATCH] VS, WINCE: Only set EntryPointSymbol for executables

2014-09-22 Thread Pascal Bach
--- Source/cmVisualStudio10TargetGenerator.cxx | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 4b5c83f..e0a32a2 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx

[cmake-developers] [PATCH] WINCE: Add toolchain documentation for Windows CE

2014-09-18 Thread Pascal Bach
--- Help/manual/cmake-toolchains.7.rst | 20 1 file changed, 20 insertions(+) diff --git a/Help/manual/cmake-toolchains.7.rst b/Help/manual/cmake-toolchains.7.rst index f36a43c..095a43f 100644 --- a/Help/manual/cmake-toolchains.7.rst +++

[cmake-developers] [PATCH] WINCE, VS: Make the Visual Studio 10+ generator Windows CE

2014-09-12 Thread Pascal Bach
- If Windows CE is targeted set the Subsystem and EntryPointSymbol accordingly - For Windows CE 2013 (8.0) set the toolset to C800 by default --- Source/cmGlobalVisualStudio10Generator.cxx | 40 Source/cmGlobalVisualStudio10Generator.h |7 +

[cmake-developers] [PATCH] WINCE: Document the WINCE variable

2014-09-11 Thread Pascal Bach
--- Help/manual/cmake-variables.7.rst |1 + Help/variable/WINCE.rst |5 + 2 files changed, 6 insertions(+) create mode 100644 Help/variable/WINCE.rst diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst index 149e4ac..b00c16e 100644 ---

[cmake-developers] [PATCH 3/3] VS: Pass MSVC compiler flags in upper case

2014-09-08 Thread Pascal Bach
Currently the mapping from flags to XML elements in the Visual Studio generator is case sensitive. It only handles upper case flags so we should pass them as upper case. Even better would be to make the search case insensitive. --- Modules/Platform/Windows-MSVC.cmake | 36

[cmake-developers] [PATCH 1/3] WINCE: Document the WINCE variable

2014-09-08 Thread Pascal Bach
From: Pascal Bach pascal.b...@nextrem.ch --- Help/manual/cmake-variables.7.rst |1 + Help/variable/WINCE.rst |5 + 2 files changed, 6 insertions(+) create mode 100644 Help/variable/WINCE.rst diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7

[cmake-developers] [PATCH] WINCE, VS: Allow selecting an SDK for Windows CE on Visual Studio

2014-09-04 Thread Pascal Bach
- Allow setting CMAKE_VS_WINCE_SDK to specify the SDK. - The user is warned if he uses a version different Windows CE different from 8.0 and not CMAKE_PLATFORM_TOOLSET is specified. - Docuentation for WINCE and CMAKE_VS_WINCE_SDK added. --- Help/variable/CMAKE_VS_WINCE_SDK.rst | 13

[cmake-developers] [PATCH] WINCE, VS: Allow selecting an SDK for Windows CE on Visual Studio

2014-09-03 Thread Pascal Bach
Set CMAKE_VS_WINCE_SDK to specify the SDK. --- Source/cmGlobalVisualStudio10Generator.cxx | 48 Source/cmGlobalVisualStudio10Generator.h |7 Source/cmGlobalVisualStudio11Generator.cxx | 12 +++ Source/cmGlobalVisualStudio11Generator.h |2 ++

[cmake-developers] [PATCH] VS12: Allow specifying an installed SDK as target platform for the generator.

2014-08-28 Thread Pascal Bach
This brings the behavior of Visual Studio 2013 in line with the one of Visual Studio 2012. --- Source/cmGlobalVisualStudio12Generator.cxx | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Source/cmGlobalVisualStudio12Generator.cxx

[CMake] Windows Embedded Compact 2013 support

2014-08-26 Thread Pascal Bach
Hi. I would like to compile some software for Windows Embedded Compact 2013 (WEC2013). But I was unable to find any documentation about WEC2013 support. Does somebody already use CMake to build for Windows Embedded Compact 2013? Is it supported at all? If not where would I need to start to add

Re: [CMake] Build Library from Thrift generated files

2013-09-05 Thread Pascal Bach
Unknown source file name is just painful. Can't the thrift generator tell you the name of the files he will generate? Something like: thrift --generated-file-list Service.thrift How wouldn't the output depend on the content of the input :-]... just kidding. The not predictable

[CMake] Build Library from generated files

2013-09-04 Thread Pascal Bach
Hello everybody I'm trying to build a library from source files that are generated at build time. The setup is the following. Inputfiles (Service.thrift) - Thrift Compiler/Generator - Several generated files (gen-cpp/Service.h, gen-cpp/Service.cpp, gen-cpp/Types.h, [possibly more] - Build