Re: [CMake] CMAKE_OSX_DEPLOYMENT_TARGET vs CMAKE_OSX_SYSROOT

2016-09-21 Thread James Turner

> On 20 Sep 2016, at 16:00, Braden McDaniel  wrote:
> 
> When setting CMAKE_OSX_SYSROOT to the unversioned directory name (using Xcode 
> 8, as it happens) and setting CMAKE_OSX_DEPLOYMENT_TARGET, I get this error:
> 
> 
> -- The CXX compiler identification is AppleClang 8.0.0.838
> CMake Error at 
> /Applications/CMake.app/Contents/share/cmake-3.6/Modules/Platform/Darwin.cmake:76
>  (message):
> CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but CMAKE_OSX_SYSROOT:
> 
> "/Applications/Xcode-8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
> 
> is not set to a MacOSX SDK with a recognized version. Either set
> CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
> empty.
> Call Stack (most recent call first):
> /Applications/CMake.app/Contents/share/cmake-3.6/Modules/CMakeSystemSpecificInformation.cmake:36
>  (include)
> CMakeLists.txt:37 (project)
> 
> 
> I'm able to suppress the error by using the versioned (symlink) directory; 
> but isn't the premise of this error message invalid? As I understand it, 
> since Xcode 7 (or perhaps earlier?), there is no requirement that the 
> deployment target match the SDK version.

I’m seeing a similar error when setting CMAKE_OSX_DEPLOYMENT_TARGET to 10.7 
with XCode 8, and leaving CMAKE_OSX_SYSROOT unset. I’m couldn’t identify where 
(from  Modules/Platform/Darwin.cmake) the detected value of _CMAKE_OSX_SYSROOT 
is computed. (I don’t wish to explicitly set it)

Kind regards,
James



smime.p7s
Description: S/MIME cryptographic signature
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] CPack [NSIS] Install directory per component

2016-09-21 Thread Roman Wüger
Hello,

Per default the install directory for a
component is $INSTDIR.

Is there a chance to change the install dir per component?

Thanks
Roman
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake

[Cmake-commits] CMake branch, master, updated. v3.6.2-1106-g63fbcd6

2016-09-21 Thread Brad King
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  63fbcd6799e9d2786c6862a6cb41931543bfbff2 (commit)
   via  501f9c93671cdbed546bb92382240cc704cf6e6a (commit)
   via  144a24dcdcbb075d60d31171e0bda0654e613287 (commit)
  from  0ebd7554bc836009e405ac818f367ff175ce9fc5 (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=63fbcd6799e9d2786c6862a6cb41931543bfbff2
commit 63fbcd6799e9d2786c6862a6cb41931543bfbff2
Merge: 0ebd755 501f9c9
Author: Brad King 
AuthorDate: Wed Sep 21 08:47:42 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 08:47:42 2016 -0400

Merge topic 'ninja-implicit-outputs'

501f9c93 cmGlobalNinjaGenerator: Add API to check for implicit outputs 
support
144a24dc cmGlobalNinjaGenerator: Teach WriteBuild about implicit outputs


---

Summary of changes:
 Source/cmGlobalNinjaGenerator.cxx   |   34 ---
 Source/cmGlobalNinjaGenerator.h |3 +++
 Source/cmNinjaNormalTargetGenerator.cxx |9 +---
 Source/cmNinjaTargetGenerator.cxx   |5 +++--
 4 files changed, 39 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.6.2-1103-g0ebd755

2016-09-21 Thread Brad King
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  0ebd7554bc836009e405ac818f367ff175ce9fc5 (commit)
   via  7b5f85677c8aa067a5fef1cc68f4d8c8600693fa (commit)
   via  1777570fe5eb194d930f6716865bc909269da57e (commit)
  from  ca4eec29f916aa0af38378afd6a32f669bb12aae (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=0ebd7554bc836009e405ac818f367ff175ce9fc5
commit 0ebd7554bc836009e405ac818f367ff175ce9fc5
Merge: ca4eec2 7b5f856
Author: Brad King 
AuthorDate: Wed Sep 21 08:47:39 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 08:47:39 2016 -0400

Merge topic 'refactor-fortran-module-dir-lookup'

7b5f8567 Fortran: Use module dir flag if needed for default module directory
1777570f cmGeneratorTarget: Refactor Fortran module directory lookup


---

Summary of changes:
 Source/cmGeneratorTarget.cxx |   22 +-
 Source/cmGeneratorTarget.h   |5 +++--
 Source/cmLocalCommonGenerator.cxx|3 ++-
 Source/cmMakefileTargetGenerator.cxx |6 +-
 4 files changed, 27 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.6.2-1097-g68f7a47

2016-09-21 Thread Brad King
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  68f7a476e78089ff83a3945431908a57106fb59a (commit)
   via  cb851a7c1285537ef9e6cee174a49000e047bee9 (commit)
  from  37c1863764d338f87700be7b082b9814f95d7393 (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=68f7a476e78089ff83a3945431908a57106fb59a
commit 68f7a476e78089ff83a3945431908a57106fb59a
Merge: 37c1863 cb851a7
Author: Brad King 
AuthorDate: Wed Sep 21 08:47:33 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 08:47:33 2016 -0400

Merge topic 'runcmake-cpack-test-framework-fix'

cb851a7c Tests: Fix RunCMake.CPack test infrastructure after logical 
conflict


---

Summary of changes:
 Tests/RunCMake/CPack/CPackTestHelpers.cmake |   87 ++-
 1 file changed, 17 insertions(+), 70 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.6.2-1100-gca4eec2

2016-09-21 Thread Brad King
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  ca4eec29f916aa0af38378afd6a32f669bb12aae (commit)
   via  3876e2976ed5ca7b2505decb22b3b001944fd027 (commit)
   via  9783ed1e6eaf87bea54633599a2025026343bbc9 (commit)
  from  68f7a476e78089ff83a3945431908a57106fb59a (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=ca4eec29f916aa0af38378afd6a32f669bb12aae
commit ca4eec29f916aa0af38378afd6a32f669bb12aae
Merge: 68f7a47 3876e29
Author: Brad King 
AuthorDate: Wed Sep 21 08:47:36 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 08:47:36 2016 -0400

Merge topic 'update-kwsys'

3876e297 Merge branch 'upstream-KWSys' into update-kwsys
9783ed1e KWSys 2016-09-20 (3f69ac40)


---

Summary of changes:
 Source/kwsys/testConsoleBuf.cxx  |  225 +-
 Source/kwsys/testConsoleBuf.hxx  |3 +-
 Source/kwsys/testConsoleBufChild.cxx |   14 ++-
 3 files changed, 175 insertions(+), 67 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.6.2-1119-g2c2ffd3

2016-09-21 Thread Brad King
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  2c2ffd3874f749979d723d7a788d45e3830952d6 (commit)
   via  adf1e32fa2da7a7131e65809fe20111b9611e87d (commit)
   via  d328dc6853e211dc05c4abcf62cc64b9c91235a2 (commit)
   via  9ac2e189607433b45b252a1e2261ccfaf11e492b (commit)
  from  eca2af6e66343c51389f6605df79f7e6ce60cf37 (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=2c2ffd3874f749979d723d7a788d45e3830952d6
commit 2c2ffd3874f749979d723d7a788d45e3830952d6
Merge: eca2af6 adf1e32
Author: Brad King 
AuthorDate: Wed Sep 21 08:47:51 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 08:47:51 2016 -0400

Merge topic 'ctest-capture-error'

adf1e32f Help: Add notes for topic 'ctest-capture-error'
d328dc68 CTest: Add CAPTURE_CMAKE_ERROR val to `ctest_*` commands
9ac2e189 ctest_coverage: If gcov is not found just warn, not error


---

Summary of changes:
 Help/command/ctest_build.rst   |5 +
 Help/command/ctest_configure.rst   |7 +-
 Help/command/ctest_coverage.rst|5 +
 Help/command/ctest_test.rst|5 +
 Help/command/ctest_upload.rst  |6 +-
 Help/release/dev/ctest-capture-error.rst   |8 ++
 Source/CTest/cmCTestCoverageHandler.cxx|3 +-
 Source/CTest/cmCTestHandlerCommand.cxx |  112 +++-
 Source/CTest/cmCTestHandlerCommand.h   |1 +
 Source/CTest/cmCTestUploadCommand.cxx  |8 ++
 Source/CTest/cmCTestUploadCommand.h|1 +
 Tests/RunCMake/CMakeLists.txt  |1 +
 .../CMakeLists.txt.in  |0
 .../CTestCaptureErrorNonZero-stderr.txt|4 +
 .../CTestCaptureErrorZero-stderr.txt   |4 +
 .../CTestCaptureErrorZero-stdout.txt   |1 +
 .../CTestConfig.cmake.in   |0
 .../CoverageQuiet-stdout.txt   |0
 .../RunCMakeTest.cmake |2 +-
 .../test.cmake.in  |   12 ++-
 20 files changed, 172 insertions(+), 13 deletions(-)
 create mode 100644 Help/release/dev/ctest-capture-error.rst
 copy Tests/RunCMake/{ctest_coverage => ctest_cmake_error}/CMakeLists.txt.in 
(100%)
 create mode 100644 
Tests/RunCMake/ctest_cmake_error/CTestCaptureErrorNonZero-stderr.txt
 create mode 100644 
Tests/RunCMake/ctest_cmake_error/CTestCaptureErrorZero-stderr.txt
 create mode 100644 
Tests/RunCMake/ctest_cmake_error/CTestCaptureErrorZero-stdout.txt
 copy Tests/RunCMake/{ctest_coverage => ctest_cmake_error}/CTestConfig.cmake.in 
(100%)
 copy Tests/RunCMake/{ctest_coverage => 
ctest_cmake_error}/CoverageQuiet-stdout.txt (100%)
 copy Tests/RunCMake/{ctest_coverage => ctest_cmake_error}/RunCMakeTest.cmake 
(70%)
 copy Tests/RunCMake/{ctest_coverage => ctest_cmake_error}/test.cmake.in (70%)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.6.2-1115-geca2af6

2016-09-21 Thread Brad King
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  eca2af6e66343c51389f6605df79f7e6ce60cf37 (commit)
   via  4fb2b41a58fa3bd82649d8b19ecbe038e594e753 (commit)
   via  537efe0561ef6a690fd7aac34ce1e4a46614f2e4 (commit)
   via  ca7799482cbbb38b667fd5d045a0fc95d09a8cf2 (commit)
   via  70b8ba9a0f4403729b9d68719503243982b883f4 (commit)
  from  1657fa0795fe6109780593a265a240d9ef73ef77 (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=eca2af6e66343c51389f6605df79f7e6ce60cf37
commit eca2af6e66343c51389f6605df79f7e6ce60cf37
Merge: 1657fa0 4fb2b41
Author: Brad King 
AuthorDate: Wed Sep 21 08:47:48 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 08:47:48 2016 -0400

Merge topic 'cmake-server-more-info'

4fb2b41a server-mode: Add debug support
537efe05 server-mode: Report Messages from cmake to clients
ca779948 server-mode: Automate progress reporting
70b8ba9a cmake-server: Use consistent constant naming style


---

Summary of changes:
 Help/manual/cmake-server.7.rst |   49 
 Source/cmServer.cxx|  171 
 Source/cmServer.h  |   14 +++-
 Source/cmServerProtocol.cxx|   21 ++---
 Source/cmServerProtocol.h  |   10 ++-
 5 files changed, 219 insertions(+), 46 deletions(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.6.2-1110-g1657fa0

2016-09-21 Thread Brad King
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  1657fa0795fe6109780593a265a240d9ef73ef77 (commit)
   via  df4aeb312148128469c43d064dcd8eb27b82960f (commit)
   via  b5ac8b8aa778c7ad612a20deb04a2efafa386d9d (commit)
   via  bdcc1f517ed8a513f8c156d83f0244c1b9e98703 (commit)
  from  63fbcd6799e9d2786c6862a6cb41931543bfbff2 (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=1657fa0795fe6109780593a265a240d9ef73ef77
commit 1657fa0795fe6109780593a265a240d9ef73ef77
Merge: 63fbcd6 df4aeb3
Author: Brad King 
AuthorDate: Wed Sep 21 08:47:45 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 08:47:45 2016 -0400

Merge topic 'fortran-submodules'

df4aeb31 Help: Add notes for topic 'fortran-submodules'
b5ac8b8a Fortran: Add support for submodule syntax in dependency scanning
bdcc1f51 cmFortranParser: Skip module procedures/functions/subroutines


---

Summary of changes:
 Help/release/dev/fortran-submodules.rst |7 +
 Source/cmFortranLexer.cxx   |  535 +++--
 Source/cmFortranLexer.h |2 +-
 Source/cmFortranLexer.in.l  |7 +-
 Source/cmFortranParser.cxx  |  556 +--
 Source/cmFortranParser.y|   26 +-
 Source/cmFortranParserTokens.h  |   50 +--
 7 files changed, 660 insertions(+), 523 deletions(-)
 create mode 100644 Help/release/dev/fortran-submodules.rst


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.6.2-2346-g01c4baa

2016-09-21 Thread Brad King
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, next has been updated
   via  01c4baa07c8dd13d9efdcead8750964322efef4c (commit)
   via  2c2ffd3874f749979d723d7a788d45e3830952d6 (commit)
   via  eca2af6e66343c51389f6605df79f7e6ce60cf37 (commit)
   via  1657fa0795fe6109780593a265a240d9ef73ef77 (commit)
   via  63fbcd6799e9d2786c6862a6cb41931543bfbff2 (commit)
   via  0ebd7554bc836009e405ac818f367ff175ce9fc5 (commit)
   via  ca4eec29f916aa0af38378afd6a32f669bb12aae (commit)
   via  68f7a476e78089ff83a3945431908a57106fb59a (commit)
   via  37c1863764d338f87700be7b082b9814f95d7393 (commit)
  from  689a431e907879bc181ac450af0dde56c4c6c5a9 (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=01c4baa07c8dd13d9efdcead8750964322efef4c
commit 01c4baa07c8dd13d9efdcead8750964322efef4c
Merge: 689a431 2c2ffd3
Author: Brad King 
AuthorDate: Wed Sep 21 08:48:02 2016 -0400
Commit: Brad King 
CommitDate: Wed Sep 21 08:48:02 2016 -0400

Merge branch 'master' into next


---

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
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.6.2-2350-g132255b

2016-09-21 Thread Brad King
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, next has been updated
   via  132255bfb6e1e00ed121e544f902323f44cb8cfe (commit)
   via  431d1dcc4b658141a045cdc44348a3525af1fe24 (commit)
  from  aa70241e58025d750ddca67f37426d5f0ddf4331 (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=132255bfb6e1e00ed121e544f902323f44cb8cfe
commit 132255bfb6e1e00ed121e544f902323f44cb8cfe
Merge: aa70241 431d1dc
Author: Brad King 
AuthorDate: Wed Sep 21 13:02:02 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 13:02:02 2016 -0400

Merge topic 'cmake-server-pipes' into next

431d1dcc server-mode: Introduce cmServerConnection


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=431d1dcc4b658141a045cdc44348a3525af1fe24
commit 431d1dcc4b658141a045cdc44348a3525af1fe24
Author: Tobias Hunger 
AuthorDate: Fri Sep 9 10:01:44 2016 +0200
Commit: Tobias Hunger 
CommitDate: Wed Sep 21 17:53:15 2016 +0200

server-mode: Introduce cmServerConnection

Use it to split pipe and stdin/out handling out of cmServer itself.

The server will shut down when it looses its connection to the client.
This has the nice property that a crashing client will cause the server
to terminate as the OS will close the connection on behave of the client.

diff --git a/Help/manual/cmake-server.7.rst b/Help/manual/cmake-server.7.rst
index 75aa0ee..00ffcd1 100644
--- a/Help/manual/cmake-server.7.rst
+++ b/Help/manual/cmake-server.7.rst
@@ -49,12 +49,16 @@ Operation
 Start :manual:`cmake(1)` in the server command mode, supplying the path to
 the build directory to process::
 
-  cmake -E server
+  cmake -E server (--debug|--pipe )
 
-The server will start up and reply with an hello message on stdout::
+The server will communicate using stdin/stdout (with the ``--debug`` parameter)
+or using a named pipe (with the ``--pipe `` parameter).
+
+When connecting to the server (via named pipe or by starting it in ``--debug``
+mode), the server will reply with a hello message::
 
   [== CMake Server ==[
-  {"supportedProtocolVersions":[{"major":0,"minor":1}],"type":"hello"}
+  {"supportedProtocolVersions":[{"major":1,"minor":0}],"type":"hello"}
   ]== CMake Server ==]
 
 Messages sent to and from the process are wrapped in magic strings::
@@ -65,7 +69,8 @@ Messages sent to and from the process are wrapped in magic 
strings::
   }
   ]== CMake Server ==]
 
-The server is now ready to accept further requests via stdin.
+The server is now ready to accept further requests via the named pipe
+or stdin.
 
 
 Debugging
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index a2dead6..5e136e4 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -789,6 +789,7 @@ target_link_libraries(cmake CMakeLib)
 if(CMake_HAVE_SERVER_MODE)
   add_library(CMakeServerLib
 cmServer.cxx cmServer.h
+cmServerConnection.cxx cmServerConnection.h
 cmServerProtocol.cxx cmServerProtocol.h
 )
   target_link_libraries(CMakeServerLib CMakeLib)
diff --git a/Source/cmServer.cxx b/Source/cmServer.cxx
index be001a7..56cd7ba 100644
--- a/Source/cmServer.cxx
+++ b/Source/cmServer.cxx
@@ -13,6 +13,7 @@
 
 #include "cmServer.h"
 
+#include "cmServerConnection.h"
 #include "cmServerProtocol.h"
 #include "cmSystemTools.h"
 #include "cmVersionMacros.h"
@@ -40,57 +41,6 @@ static const std::string kMESSAGE_TYPE = "message";
 static const std::string kSTART_MAGIC = "[== CMake Server ==[";
 static const std::string kEND_MAGIC = "]== CMake Server ==]";
 
-typedef struct
-{
-  uv_write_t req;
-  uv_buf_t buf;
-} write_req_t;
-
-void alloc_buffer(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf)
-{
-  (void)handle;
-  *buf = uv_buf_init(static_cast(malloc(suggested_size)),
- static_cast(suggested_size));
-}
-
-void free_write_req(uv_write_t* req)
-{
-  write_req_t* wr = reinterpret_cast(req);
-  free(wr->buf.base);
-  free(wr);
-}
-
-void on_stdout_write(uv_write_t* req, int status)
-{
-  (void)status;
-  auto server = reinterpret_cast(req->data);
-  free_write_req(req);
-  server->PopOne();
-}
-
-void write_data(uv_stream_t* dest, std::string content, uv_write_cb cb)
-{
-  write_req_t* req = static_cast(malloc(sizeof(write_req_t)));
-  req->req.data = dest->data;
-  req->buf = uv_buf_init(static_cast(malloc(content.size())),
- static_cast(content.size()));
-  memcpy(req->buf.base, content.c_str(), content.size());
-  

Re: [cmake-developers] [MODERN] CMake 3.6+ vs Qt 5.7 vs MSVC2015

2016-09-21 Thread Konstantin Podsvirov
Hi all! CMake Master (Win32/Win64) updated! :-)

It's time to upgrade: CMake 3.6.20160921 now available!

"CMake Master" - is himself created (IFW generator) online installer for CMake 
users and developers.

23.06.2016, 19:38, "Konstantin Podsvirov" :
> Let me remind you of the link.
>
> Windows 32bit:
>
> http://ifw.podsvirov.pro/cmake/cmake-master-win32-online.exe
>
> Windows 64bit:
>
> http://ifw.podsvirov.pro/cmake/cmake-master-win64-online.exe
>
> If you have used it before, you can update via "CMake Maintenance Tool"
>
> I used Windows 7, but it should work for Windows Vista and Windows 8 and 
> Windows 10.
>
> I ask those wishing to test the functionality.
>
> Please test it :-)

Pay your attention:

Added new component "CMake Developer Reference" - Doxygen based source code 
reference.
You can install it by online installer in HTML and Qt Compressed Help formats 
or preview it
in your browser online at http://ifw.podsvirov.pro/cmake/doc/doxygen/

    01.10.2015, 09:29, Konstantin Podsvirov" :
> Hi all! Modern master alive! :-)
>
> It's been almost a month and it's time to upgrade:
>
> 3.3.20150901 CMake => CMake 3.3.20151001
>
> Dear friends, I have a question and call for help.
>
> With my assistance the project has an option for component 
> installation project:
>
> CMake_INSTALL_COMPONENTS
>
> Unfortunately not all files found your component.
> The files to be installed without specifying a component fall into 
> 'Unspecified' component.
> Need to parse them out and assign them to the component context.
>
> Now have the components:
>
> - cmake;
> - ctest;
> - cpack;
> - cmake-gui;
> - sphinx-man;
> - sphinx-html;
> - sphinx singlehtml;
> - sphinx-qthelp
>
> and General for everything else
>
> Is Unspecified;
>
> A list of unaccounted for 'Unspecified' of files to install on the 
> Window is attached.
>
> Links to the installers were specified earlier (see below).
>
> On 28.07.2015, 17:49, "Konstantin Podsvirov" 
> :
>> Hi dear CMake developers!
>>
>> 27.07.2015, 18:52, "Brad King" :
>>> On 07/24/2015 03:46 AM, Konstantin Podsvirov wrote:
 To solve the problem you run cmake-gui is now possible with the
 the following changes:
>>>
>>> Applied as two separate commits with minor tweaks:
>>>
>>> cmake-gui: Install Qt5 Windows platform plugin
>>> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=42f0155b
>>>
>>> CMake: Add option CMake_INSTALL_DEPENDENCIES
>>> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=068e7962
>>
>> Code now in 'master' branch.
>>
>> Thanks, Brad!
>>
>> Meet/install/CMake built modern update on MSVC2015 c QtDialog based 
>> on Qt 5.5 from today :-)
>>
>> Windows 32bit:
>>
>> http://ifw.podsvirov.pro/cmake/cmake-master-win32-online.exe
>>
>> Windows 64bit:
>>
>> http://ifw.podsvirov.pro/cmake/cmake-master-win64-online.exe
>>
>> cmake-gui should work now, but if not, then update your system and 
>> install
>>
>> The Visual C++ Redistributable for Visual Studio 2015 from the link 
>> below:
>>
>> http://www.microsoft.com/en-us/download/details.aspx?id=48145
>>
>> As always, questions and suggestions are welcome.
>
> --
> Regards,
> Konstantin Podsvirov
> ,--
>
> 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:
> http://public.kitware.com/mailman/listinfo/cmake-developers

    Regards,
    Konstantin Podsvirov
>>
>>  Regards,
>>  Konstantin Podsvirov
>>  --
>>
>>  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 

[Cmake-commits] CMake branch, next, updated. v3.6.2-2352-ge893a4c

2016-09-21 Thread Brad King
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, next has been updated
   via  e893a4c791898dc49281d04dc56a0354afc6ca1a (commit)
   via  e2e7e5be65c5e69086ebca8d7f0229f8134b8d27 (commit)
  from  132255bfb6e1e00ed121e544f902323f44cb8cfe (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=e893a4c791898dc49281d04dc56a0354afc6ca1a
commit e893a4c791898dc49281d04dc56a0354afc6ca1a
Merge: 132255b e2e7e5b
Author: Brad King 
AuthorDate: Wed Sep 21 13:09:01 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Wed Sep 21 13:09:01 2016 -0400

Merge topic 'cmake-server-pipes' into next

e2e7e5be fixup! server-mode: Introduce cmServerConnection


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e2e7e5be65c5e69086ebca8d7f0229f8134b8d27
commit e2e7e5be65c5e69086ebca8d7f0229f8134b8d27
Author: Brad King 
AuthorDate: Wed Sep 21 13:08:50 2016 -0400
Commit: Brad King 
CommitDate: Wed Sep 21 13:08:50 2016 -0400

fixup! server-mode: Introduce cmServerConnection

diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index c14faa7..9daed4b 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -956,6 +956,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector& 
args)
   }
 #else
   static_cast(supportExperimental);
+  static_cast(isDebug);
   cmSystemTools::Error("CMake was not built with server mode enabled");
   return 1;
 #endif

---

Summary of changes:
 Source/cmcmd.cxx |1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, master, updated. v3.6.2-1120-g555ef1e

2016-09-21 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  555ef1e235e62236870b27adb1b6c384313bd792 (commit)
  from  2c2ffd3874f749979d723d7a788d45e3830952d6 (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=555ef1e235e62236870b27adb1b6c384313bd792
commit 555ef1e235e62236870b27adb1b6c384313bd792
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Thu Sep 22 00:01:04 2016 -0400
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Thu Sep 22 00:01:04 2016 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index d725626..68c9a6d 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 6)
-set(CMake_VERSION_PATCH 20160921)
+set(CMake_VERSION_PATCH 20160922)
 #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
http://public.kitware.com/mailman/listinfo/cmake-commits


Re: [cmake-developers] Security in CMake

2016-09-21 Thread Egor Pugin
Hi,

For those who may be interested I will leave this message here.

Mentioned package (dependency) manager is C++ Archive Network.
https://cppan.org/

It generates CMakeLists.txt from specification files.
It manages packages' dependencies, versions, different OSs (it's
crossplatform from very beginning), handles crossplatform builds very
easy (build will inherit your current project settings and
autocrossplaform all deps). All builds are cached too - you build your
dependency only once. Static/shared mt/md 32/64 deb/rel/... different
toolchains (vc11, vc12,vc14, clangX.X, gcc-X) are handled and
supported out of the box (with help of CMake).
It also stores sources on its site, so they shouldn't be lost.
And more to come.

I've added a lot of popular packages. I didn't do much advertisement
yet, so cppan is used only by a few people/projects at the moment.
In my 'to add' list of big and very known projects: opencv (near
future), qt (qt-lite?, ~ end of 2016).
I'm adding small projects from time to time.

Feel free to contact me here or privately.

On 22 August 2016 at 20:52, Egor Pugin  wrote:
> Hi Chuck,
>
>> Is this intended to run on Linux?
>
> Yes. And thanks for the pointing out to SELinux. I'll add it to my checklist.
>
> ---
>
> The system is on very early stages now, so its parts are changing
> rapidly and I'm able to consider different approaches to its
> subsystems (including security).
> But I probably confused all of you with the words 'package manager'.
> It's the package manager only in the narrow sense. It's not trying to
> be another apt, yum etc. Sorry that I didn't provide much details, but
> the original topic is very precise and I think I'll return to it a bit
> later when the functionality of the system will be in more stable
> state.
>
>
> On 22 August 2016 at 20:17, Chuck Atkins  wrote:
>> Hi Egor,
>> Is this intended to run on Linux?  If so, I think you're FAR better off
>> leveraging an existing security framework like SELinux, since it's actually
>> designed from the ground up to enforce these types of controls.  You could
>> define a label that you place on the executables run by the package manager
>> and then enforce whatever restrictions and controls you feel are
>> appropriate. This will let you do things like block network access got the
>> specific CMake executable used by the package system.  It allows the CMake
>> scripts to leverage all the available language and command features but
>> deny, ant a system level, actions you deem unsafe or harmful.
>>
>> --
>> Chuck Atkins
>> Staff R Engineer, Scientific Computing
>> Kitware, Inc.
>>
>>
>> On Sun, Aug 21, 2016 at 2:02 PM, Egor Pugin  wrote:
>>>
>>> > What is the attack you want to stop? What are bad scripts and commands
>>> > in this context?
>>>
>>> I wrote them in the first message. For example,
>>> - any cmake commands that use COMMAND keyword (execute_process(COMMAND
>>> ...), add_custom_{command|target}(...) etc. This will deny any user
>>> scripts, programs (wget, curl, rm, ...).
>>> - download commands (CMake's builtin curl) - they can fill the drives
>>> with trash.
>>>
>>> > CMake runs lots of commands all the time. Most can be changed by a user,
>>> > many are changed by the generator based on environment and whatnot. Any of
>>> > these may be bad commands -- based on configuration.
>>>
>>> Yes, and it should deny only stuff above in small CMakeLists.txt part
>>> that will be protected with some other commands or policies.
>>>
>>> > But if CMake gets a secure mode for your generator and if that is merged
>>> > upstream, then I need to know about that when reading or writing
>>> > CMakeLists.txt.
>>>
>>> For the moment I'm just asking about possibility of implementation of
>>> these features. Any decision will go from CMake guys, not from me. So,
>>> you shouldn't ask me about it. :)
>>>
>>> > Generated code is safe only as long as you very tightly control the
>>> > environment CMake runs in.
>>>
>>> I don't care what is around, what is in user env. This is his
>>> responsibility. I'm just worrying for my parts of CMake stuff.
>>>
>>> On 21 August 2016 at 20:43, Tobias Hunger  wrote:
>>> > Hi Egor,
>>> >
>>> > Am 21.08.2016 12:34 schrieb "Egor Pugin" :
>>> >>
>>> >> > What are the attack scenarios you want to defend against? What should
>>> >> > not be possible in your system that currently is in CMake?
>>> >>
>>> >> At least downloading or executing bad scripts and commands.
>>> >
>>> > What is the attack you want to stop? What are bad scripts and commands
>>> > in
>>> > this context?
>>> >
>>> > CMake runs lots of commands all the time. Most can be changed by a user,
>>> > many are changed by the generator based on environment and whatnot. Any
>>> > of
>>> > these may be bad commands -- based on configuration.
>>> >
>>> > Downloading can be done using internal commands or by running e.g. 

[cmake-developers] CPack [NSIS] Install directory per component

2016-09-21 Thread Roman Wüger
Hello,

Per default the install directory for a
component is $INSTDIR.

Is there a chance to change the install dir per component?

Thanks
Roman
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers