[Cmake-commits] CMake branch, master, updated. v3.11.0-rc2-138-g086f84a

2018-03-06 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  086f84aa20ac975ddf85ddf74434c13e00e9c9e6 (commit)
  from  674c5b306671129bc4a854137c304f19e2c3bf65 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=086f84aa20ac975ddf85ddf74434c13e00e9c9e6
commit 086f84aa20ac975ddf85ddf74434c13e00e9c9e6
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Wed Mar 7 00:01:11 2018 -0500
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Wed Mar 7 00:01:11 2018 -0500

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index c4acb16..df45cf6 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,5 +1,5 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 11)
-set(CMake_VERSION_PATCH 20180306)
+set(CMake_VERSION_PATCH 20180307)
 #set(CMake_VERSION_RC 1)

---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
https://cmake.org/mailman/listinfo/cmake-commits


Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find libswiftCore.dylib

2018-03-06 Thread Lucas Soltic
If full support for Swift was added to CMake yes why not. But I’m not a CMake 
developer and considering current Swift support it’s a bit early I think. I 
mean Swift support should come as a global feature, not just this specific 
point.

> Le 6 mars 2018 à 11:02, Harry Mallon  a écrit :
> 
> Hi Lucas,
>  
> With Swift there is a required standard dylib that must be included (and 
> Xcode copies by default). So perhaps CMake should automatically add the rpath 
> option to the Xcode command line?
>  
> Harry
>  
> From: Lucas Šoltić 
> Date: Friday, 2 March 2018 at 23:20
> To: Harry Mallon 
> Cc: "cmake@cmake.org" 
> Subject: Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find 
> libswiftCore.dylib
>  
> You miss a runtime search path when linking your executable. And this is what 
> you achieved with install_name_tool with an additional step.
>  
> To avoid this additional step, see 
> https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html
> or
> https://stackoverflow.com/questions/42613881/adding-run-time-shared-library-search-path-to-executable-at-compile-time-clang
>  
> By the way this is not related to Swift at all.
>  
> Lucas
> 
> Le 2 mars 2018 à 20:12, Harry Mallon  a écrit :
> 
> Hello all,
>  
> When making a pure Swift bundle Xcode automatically copies 
> `libswiftCore.dylib` as follows.
>  
> ```
> ./Tests/SwiftOnly/Debug/SwiftOnly.app
> └── Contents
> ├── Frameworks
> │   └── libswiftCore.dylib
> ├── Info.plist
> ├── MacOS
> │   └── SwiftOnly
> ├── PkgInfo
> └── Resources
> └── libswiftRemoteMirror.dylib
> ```
> When I try to run the output I get a dynamic linking error. I can reproduce 
> this by adding MACOSX_BUNDLE to `./Tests/SwiftOnly/CMakeLists.txt` (in the 
> CMake source tree) in `add_executable` and trying to run the result.
>  
> ```
> % ./Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly
> dyld: Library not loaded: @rpath/libswiftCore.dylib
>   Referenced from: 
> .../Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly
>   Reason: image not found
> zsh: abort  ./Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly
> ```
>  
> It seems that the rpath should be set to `@loader_path/../Frameworks`. I am 
> not a Swift maestro so not exactly sure on the details of how this works. 
> After running `install_name_tool -add_rpath "@loader_path/../Frameworks" 
> ./Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly` it runs fine.
>  
> Does anyone have any idea what to do? Is it a missing CMake Swift feature? We 
> are currently working around it by manually adding the rpath with a cmake 
> step.
>  
> Harry
> Harry Mallon
> Senior Software Engineer
> 
> 
> 
> T +44 203 7000 989 
> 60 Poland Street | London | England | W1F 7NT
> 
> 
> Three Billboards
> Blade Runner 2049
>  I, Tonya
>  
> 
> -- 
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more 
> information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[CMake] toolchain

2018-03-06 Thread Stéphane Ancelot

Hi,

My project needs being compiled for different targets : win32 (linux 
mingw32) / linux64 (Opensuse 13.2) / linux32 (Ubuntu 10.04)


using toolchain is the right option isn't it ???

some people told me it was deprecated ?

Regards,

S.Ancelot

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find libswiftCore.dylib

2018-03-06 Thread Harry Mallon
Hi Lucas,

With Swift there is a required standard dylib that must be included (and Xcode 
copies by default). So perhaps CMake should automatically add the rpath option 
to the Xcode command line?

Harry

From: Lucas Šoltić 
Date: Friday, 2 March 2018 at 23:20
To: Harry Mallon 
Cc: "cmake@cmake.org" 
Subject: Re: [CMake] Swift executables with MACOSX_BUNDLE fail to find 
libswiftCore.dylib

You miss a runtime search path when linking your executable. And this is what 
you achieved with install_name_tool with an additional step.

To avoid this additional step, see 
https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html
or
https://stackoverflow.com/questions/42613881/adding-run-time-shared-library-search-path-to-executable-at-compile-time-clang

By the way this is not related to Swift at all.

Lucas

Le 2 mars 2018 à 20:12, Harry Mallon 
> a écrit :
Hello all,

When making a pure Swift bundle Xcode automatically copies `libswiftCore.dylib` 
as follows.

```
./Tests/SwiftOnly/Debug/SwiftOnly.app
└── Contents
├── Frameworks
│   └── libswiftCore.dylib
├── Info.plist
├── MacOS
│   └── SwiftOnly
├── PkgInfo
└── Resources
└── libswiftRemoteMirror.dylib
```
When I try to run the output I get a dynamic linking error. I can reproduce 
this by adding MACOSX_BUNDLE to `./Tests/SwiftOnly/CMakeLists.txt` (in the 
CMake source tree) in `add_executable` and trying to run the result.

```
% ./Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly
dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: 
.../Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly
  Reason: image not found
zsh: abort  ./Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly
```

It seems that the rpath should be set to `@loader_path/../Frameworks`. I am not 
a Swift maestro so not exactly sure on the details of how this works. After 
running `install_name_tool -add_rpath "@loader_path/../Frameworks" 
./Tests/SwiftOnly/Debug/SwiftOnly.app/Contents/MacOS/SwiftOnly` it runs fine.

Does anyone have any idea what to do? Is it a missing CMake Swift feature? We 
are currently working around it by manually adding the rpath with a cmake step.

Harry

Harry Mallon

Senior Software Engineer

[Image removed by sender.]

T +44 203 7000 989

60 Poland Street | London | England | W1F 7NT
[Image removed by sender.]

Three Billboards

Blade Runner 2049

 I, Tonya


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake