[Cmake-commits] CMake branch, master, updated. v3.7.0-rc1-224-gac5b80e

2016-10-14 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  ac5b80e76c102d43749555c9bc888f9ac9b7436e (commit)
  from  0d818632978a450f1afaf687c867e62e885457f7 (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=ac5b80e76c102d43749555c9bc888f9ac9b7436e
commit ac5b80e76c102d43749555c9bc888f9ac9b7436e
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Sat Oct 15 00:01:10 2016 -0400
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Sat Oct 15 00:01:10 2016 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 662ba9f..f52fe69 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 7)
-set(CMake_VERSION_PATCH 20161014)
+set(CMake_VERSION_PATCH 20161015)
 #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] Single Letter Omissions From File Path In Linker

2016-10-14 Thread Zan Lynx
On 10/14/2016 08:04 AM, Randy Turner wrote:
> As you can see, the file path is missing a "t" in the first occurrence
> of the word "iterator" and so that file definitely does not exist. A
> file exists in the location with correct spelling, but somehow that
> hardcoded path in that temporary file has dropped a letter. The specific
> letter that gets dropped varies along with which file is allegedly missing.

If this was all happening on the same computer I would suspect a
hardware error in the RAM and I'd recommend running a night-long memory
test.

If this is happening on several different machines, then I don't know.
It could be something that is manipulating the path name with a regular
expression, or otherwise editing it.

If the missing letters were immediately after a back-slash (\) then I'd
suspect improper escape handling. But that doesn't seem to be it either.
-- 

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, next, updated. v3.7.0-rc1-492-g2af5a40

2016-10-14 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  2af5a4054363955c94feeb26d6b33bdcc2dc5736 (commit)
   via  3823ed3ab7a4ae1b0663ae89608386d03cc6709a (commit)
  from  c7a826a42d0d31dc494da0c07ba23af24b152554 (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=2af5a4054363955c94feeb26d6b33bdcc2dc5736
commit 2af5a4054363955c94feeb26d6b33bdcc2dc5736
Merge: c7a826a 3823ed3
Author: Brad King 
AuthorDate: Fri Oct 14 15:42:03 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 15:42:03 2016 -0400

Merge topic 'doc-math-EXPR' into next

3823ed3a Help: Fix math(EXPR) documentation formatting


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3823ed3ab7a4ae1b0663ae89608386d03cc6709a
commit 3823ed3ab7a4ae1b0663ae89608386d03cc6709a
Author: Brad King 
AuthorDate: Fri Oct 14 15:41:03 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 15:41:49 2016 -0400

Help: Fix math(EXPR) documentation formatting

diff --git a/Help/command/math.rst b/Help/command/math.rst
index d4deb16..f99dc3d 100644
--- a/Help/command/math.rst
+++ b/Help/command/math.rst
@@ -5,9 +5,10 @@ Mathematical expressions.
 
 ::
 
-  math(EXPR  )
+  math(EXPR  )
 
 ``EXPR`` evaluates mathematical expression and returns result in the
-output variable.  Example mathematical expression is '5 * ( 10 + 13
-)'.  Supported operators are + - * / % | & ^ ~ << >> * / %.  They have
-the same meaning as they do in C code.
+output variable.  Example mathematical expression is ``5 * (10 + 13)``.
+Supported operators are ``+``, ``-``, ``*``, ``/``, ``%``, ``|``, ``&``,
+``^``, ``~``, ``<<``, ``>>``, and ``(...)``.  They have the same meaning
+as they do in C code.

---

Summary of changes:
 Help/command/math.rst |9 +
 1 file changed, 5 insertions(+), 4 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, next, updated. v3.7.0-rc1-490-gc7a826a

2016-10-14 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  c7a826a42d0d31dc494da0c07ba23af24b152554 (commit)
   via  78b00f1d10f5bb0a152d7825ef554836b52f7977 (commit)
  from  e0a44b614ced7559f596649ac159f35bc65aa35d (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=c7a826a42d0d31dc494da0c07ba23af24b152554
commit c7a826a42d0d31dc494da0c07ba23af24b152554
Merge: e0a44b6 78b00f1
Author: Brad King 
AuthorDate: Fri Oct 14 14:46:06 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 14:46:06 2016 -0400

Merge topic 'doc-clarify-ctest-APPEND' into next

78b00f1d Help: Clarify `ctest_*` APPEND option behavior


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=78b00f1d10f5bb0a152d7825ef554836b52f7977
commit 78b00f1d10f5bb0a152d7825ef554836b52f7977
Author: Brad King 
AuthorDate: Fri Oct 14 14:42:48 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 14:43:46 2016 -0400

Help: Clarify `ctest_*` APPEND option behavior

Explicitly state that this marks the `.xml` to tell the dashboard
server to append it to previously submitted results and that it
does not cause results to be appended to the `.xml` file.

diff --git a/Help/command/ctest_build.rst b/Help/command/ctest_build.rst
index d3ceb2d..55bb4a3 100644
--- a/Help/command/ctest_build.rst
+++ b/Help/command/ctest_build.rst
@@ -30,9 +30,11 @@ The options are:
   :variable:`CTEST_BINARY_DIRECTORY` variable is used.
 
 ``APPEND``
-  Mark results for append to those previously submitted to a
+  Mark ``Build.xml`` for append to results previously submitted to a
   dashboard server since the last :command:`ctest_start` call.
   Append semantics are defined by the dashboard server in use.
+  This does *not* cause results to be appended to a ``.xml`` file
+  produced by a previous call to this command.
 
 ``CONFIGURATION ``
   Specify the build configuration (e.g. ``Debug``).  If not
diff --git a/Help/command/ctest_configure.rst b/Help/command/ctest_configure.rst
index b11e77c..2dea07b 100644
--- a/Help/command/ctest_configure.rst
+++ b/Help/command/ctest_configure.rst
@@ -23,9 +23,11 @@ The options are:
   :variable:`CTEST_SOURCE_DIRECTORY` variable is used.
 
 ``APPEND``
-  Mark results for append to those previously submitted to a
+  Mark ``Configure.xml`` for append to results previously submitted to a
   dashboard server since the last :command:`ctest_start` call.
   Append semantics are defined by the dashboard server in use.
+  This does *not* cause results to be appended to a ``.xml`` file
+  produced by a previous call to this command.
 
 ``OPTIONS ``
   Specify command-line arguments to pass to the configuration tool.
diff --git a/Help/command/ctest_coverage.rst b/Help/command/ctest_coverage.rst
index ec1ee25..8d27b9c 100644
--- a/Help/command/ctest_coverage.rst
+++ b/Help/command/ctest_coverage.rst
@@ -22,9 +22,11 @@ The options are:
   :variable:`CTEST_BINARY_DIRECTORY` variable is used.
 
 ``APPEND``
-  Mark results for append to those previously submitted to a
+  Mark ``Coverage.xml`` for append to results previously submitted to a
   dashboard server since the last :command:`ctest_start` call.
   Append semantics are defined by the dashboard server in use.
+  This does *not* cause results to be appended to a ``.xml`` file
+  produced by a previous call to this command.
 
 ``LABELS``
   Filter the coverage report to include only source files labeled
diff --git a/Help/command/ctest_test.rst b/Help/command/ctest_test.rst
index 551bc58..ce50d42 100644
--- a/Help/command/ctest_test.rst
+++ b/Help/command/ctest_test.rst
@@ -32,9 +32,11 @@ The options are:
   :variable:`CTEST_BINARY_DIRECTORY` variable is used.
 
 ``APPEND``
-  Mark results for append to those previously submitted to a
+  Mark ``Test.xml`` for append to results previously submitted to a
   dashboard server since the last :command:`ctest_start` call.
   Append semantics are defined by the dashboard server in use.
+  This does *not* cause results to be appended to a ``.xml`` file
+  produced by a previous call to this command.
 
 ``START ``
   Specify the beginning of a range of test numbers.

---

Summary of changes:
 Help/command/ctest_build.rst |4 +++-
 Help/command/ctest_configure.rst |4 +++-
 Help/command/ctest_coverage.rst  |4 +++-
 Help/command/ctest_test.rst  |4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
CMake

Re: [CMake] Force copy of files

2016-10-14 Thread David Cole via CMake
"copy" should always overwrite.

"copy_if_different" will conditionally overwrite, only if the contents
of the two files are different.

If "copy" was not overwriting something when it should have been,
please send steps to reproduce the issue, because that would be a bug.


HTH,
David C.



On Fri, Oct 14, 2016 at 1:47 PM, Aaron Boxer  wrote:
> Never mind, figured this one out:
>
> use copy_if_different
>
> On Fri, Oct 14, 2016 at 1:34 PM, Aaron Boxer  wrote:
>>
>> I have the following lines in my cmake file
>>
>>
>> foreach(f ${MyFiles})
>>   add_custom_command(TARGET ${OPENJPEG_PLUGIN_NAME} PRE_BUILD
>>  COMMAND ${CMAKE_COMMAND} -E
>>  copy ${f} $)
>> endforeach()
>>
>> in order to copy MyFiles to MyFolder.
>>
>>
>> If these files already exist, I would like copy to overwrite the old file.
>> Is there a flag to pass to copy to force this to overwrite?
>>
>> Thanks!
>> Aaron
>
>
>
> --
>
> 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
-- 

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


Re: [CMake] Force copy of files

2016-10-14 Thread Aaron Boxer
Never mind, figured this one out:

use copy_if_different

On Fri, Oct 14, 2016 at 1:34 PM, Aaron Boxer  wrote:

> I have the following lines in my cmake file
>
>
> foreach(f ${MyFiles})
>   add_custom_command(TARGET ${OPENJPEG_PLUGIN_NAME} PRE_BUILD
>  COMMAND ${CMAKE_COMMAND} -E
>  copy ${f} $)
> endforeach()
>
> in order to copy MyFiles to MyFolder.
>
>
> If these files already exist, I would like copy to overwrite the old file.
> Is there a flag to pass to copy to force this to overwrite?
>
> Thanks!
> Aaron
>
-- 

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] Force copy of files

2016-10-14 Thread Aaron Boxer
I have the following lines in my cmake file


foreach(f ${MyFiles})
  add_custom_command(TARGET ${OPENJPEG_PLUGIN_NAME} PRE_BUILD
 COMMAND ${CMAKE_COMMAND} -E
 copy ${f} $)
endforeach()

in order to copy MyFiles to MyFolder.


If these files already exist, I would like copy to overwrite the old file.
Is there a flag to pass to copy to force this to overwrite?

Thanks!
Aaron
-- 

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

Re: [CMake] Single Letter Omissions From File Path In Linker

2016-10-14 Thread Bill Hoffman

On 10/14/2016 10:04 AM, Randy Turner wrote:

Hello! I've been running into a frustrating issue on and off for the
past year. The project will build the source files correctly but when it
comes to linking the executables, I always get the same error. The
specific file varies, but the failure mode is always the same. For example:


"C:\\Users\\User\\AppData\\Local\\Temp\\", line
xxx: error #10008-D: cannot find file
"C:/Repos/operatingsystem/CMakeFiles/nvm_validate_ierator.dir/os/nvm/nvm_validate_iterator.c.obj"

As you can see, the file path is missing a "t" in the first occurrence
of the word "iterator" and so that file definitely does not exist. A
file exists in the location with correct spelling, but somehow that
hardcoded path in that temporary file has dropped a letter. The specific
letter that gets dropped varies along with which file is allegedly
missing. We noticed that requiring people to store the repository in
their root directory greatly cut down on the occurrence of this issue
but it is returning with more frequency as of late. Once it occurs once,
CMake builds are never successful again and the only way that I have
been able to completely clear the problem has been to reinstall Windows
and set up the build environment again.

Has anyone else seen this issue? Is there a way to change the directory
for those linker files so that they're not in the Temp folder?

What generator are you using?  What version of CMake?

-Bill

--

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, release, updated. v3.7.0-rc1-46-ga975b21

2016-10-14 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, release has been updated
   via  a975b21cecc1ce45eeca9dc1b2103268f508317a (commit)
   via  20278872e3d8145f4aa81ea6cde01144daa3ca8f (commit)
   via  2d6fba67804ffcdeb1ca95198aacb326dd8fc4e7 (commit)
   via  933e54d3ccf59fd756997752a041ee84e5f85897 (commit)
   via  f6386a768e98b77a0128ac2aac4d07e241b17da4 (commit)
   via  9977899df2c6c7687353882eff01150546ef42a9 (commit)
   via  1a64962b7cf100fae2db569d2444e2b060787c1c (commit)
   via  6e5a3655cac2937861b1f1f1e66ac7c1fa41c626 (commit)
  from  d0255d55e1228f6f7133eb36053bd474fb6ae884 (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 -
---

Summary of changes:
 Modules/FindIce.cmake  |1 +
 Source/cmMakefileExecutableTargetGenerator.cxx |4 ++--
 Source/cmMakefileLibraryTargetGenerator.cxx|4 ++--
 Source/cmNinjaNormalTargetGenerator.cxx|   10 ++
 Source/cmNinjaTargetGenerator.cxx  |2 +-
 Tests/Framework/CMakeLists.txt |5 +
 6 files changed, 17 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, next, updated. v3.7.0-rc1-488-ge0a44b6

2016-10-14 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  e0a44b614ced7559f596649ac159f35bc65aa35d (commit)
   via  0d818632978a450f1afaf687c867e62e885457f7 (commit)
   via  a975b21cecc1ce45eeca9dc1b2103268f508317a (commit)
   via  2d6fba67804ffcdeb1ca95198aacb326dd8fc4e7 (commit)
   via  f6386a768e98b77a0128ac2aac4d07e241b17da4 (commit)
   via  1a64962b7cf100fae2db569d2444e2b060787c1c (commit)
  from  ee304e8a3b7e3eae55cbf7ef06589f27441c1bf8 (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=e0a44b614ced7559f596649ac159f35bc65aa35d
commit e0a44b614ced7559f596649ac159f35bc65aa35d
Merge: ee304e8 0d81863
Author: Brad King 
AuthorDate: Fri Oct 14 10:55:46 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 10:55:46 2016 -0400

Merge branch 'master' into next


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0d818632978a450f1afaf687c867e62e885457f7
commit 0d818632978a450f1afaf687c867e62e885457f7
Merge: a8513d8 a975b21
Author: Brad King 
AuthorDate: Fri Oct 14 10:55:31 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 10:55:31 2016 -0400

Merge branch 'release'


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a975b21cecc1ce45eeca9dc1b2103268f508317a
commit a975b21cecc1ce45eeca9dc1b2103268f508317a
Merge: 2d6fba6 2027887
Author: Brad King 
AuthorDate: Thu Oct 13 14:09:43 2016 -0400
Commit: Brad King 
CommitDate: Thu Oct 13 14:09:43 2016 -0400

Merge branch 'ninja-framework-POST_BUILD' into release


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2d6fba67804ffcdeb1ca95198aacb326dd8fc4e7
commit 2d6fba67804ffcdeb1ca95198aacb326dd8fc4e7
Merge: f6386a7 933e54d
Author: Brad King 
AuthorDate: Thu Oct 13 13:38:28 2016 -0400
Commit: Brad King 
CommitDate: Thu Oct 13 13:38:28 2016 -0400

Merge branch 'backport-LINK_WHAT_YOU_USE-allow-OFF' into release


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f6386a768e98b77a0128ac2aac4d07e241b17da4
commit f6386a768e98b77a0128ac2aac4d07e241b17da4
Merge: 1a64962 9977899
Author: Brad King 
AuthorDate: Thu Oct 13 13:15:46 2016 -0400
Commit: Brad King 
CommitDate: Thu Oct 13 13:15:46 2016 -0400

Merge branch 'ninja-rc-regression' into release


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1a64962b7cf100fae2db569d2444e2b060787c1c
commit 1a64962b7cf100fae2db569d2444e2b060787c1c
Merge: d0255d5 6e5a365
Author: Brad King 
AuthorDate: Thu Oct 13 08:20:08 2016 -0400
Commit: Brad King 
CommitDate: Thu Oct 13 08:20:08 2016 -0400

Merge branch 'ice-3.6.3' into release


---

Summary of changes:


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.7.0-rc1-223-g0d81863

2016-10-14 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  0d818632978a450f1afaf687c867e62e885457f7 (commit)
   via  a975b21cecc1ce45eeca9dc1b2103268f508317a (commit)
   via  2d6fba67804ffcdeb1ca95198aacb326dd8fc4e7 (commit)
   via  f6386a768e98b77a0128ac2aac4d07e241b17da4 (commit)
   via  1a64962b7cf100fae2db569d2444e2b060787c1c (commit)
  from  a8513d8a80dbf654915a3176673e7f7ef544a957 (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 -
---

Summary of changes:


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


Re: [CMake] Single Letter Omissions From File Path In Linker

2016-10-14 Thread Andrew Bell
On Fri, Oct 14, 2016 at 9:04 AM, Randy Turner 
wrote:

> Hello! I've been running into a frustrating issue on and off for the past
> year. The project will build the source files correctly but when it comes
> to linking the executables, I always get the same error. The specific file
> varies, but the failure mode is always the same. For example:
>
> 
> "C:\\Users\\User\\AppData\\Local\\Temp\\", line xxx:
> error #10008-D: cannot find file
> "C:/Repos/operatingsystem/CMakeFiles/nvm_validate_ierator.
> dir/os/nvm/nvm_validate_iterator.c.obj"
>
> As you can see, the file path is missing a "t" in the first occurrence of
> the word "iterator" and so that file definitely does not exist. A file
> exists in the location with correct spelling, but somehow that hardcoded
> path in that temporary file has dropped a letter. The specific letter that
> gets dropped varies along with which file is allegedly missing. We noticed
> that requiring people to store the repository in their root directory
> greatly cut down on the occurrence of this issue but it is returning with
> more frequency as of late. Once it occurs once, CMake builds are never
> successful again and the only way that I have been able to completely clear
> the problem has been to reinstall Windows and set up the build environment
> again.
>

This seems really, really strange.  Have to reinstall Windows?  What about
just using another build directory?  It sure *seems* like there's some
problem in your CMakeFiles.txt where the way the filepath is being
constructed is incorrect.  But I don't think you've really provided enough
information to determine the problem.  Where does the name of the object
file come from?

-- 
Andrew Bell
andrew.bell...@gmail.com
-- 

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] Single Letter Omissions From File Path In Linker

2016-10-14 Thread Randy Turner
Hello! I've been running into a frustrating issue on and off for the past
year. The project will build the source files correctly but when it comes
to linking the executables, I always get the same error. The specific file
varies, but the failure mode is always the same. For example:


"C:\\Users\\User\\AppData\\Local\\Temp\\", line xxx:
error #10008-D: cannot find file
"C:/Repos/operatingsystem/CMakeFiles/nvm_validate_ierator.dir/os/nvm/nvm_
validate_iterator.c.obj"

As you can see, the file path is missing a "t" in the first occurrence of
the word "iterator" and so that file definitely does not exist. A file
exists in the location with correct spelling, but somehow that hardcoded
path in that temporary file has dropped a letter. The specific letter that
gets dropped varies along with which file is allegedly missing. We noticed
that requiring people to store the repository in their root directory
greatly cut down on the occurrence of this issue but it is returning with
more frequency as of late. Once it occurs once, CMake builds are never
successful again and the only way that I have been able to completely clear
the problem has been to reinstall Windows and set up the build environment
again.

Has anyone else seen this issue? Is there a way to change the directory for
those linker files so that they're not in the Temp folder?
-- 

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, next, updated. v3.7.0-rc1-482-gee304e8

2016-10-14 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  ee304e8a3b7e3eae55cbf7ef06589f27441c1bf8 (commit)
   via  70e268da3e5f8e00bdf065786cd685a9660fe1c4 (commit)
   via  47092d3e809be971264a8d5416ff3cb9255f6565 (commit)
   via  7db671a14374fdbfb8ae87ab9618bca111f4e8a5 (commit)
  from  1ed28ad0edd0e85f7d4a03be5c0d38bf36203437 (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=ee304e8a3b7e3eae55cbf7ef06589f27441c1bf8
commit ee304e8a3b7e3eae55cbf7ef06589f27441c1bf8
Merge: 1ed28ad 70e268d
Author: Brad King 
AuthorDate: Fri Oct 14 09:46:39 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:46:39 2016 -0400

Merge topic 'cmcldeps-more-safety' into next

70e268da cmcldeps: prefer the /TC flag
47092d3e cmcldeps: append strings as strings
7db671a1 cmcldeps: search for single-byte strings as characters


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=70e268da3e5f8e00bdf065786cd685a9660fe1c4
commit 70e268da3e5f8e00bdf065786cd685a9660fe1c4
Author: Ben Boeckel 
AuthorDate: Thu Oct 13 12:48:37 2016 -0400
Commit: Ben Boeckel 
CommitDate: Fri Oct 14 09:27:43 2016 -0400

cmcldeps: prefer the /TC flag

The /TC flag causes all source files to be processed as C source files.
We know that there is only one, so this is safe.

diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index bfbb5fd..b86ad6e 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -279,12 +279,7 @@ int main()
 clrest = replace(clrest, "/fo", "/out:");
 clrest = replace(clrest, objfile, objfile + ".dep.obj ");
 
-// rc: src\x\x.rc  ->  cl: /Tc src\x\x.rc
-if (srcfile.find(' ') != std::string::npos)
-  srcfile = "\"" + srcfile + "\"";
-clrest = replace(clrest, srcfile, "/Tc " + srcfile);
-
-cl = "\"" + cl + "\" /P /DRC_INVOKED ";
+cl = "\"" + cl + "\" /P /DRC_INVOKED /TC ";
 
 // call cl in object dir so the .i is generated there
 std::string objdir;

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=47092d3e809be971264a8d5416ff3cb9255f6565
commit 47092d3e809be971264a8d5416ff3cb9255f6565
Author: Ben Boeckel 
AuthorDate: Thu Oct 13 12:48:24 2016 -0400
Commit: Ben Boeckel 
CommitDate: Fri Oct 14 09:27:43 2016 -0400

cmcldeps: append strings as strings

diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index aed67b9..bfbb5fd 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -205,7 +205,7 @@ static int process(const std::string& srcfilename, const 
std::string& dfile,
   std::vector command;
   for (std::vector::iterator i = args.begin(); i != args.end();
++i) {
-command.push_back(i->c_str());
+command.push_back(*i);
   }
   // run the command
   int exit_code = 0;

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7db671a14374fdbfb8ae87ab9618bca111f4e8a5
commit 7db671a14374fdbfb8ae87ab9618bca111f4e8a5
Author: Ben Boeckel 
AuthorDate: Thu Oct 13 12:47:50 2016 -0400
Commit: Ben Boeckel 
CommitDate: Fri Oct 14 09:27:43 2016 -0400

cmcldeps: search for single-byte strings as characters

diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index 167d60a..aed67b9 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -258,7 +258,7 @@ int main()
   // needed to suppress filename output of msvc tools
   std::string srcfilename;
   {
-std::string::size_type pos = srcfile.rfind("\\");
+std::string::size_type pos = srcfile.rfind('\\');
 if (pos == std::string::npos) {
   srcfilename = srcfile;
 } else {
@@ -280,7 +280,7 @@ int main()
 clrest = replace(clrest, objfile, objfile + ".dep.obj ");
 
 // rc: src\x\x.rc  ->  cl: /Tc src\x\x.rc
-if (srcfile.find(" ") != std::string::npos)
+if (srcfile.find(' ') != std::string::npos)
   srcfile = "\"" + srcfile + "\"";
 clrest = replace(clrest, srcfile, "/Tc " + srcfile);
 

---

Summary of changes:
 Source/cmcldeps.cxx |   11 +++
 1 file changed, 3 insertions(+), 8 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, next, updated. v3.7.0-rc1-478-g1ed28ad

2016-10-14 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  1ed28ad0edd0e85f7d4a03be5c0d38bf36203437 (commit)
   via  a8513d8a80dbf654915a3176673e7f7ef544a957 (commit)
  from  ed05c2d38e4a9224b0d2978c7f6eea8278598dd3 (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=1ed28ad0edd0e85f7d4a03be5c0d38bf36203437
commit 1ed28ad0edd0e85f7d4a03be5c0d38bf36203437
Merge: ed05c2d a8513d8
Author: Brad King 
AuthorDate: Fri Oct 14 09:25:43 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 09:25:43 2016 -0400

Merge branch 'master' into next


---

Summary of changes:


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.7.0-rc1-218-ga8513d8

2016-10-14 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  a8513d8a80dbf654915a3176673e7f7ef544a957 (commit)
   via  d079e71c290c3c55a2db5180953daf014a964c25 (commit)
   via  779939a00ebc21419404737f2fc2b34e7775f086 (commit)
  from  eb923da2c41ab811a6adec44ef87f3aa8bd26849 (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=a8513d8a80dbf654915a3176673e7f7ef544a957
commit a8513d8a80dbf654915a3176673e7f7ef544a957
Merge: eb923da d079e71
Author: Brad King 
AuthorDate: Fri Oct 14 09:25:34 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:25:34 2016 -0400

Merge topic 'vs-host-x64-tools'

d079e71c VS: Provide an option to use x64 host tools
779939a0 Help: Document VS and Xcode toolset selection


---

Summary of changes:
 Help/generator/VS_TOOLSET_HOST_ARCH.txt|   10 ++
 Help/generator/Visual Studio 10 2010.rst   |7 
 Help/generator/Visual Studio 11 2012.rst   |7 
 Help/generator/Visual Studio 12 2013.rst   |9 +
 Help/generator/Visual Studio 14 2015.rst   |9 +
 Help/generator/Visual Studio 15.rst|9 +
 Help/generator/Xcode.rst   |7 
 Help/manual/OPTIONS_BUILD.txt  |   11 +++---
 Help/manual/cmake-variables.7.rst  |1 +
 Help/release/dev/vs-host-x64-tools.rst |7 
 ...CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst |   10 ++
 Modules/CMakeDetermineCompilerId.cmake |5 +++
 Modules/CompilerId/VS-10.vcxproj.in|3 ++
 Source/cmGlobalVisualStudio10Generator.cxx |   37 +++-
 Source/cmGlobalVisualStudio10Generator.h   |5 +++
 Source/cmGlobalVisualStudio12Generator.cxx |   15 
 Source/cmGlobalVisualStudio12Generator.h   |3 ++
 Source/cmGlobalXCodeGenerator.cxx  |   13 +++
 Source/cmVisualStudio10TargetGenerator.cxx |9 +
 .../BadToolsetHostArch-result.txt} |0
 .../GeneratorToolset/BadToolsetHostArch-stderr.txt |   10 ++
 .../BadToolsetHostArch.cmake}  |0
 Tests/RunCMake/GeneratorToolset/RunCMakeTest.cmake |   15 
 .../TestToolsetHostArchBoth-stdout.txt |2 ++
 .../GeneratorToolset/TestToolsetHostArchBoth.cmake |2 ++
 .../TestToolsetHostArchNone-stdout.txt |2 ++
 .../GeneratorToolset/TestToolsetHostArchNone.cmake |2 ++
 .../TestToolsetHostArchOnly-stdout.txt |2 ++
 .../GeneratorToolset/TestToolsetHostArchOnly.cmake |2 ++
 29 files changed, 207 insertions(+), 7 deletions(-)
 create mode 100644 Help/generator/VS_TOOLSET_HOST_ARCH.txt
 create mode 100644 Help/release/dev/vs-host-x64-tools.rst
 create mode 100644 
Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst
 copy Tests/RunCMake/{Android/BadSYSROOT-result.txt => 
GeneratorToolset/BadToolsetHostArch-result.txt} (100%)
 create mode 100644 
Tests/RunCMake/GeneratorToolset/BadToolsetHostArch-stderr.txt
 copy Tests/RunCMake/{GeneratorPlatform/BadPlatform.cmake => 
GeneratorToolset/BadToolsetHostArch.cmake} (100%)
 create mode 100644 
Tests/RunCMake/GeneratorToolset/TestToolsetHostArchBoth-stdout.txt
 create mode 100644 
Tests/RunCMake/GeneratorToolset/TestToolsetHostArchBoth.cmake
 create mode 100644 
Tests/RunCMake/GeneratorToolset/TestToolsetHostArchNone-stdout.txt
 create mode 100644 
Tests/RunCMake/GeneratorToolset/TestToolsetHostArchNone.cmake
 create mode 100644 
Tests/RunCMake/GeneratorToolset/TestToolsetHostArchOnly-stdout.txt
 create mode 100644 
Tests/RunCMake/GeneratorToolset/TestToolsetHostArchOnly.cmake


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.7.0-rc1-474-gfd1f119

2016-10-14 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  fd1f119877d70c15ff420b7ae63d6a518386aeaf (commit)
   via  7490ae768d8e709a7778ae25a13484e8fd09871c (commit)
  from  2b1e5125bb08ba16a8c9a18a48adc67a4df0b8d7 (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=fd1f119877d70c15ff420b7ae63d6a518386aeaf
commit fd1f119877d70c15ff420b7ae63d6a518386aeaf
Merge: 2b1e512 7490ae7
Author: Brad King 
AuthorDate: Fri Oct 14 09:22:19 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:22:19 2016 -0400

Merge topic 'vs-host-x64-tools' into next

7490ae76 fixup! VS: Provide an option to use x64 host tools


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7490ae768d8e709a7778ae25a13484e8fd09871c
commit 7490ae768d8e709a7778ae25a13484e8fd09871c
Author: Brad King 
AuthorDate: Fri Oct 14 09:21:40 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 09:21:40 2016 -0400

fixup! VS: Provide an option to use x64 host tools

diff --git a/Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst 
b/Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst
index 2af3a93..4c04e97 100644
--- a/Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst
+++ b/Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst
@@ -1,12 +1,10 @@
 CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
 ---
 
-Visual Studio preferred tool architecture (``x64`` or empty).
+Visual Studio preferred tool architecture.
 
 The :ref:`Visual Studio Generators` for VS 2013 and above support optional
 selection of a 64-bit toolchain on 64-bit hosts by specifying a ``host=64``
-value in the :variable:`CMAKE_GENERATOR_TOOLSET` option.  The value of this
-variable indicates the selected toolchain architecture preference.  Note
-that this is only a preference specified in the generated project files.
-MSBuild may still choose a different tool architecture, such as when on
-a 32-bit host.
+value in the :variable:`CMAKE_GENERATOR_TOOLSET` option.  CMake provides
+the selected toolchain architecture preference in this variable (either
+``x64`` or empty).

---

Summary of changes:
 .../variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst |   10 --
 1 file changed, 4 insertions(+), 6 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, next, updated. v3.7.0-rc1-476-ged05c2d

2016-10-14 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  ed05c2d38e4a9224b0d2978c7f6eea8278598dd3 (commit)
   via  d079e71c290c3c55a2db5180953daf014a964c25 (commit)
  from  fd1f119877d70c15ff420b7ae63d6a518386aeaf (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=ed05c2d38e4a9224b0d2978c7f6eea8278598dd3
commit ed05c2d38e4a9224b0d2978c7f6eea8278598dd3
Merge: fd1f119 d079e71
Author: Brad King 
AuthorDate: Fri Oct 14 09:22:45 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:22:45 2016 -0400

Merge topic 'vs-host-x64-tools' into next

d079e71c VS: Provide an option to use x64 host tools


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d079e71c290c3c55a2db5180953daf014a964c25
commit d079e71c290c3c55a2db5180953daf014a964c25
Author: Brad King 
AuthorDate: Fri Oct 7 15:57:04 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 09:22:26 2016 -0400

VS: Provide an option to use x64 host tools

Visual Studio provides toolchains that are themselves built for 32-bit
or 64-bit host architectures.  By default it uses the 32-bit tools, but
it can be told to prefer the 64-bit tools on 64-bit hosts.  Extend the
`CMAKE_GENERATOR_TOOLSET` specification to provide a way to request
use of the 64-bit host tools.

Closes: #15622

diff --git a/Help/generator/VS_TOOLSET_HOST_ARCH.txt 
b/Help/generator/VS_TOOLSET_HOST_ARCH.txt
new file mode 100644
index 000..58e9223
--- /dev/null
+++ b/Help/generator/VS_TOOLSET_HOST_ARCH.txt
@@ -0,0 +1,10 @@
+For each toolset that comes with this version of Visual Studio, there are
+variants that are themselves compiled for 32-bit (x86) and 64-bit (x64) hosts
+(independent of the architecture they target).  By default Visual Studio
+chooses the 32-bit variant even on a 64-bit host.  One may request use of the
+64-bit host tools by adding ``host=x64`` to the toolset specification:
+
+``host=x64``
+  Select the 64-bit variant of the default toolset.
+``,host=x64``
+  Select the 64-bit variant of the  toolset.
diff --git a/Help/generator/Visual Studio 12 2013.rst b/Help/generator/Visual 
Studio 12 2013.rst
index c7358b9..5071b20 100644
--- a/Help/generator/Visual Studio 12 2013.rst  
+++ b/Help/generator/Visual Studio 12 2013.rst  
@@ -24,3 +24,5 @@ Toolset Selection
 The ``v120`` toolset that comes with Visual Studio 12 2013 is selected by
 default.  The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
 via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
+
+.. include:: VS_TOOLSET_HOST_ARCH.txt
diff --git a/Help/generator/Visual Studio 14 2015.rst b/Help/generator/Visual 
Studio 14 2015.rst
index 0d776e9..64254b5 100644
--- a/Help/generator/Visual Studio 14 2015.rst  
+++ b/Help/generator/Visual Studio 14 2015.rst  
@@ -21,3 +21,5 @@ Toolset Selection
 The ``v140`` toolset that comes with Visual Studio 14 2015 is selected by
 default.  The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
 via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
+
+.. include:: VS_TOOLSET_HOST_ARCH.txt
diff --git a/Help/generator/Visual Studio 15.rst b/Help/generator/Visual Studio 
15.rst
index 5bd1882..2eb9052 100644
--- a/Help/generator/Visual Studio 15.rst   
+++ b/Help/generator/Visual Studio 15.rst   
@@ -21,3 +21,5 @@ Toolset Selection
 The ``v141`` toolset that comes with Visual Studio 15 is selected by
 default.  The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
 via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
+
+.. include:: VS_TOOLSET_HOST_ARCH.txt
diff --git a/Help/manual/cmake-variables.7.rst 
b/Help/manual/cmake-variables.7.rst
index f76c467..ef7f0c0 100644
--- a/Help/manual/cmake-variables.7.rst
+++ b/Help/manual/cmake-variables.7.rst
@@ -82,6 +82,7 @@ Variables that Provide Information
/variable/CMAKE_VS_NsightTegra_VERSION
/variable/CMAKE_VS_PLATFORM_NAME
/variable/CMAKE_VS_PLATFORM_TOOLSET
+   /variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
/variable/CMAKE_XCODE_PLATFORM_TOOLSET
/variable/PROJECT_BINARY_DIR
diff --git a/Help/release/dev/vs-host-x64-tools.rst 
b/Help/release/dev/vs-host-x64-tools.rst
new file mode 100644
index 000..e42881a
--- /dev/null
+++ b/Help/release/dev/vs-host-x64-tools.rst
@@ -0,0 +1,7 @@
+vs-host-x64-tools
+-
+
+* The :ref:`Visual Studio Generators` for VS 2013 and above learned to
+  support a 

[Cmake-commits] CMake branch, next, updated. v3.7.0-rc1-472-g2b1e512

2016-10-14 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  2b1e5125bb08ba16a8c9a18a48adc67a4df0b8d7 (commit)
   via  eb923da2c41ab811a6adec44ef87f3aa8bd26849 (commit)
   via  02946e0b956061092c2406ed94ab3d9a0beeaffb (commit)
   via  8b496672fe0ae641bcb45aec04094db9987732bb (commit)
   via  dabd17792215535bdbc0fc5ad032e2a59e7505d2 (commit)
   via  03622ee2d0947b01a56527ea34cbe43fb9c8eba6 (commit)
   via  f0579e2fda1922f32efbf3e2b160cc004aafd99a (commit)
   via  4c921e5c7b8170b95ba13c33e0f8ae21dd78055e (commit)
  from  14ab1e900306331d66ab6ef384cf1cc2f85dab1b (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=2b1e5125bb08ba16a8c9a18a48adc67a4df0b8d7
commit 2b1e5125bb08ba16a8c9a18a48adc67a4df0b8d7
Merge: 14ab1e9 eb923da
Author: Brad King 
AuthorDate: Fri Oct 14 09:03:05 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 09:03:05 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, master, updated. v3.7.0-rc1-208-g8b49667

2016-10-14 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  8b496672fe0ae641bcb45aec04094db9987732bb (commit)
   via  19ffc0729fdc12b8c0874db7ae1c5e576b48ba10 (commit)
  from  dabd17792215535bdbc0fc5ad032e2a59e7505d2 (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=8b496672fe0ae641bcb45aec04094db9987732bb
commit 8b496672fe0ae641bcb45aec04094db9987732bb
Merge: dabd177 19ffc07
Author: Brad King 
AuthorDate: Fri Oct 14 09:02:45 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:02:45 2016 -0400

Merge topic 'st2-exclude-patterns-variable'

19ffc072 Sublime: Exclude build tree from source tree project only 
optionally


---

Summary of changes:
 Help/manual/cmake-variables.7.rst |1 +
 Help/release/dev/st2-exclude-patterns-variable.rst|7 +++
 Help/variable/CMAKE_SUBLIME_TEXT_2_EXCLUDE_BUILD_TREE.rst |7 +++
 Source/cmExtraSublimeTextGenerator.cxx|   11 +--
 Source/cmExtraSublimeTextGenerator.h  |2 ++
 5 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100644 Help/release/dev/st2-exclude-patterns-variable.rst
 create mode 100644 Help/variable/CMAKE_SUBLIME_TEXT_2_EXCLUDE_BUILD_TREE.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, master, updated. v3.7.0-rc1-206-gdabd177

2016-10-14 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  dabd17792215535bdbc0fc5ad032e2a59e7505d2 (commit)
   via  20278872e3d8145f4aa81ea6cde01144daa3ca8f (commit)
  from  03622ee2d0947b01a56527ea34cbe43fb9c8eba6 (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=dabd17792215535bdbc0fc5ad032e2a59e7505d2
commit dabd17792215535bdbc0fc5ad032e2a59e7505d2
Merge: 03622ee 2027887
Author: Brad King 
AuthorDate: Fri Oct 14 09:02:43 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:02:43 2016 -0400

Merge topic 'ninja-framework-POST_BUILD'

20278872 Ninja: Fix POST_BUILD commands on macOS Frameworks


---

Summary of changes:
 Source/cmNinjaNormalTargetGenerator.cxx |6 --
 Tests/Framework/CMakeLists.txt  |5 +
 2 files changed, 9 insertions(+), 2 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.7.0-rc1-202-gf0579e2

2016-10-14 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  f0579e2fda1922f32efbf3e2b160cc004aafd99a (commit)
   via  2f79b22ce049a15e4d4190bbe5e80a3bad9492e8 (commit)
   via  33cb0173d5ebcde2a8621edaa66f8401133d5cc9 (commit)
   via  933e54d3ccf59fd756997752a041ee84e5f85897 (commit)
  from  4c921e5c7b8170b95ba13c33e0f8ae21dd78055e (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=f0579e2fda1922f32efbf3e2b160cc004aafd99a
commit f0579e2fda1922f32efbf3e2b160cc004aafd99a
Merge: 4c921e5 2f79b22
Author: Brad King 
AuthorDate: Fri Oct 14 09:02:36 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:02:36 2016 -0400

Merge topic 'LINK_WHAT_YOU_USE-allow-OFF'

2f79b22c Merge branch 'backport-LINK_WHAT_YOU_USE-allow-OFF' into 
LINK_WHAT_YOU_USE-allow-OFF
33cb0173 Honor LINK_WHAT_YOU_USE when set to OFF
933e54d3 Honor LINK_WHAT_YOU_USE when set to OFF


---

Summary of changes:
 Source/cmMakefileExecutableTargetGenerator.cxx |4 ++--
 Source/cmMakefileLibraryTargetGenerator.cxx|4 ++--
 Source/cmNinjaNormalTargetGenerator.cxx|4 ++--
 3 files changed, 6 insertions(+), 6 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.7.0-rc1-204-g03622ee

2016-10-14 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  03622ee2d0947b01a56527ea34cbe43fb9c8eba6 (commit)
   via  9977899df2c6c7687353882eff01150546ef42a9 (commit)
  from  f0579e2fda1922f32efbf3e2b160cc004aafd99a (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=03622ee2d0947b01a56527ea34cbe43fb9c8eba6
commit 03622ee2d0947b01a56527ea34cbe43fb9c8eba6
Merge: f0579e2 9977899
Author: Brad King 
AuthorDate: Fri Oct 14 09:02:40 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:02:40 2016 -0400

Merge topic 'ninja-rc-regression'

9977899d Ninja: Fix RC language depfile generation with cmcldeps


---

Summary of changes:
 Source/cmNinjaTargetGenerator.cxx |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, master, updated. v3.7.0-rc1-215-geb923da

2016-10-14 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  eb923da2c41ab811a6adec44ef87f3aa8bd26849 (commit)
   via  39b08858f676f0251898ffc7601ad216bb87ae21 (commit)
  from  02946e0b956061092c2406ed94ab3d9a0beeaffb (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=eb923da2c41ab811a6adec44ef87f3aa8bd26849
commit eb923da2c41ab811a6adec44ef87f3aa8bd26849
Merge: 02946e0 39b0885
Author: Brad King 
AuthorDate: Fri Oct 14 09:02:51 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:02:51 2016 -0400

Merge topic 'flush-archive-list'

39b08858 cmSystemTools: Flush output buffer for list_item_verbose


---

Summary of changes:
 Source/cmSystemTools.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.7.0-rc1-213-g02946e0

2016-10-14 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  02946e0b956061092c2406ed94ab3d9a0beeaffb (commit)
   via  08b9a0fdfa02f50e6ae2aeca1963e8f47d041dd2 (commit)
   via  ca4029fa9aada8e5d86eb81cc5ef9c7e9efe7715 (commit)
   via  2e242b5c1e6b24e4ed59692b9338e295b792f70e (commit)
   via  6699d46a2a7f12d35926def3e4db3c7a0a5f7449 (commit)
  from  8b496672fe0ae641bcb45aec04094db9987732bb (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=02946e0b956061092c2406ed94ab3d9a0beeaffb
commit 02946e0b956061092c2406ed94ab3d9a0beeaffb
Merge: 8b49667 08b9a0f
Author: Brad King 
AuthorDate: Fri Oct 14 09:02:48 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:02:48 2016 -0400

Merge topic 'FindBoost-minor-cleanup'

08b9a0fd FindBoost: Simplify library dir detection with cascading 
if/elseif/else
ca4029fa FindBoost: Minor style updates
2e242b5c FindBoost: Use list(INSERT) to simplify suffix list generation
6699d46a FindBoost: Use string(APPEND) in more cases


---

Summary of changes:
 Modules/FindBoost.cmake |   24 +++-
 1 file changed, 11 insertions(+), 13 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, next, updated. v3.7.0-rc1-464-g14ab1e9

2016-10-14 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  14ab1e900306331d66ab6ef384cf1cc2f85dab1b (commit)
   via  3f9274f610a957bf9186365a212a50a6785acbed (commit)
  from  750906500d08cff001762412c2f307022836a879 (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=14ab1e900306331d66ab6ef384cf1cc2f85dab1b
commit 14ab1e900306331d66ab6ef384cf1cc2f85dab1b
Merge: 7509065 3f9274f
Author: Brad King 
AuthorDate: Fri Oct 14 09:01:50 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 09:01:50 2016 -0400

Merge topic 'vs-host-x64-tools' into next

3f9274f6 fixup! VS: Provide an option to use x64 host tools


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3f9274f610a957bf9186365a212a50a6785acbed
commit 3f9274f610a957bf9186365a212a50a6785acbed
Author: Brad King 
AuthorDate: Fri Oct 14 09:01:34 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 09:01:34 2016 -0400

fixup! VS: Provide an option to use x64 host tools

diff --git a/Help/manual/cmake-variables.7.rst 
b/Help/manual/cmake-variables.7.rst
index f76c467..ef7f0c0 100644
--- a/Help/manual/cmake-variables.7.rst
+++ b/Help/manual/cmake-variables.7.rst
@@ -82,6 +82,7 @@ Variables that Provide Information
/variable/CMAKE_VS_NsightTegra_VERSION
/variable/CMAKE_VS_PLATFORM_NAME
/variable/CMAKE_VS_PLATFORM_TOOLSET
+   /variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
/variable/CMAKE_XCODE_PLATFORM_TOOLSET
/variable/PROJECT_BINARY_DIR
diff --git a/Help/release/dev/vs-host-x64-tools.rst 
b/Help/release/dev/vs-host-x64-tools.rst
new file mode 100644
index 000..e42881a
--- /dev/null
+++ b/Help/release/dev/vs-host-x64-tools.rst
@@ -0,0 +1,7 @@
+vs-host-x64-tools
+-
+
+* The :ref:`Visual Studio Generators` for VS 2013 and above learned to
+  support a ``host=x64`` option in the :variable:`CMAKE_GENERATOR_TOOLSET`
+  value (e.g.  via the :manual:`cmake(1)` ``-T`` option) to request use
+  of a VS 64-bit toolchain on 64-bit hosts.
diff --git a/Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst 
b/Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst
new file mode 100644
index 000..2af3a93
--- /dev/null
+++ b/Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst
@@ -0,0 +1,12 @@
+CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
+---
+
+Visual Studio preferred tool architecture (``x64`` or empty).
+
+The :ref:`Visual Studio Generators` for VS 2013 and above support optional
+selection of a 64-bit toolchain on 64-bit hosts by specifying a ``host=64``
+value in the :variable:`CMAKE_GENERATOR_TOOLSET` option.  The value of this
+variable indicates the selected toolchain architecture preference.  Note
+that this is only a preference specified in the generated project files.
+MSBuild may still choose a different tool architecture, such as when on
+a 32-bit host.

---

Summary of changes:
 Help/manual/cmake-variables.7.rst  |1 +
 Help/release/dev/vs-host-x64-tools.rst |7 +++
 .../CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.rst|   12 
 3 files changed, 20 insertions(+)
 create mode 100644 Help/release/dev/vs-host-x64-tools.rst
 create mode 100644 
Help/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE.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.7.0-rc1-462-g7509065

2016-10-14 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  750906500d08cff001762412c2f307022836a879 (commit)
   via  2ef26ebebf2a405f342ed8623a185ec1bd4b4b38 (commit)
  from  0be1721b533ae213fc255aeb5063f3dee204c8d2 (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=750906500d08cff001762412c2f307022836a879
commit 750906500d08cff001762412c2f307022836a879
Merge: 0be1721 2ef26eb
Author: Brad King 
AuthorDate: Fri Oct 14 08:44:03 2016 -0400
Commit: CMake Topic Stage 
CommitDate: Fri Oct 14 08:44:03 2016 -0400

Merge topic 'consoleBuf' into next

2ef26ebe Revert "Enable Unicode output to Windows consoles"


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2ef26ebebf2a405f342ed8623a185ec1bd4b4b38
commit 2ef26ebebf2a405f342ed8623a185ec1bd4b4b38
Author: Brad King 
AuthorDate: Fri Oct 14 08:43:23 2016 -0400
Commit: Brad King 
CommitDate: Fri Oct 14 08:43:23 2016 -0400

Revert "Enable Unicode output to Windows consoles"

This reverts commit 4551b1ae134a3d1f6c7a30a9b941000a466a11ef.
It causes RunCMake.IncludeWhatYouUse to fail with Ninja on
Windows.  This needs to be investigated and fixed first.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1bc4b4e..b8a635f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -260,7 +260,6 @@ macro (CMAKE_BUILD_UTILITIES)
   set(KWSYS_USE_MD5 1)
   set(KWSYS_USE_Process 1)
   set(KWSYS_USE_CommandLineArguments 1)
-  set(KWSYS_USE_ConsoleBuf 1)
   set(KWSYS_HEADER_ROOT ${CMake_BINARY_DIR}/Source)
   set(KWSYS_INSTALL_DOC_DIR "${CMAKE_DOC_DIR}")
   add_subdirectory(Source/kwsys)
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 1e9bb0f..a3281ab 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -17,9 +17,6 @@
 
 #include 
 #include 
-#if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE)
-#include 
-#endif
 #include 
 #include 
 #include 
@@ -87,11 +84,6 @@ int cpackDefinitionArgument(const char* argument, const 
char* cValue,
 // this is CPack.
 int main(int argc, char const* const* argv)
 {
-#if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE)
-  // Replace streambuf so we can output Unicode to console
-  cmsys::ConsoleBuf::Manager consoleOut(std::cout);
-  cmsys::ConsoleBuf::Manager consoleErr(std::cerr, true);
-#endif
   cmsys::Encoding::CommandLineArguments args =
 cmsys::Encoding::CommandLineArguments::Main(argc, argv);
   argc = args.argc();
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 3f71011..0d1f1ce 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -18,9 +18,6 @@
 
 #include 
 #include 
-#if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE)
-#include 
-#endif
 #include 
 #include 
 #include 
@@ -156,11 +153,6 @@ static void cmakemainProgressCallback(const char* m, float 
prog,
 
 int main(int ac, char const* const* av)
 {
-#if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE)
-  // Replace streambuf so we can output Unicode to console
-  cmsys::ConsoleBuf::Manager consoleOut(std::cout);
-  cmsys::ConsoleBuf::Manager consoleErr(std::cerr, true);
-#endif
   cmsys::Encoding::CommandLineArguments args =
 cmsys::Encoding::CommandLineArguments::Main(ac, av);
   ac = args.argc();
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 1acd240..8ab17b9 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -10,9 +10,6 @@
 #include "cmake.h"
 
 #include 
-#if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE)
-#include 
-#endif
 #include 
 #include 
 #include 
@@ -113,11 +110,6 @@ static const char* cmDocumentationOptions[][2] = {
 // this is a test driver program for cmCTest.
 int main(int argc, char const* const* argv)
 {
-#if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE)
-  // Replace streambuf so we can output Unicode to console
-  cmsys::ConsoleBuf::Manager consoleOut(std::cout);
-  cmsys::ConsoleBuf::Manager consoleErr(std::cerr, true);
-#endif
   cmsys::Encoding::CommandLineArguments encoding_args =
 cmsys::Encoding::CommandLineArguments::Main(argc, argv);
   argc = encoding_args.argc();

---

Summary of changes:
 CMakeLists.txt |1 -
 Source/CPack/cpack.cxx |8 
 Source/cmakemain.cxx   |8 
 Source/ctest.cxx   |8 
 4 files changed, 25 deletions(-)


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


Re: [CMake] make_directory deprecated. What's the correct solution to generate directories at build time now?

2016-10-14 Thread Paulo Waelkens
You are right!

The documentation quick search for the "make_directory" keyword does not
find the cmake executable documentation (i.e. the make_directory
command-line tool), only the script command. That tripped me up.
If you manually go to the cmake executable documentation (
https://cmake.org/cmake/help/v3.6/manual/cmake.1.html), you'll find that
"cmake.exe -E make_directory..." is indeed still up to date

Thanks Iosif! Cheers,
Paulo

On 12 October 2016 at 00:57, iosif neitzke 
wrote:

> I think only the cmake script command make_directory is deprecated, not
> the cmake command-line tool -E mode make_directory?
>
> On Tue, Oct 11, 2016 at 5:21 PM, Paulo Waelkens
>  wrote:
> > Hello,
> >
> > to create a cmake directory at build time
> > (http://stackoverflow.com/questions/3702115/creating-a-
> directory-in-cmake)
> > you could use
> >
> > add_custom_target(build-time-make-directory ALL
> > COMMAND ${CMAKE_COMMAND} -E make_directory ${directory})
> >
> > "make_directory" is now listed as deprecated in the new cmake
> documentation
> > (https://cmake.org/cmake/help/v3.6/command/make_directory.html).
> >
> > How exactly could I repeat the original behaviour without using
> deprecated
> > functionality?
> > I understand that I'm supposed to use file(MAKE_DIRECTORY ${directory})
> > somehow, but don't understand how exactly to connect this with COMMAND.
> >
> > I've tried to use
> > COMMAND ${CMAKE_COMMAND} -E file ...   (definitely wrong, because
> > cmake.exe -E  [args...] does not list "file" as an available
> > command)
> > COMMAND file(MAKE_DIRECTORY ${directory})   (wrong, again, 'file' is not
> > recognized as an internal or external command)
> >
> > Does anyone know how to do this right? I'll keep using the deprecated
> stuff
> > for now, but that's kind of sad.
> >
> > Thanks for the help! Cheers,
> > Paulo
> >
> >
> > --
> >
> > 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
> --
>
> 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
>
-- 

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

Re: [CMake] How to handle options with more than two possible values?

2016-10-14 Thread YuGiOhJCJ Mailing-List via CMake
Thanks it works perfectly!

On Thu, 13 Oct 2016 13:41:00 +0200
Petr Kmoch  wrote:

> Hi.
> 
> option() is a handy shortcut for boolean options, but it's little more than
> syntactic sugar for a cache variable of type BOOL. To create a tristate
> variable, you can do this:
> 
>   set(ENABLE_SOMETHING AUTO CACHE STRING "Enable SOMETHING support")  #
> create the variable
>   set_property(CACHE ENABLE_SOMETHING PROPERTY STRINGS AUTO ON OFF)  #
> define list of values GUI will offer for the variable
> 
> Then, you can test the variable like this:
> 
>   if(ENABLE_SOMETHING STREQUAL "AUTO")
> # AUTO was used
>   elseif(ENABLE_SOMETHING)
> # a true value (such as ON) was used
>   else()
> # a false value (such as OFF) was used
>   endif()
> 
> Hope this helps.
> 
> Petr
> 
> On 13 October 2016 at 13:32, YuGiOhJCJ Mailing-List via CMake <
> cmake@cmake.org> wrote:
> 
> > Hello,
> >
> > Regarding the cmake-commands manual [1], the "option" command seems to
> > take as argument a boolean constant that can have the two possible values:
> > ON or OFF.
> >
> > I would like to use three possible values for an option: AUTO (as default
> > value), ON or OFF.
> >
> > Example:
> > option(ENABLE_SOMETHING "Enable SOMETHING support" AUTO)
> >
> > But of course this example is wrong because "AUTO" is not ON or OFF.
> >
> > Regarding the cmake-commands manual [2], the "if" command seems to return
> > TRUE when the boolean constant is 1, ON, YES, TRUE, Y, or a non-zero number.
> > It returns FALSE when the boolean constant is 0, OFF, NO, FALSE, N,
> > IGNORE, NOTFOUND, the empty string, or ends in the suffix -NOTFOUND.
> >
> > I would like to check the value myself.
> >
> > Example:
> > if(ENABLE_SOMETHING=AUTO)
> > message(STATUS "ENABLE_SOMETHING=AUTO")
> > endif()
> > if(ENABLE_SOMETHING=ON)
> > message(STATUS "ENABLE_SOMETHING=ON")
> > endif()
> > if(ENABLE_SOMETHING=OFF)
> > message(STATUS "ENABLE_SOMETHING=OFF")
> > endif()
> >
> > But of course this example is wrong because "=" is not accepted for an
> > expression in a "if" command.
> >
> > So my question is: How to handle options with more than two possible
> > values?
> >
> > Thank you.
> > Best regards.
> >
> > [1] https://cmake.org/cmake/help/v3.7/command/option.html
> > [2] https://cmake.org/cmake/help/v3.7/command/if.html
> > --
> >
> > 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
> >
-- 

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