[Cmake-commits] CMake branch, master, updated. v3.13.0-rc2-268-g69aaf0d

2018-10-30 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  69aaf0d07645b9805d86db78d000835757f6a99c (commit)
  from  a79e5e194318304dce8dd65c892cedfdad7c0f22 (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=69aaf0d07645b9805d86db78d000835757f6a99c
commit 69aaf0d07645b9805d86db78d000835757f6a99c
Author: Kitware Robot 
AuthorDate: Wed Oct 31 00:01:12 2018 -0400
Commit: Kitware Robot 
CommitDate: Wed Oct 31 00:01:12 2018 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 75d68d3..4481ea4 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 13)
-set(CMake_VERSION_PATCH 20181030)
+set(CMake_VERSION_PATCH 20181031)
 #set(CMake_VERSION_RC 1)

---

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


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


Re: [CMake] Docker container can't find cmake executable

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 18:10, Osman Zakir  wrote:
>
> So I have to do "ENV export PATH=$HOME/usr/bin:$PATH"?  Is that what you mean?

Your question is off-topic here. Try Docker forums, StackOverflow, ...

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Docker container can't find cmake executable

2018-10-30 Thread Osman Zakir
So I have to do "ENV export PATH=$HOME/usr/bin:$PATH"?  Is that what you mean?

From: CMake  on behalf of Roger Leigh 

Sent: Tuesday, October 30, 2018 8:46 PM
To: cmake@cmake.org
Subject: Re: [CMake] Docker container can't find cmake executable

On 30/10/2018 15:41, Osman Zakir wrote:
> I put this command in the Dockerfile:
> "
> RUN mkdir $HOME/usr \
>  && wget -O cmake-linux.sh
> https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh \​
>  && sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr \​
>  && cd $HOME/usr \​
>  && ls \​
>  && export PATH=$HOME/usr/bin:$PATH
> "
> But when it gets to running CMake, it can't find the executable.  Please
> help.

This is a docker question, nothing to do with cmake.  You need to use
the ENV directive, not RUN.  The export you have here has no effect
after the command finishes.


Roger
--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


[CMake] Support of ${MPIEXEC_EXECUTABLE} in try_run

2018-10-30 Thread Hector E Barrios Molano

Hi CMake Users,

Is there a way to use ${MPIEXEC_EXECUTABLE} during execution of a 
program using try_run?


Thank you for your help,

Best regards,

Hector
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Docker container can't find cmake executable

2018-10-30 Thread Roger Leigh

On 30/10/2018 15:41, Osman Zakir wrote:

I put this command in the Dockerfile:
"
RUN mkdir $HOME/usr \
     && wget -O cmake-linux.sh 
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh \​

     && sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr \​
     && cd $HOME/usr \​
     && ls \​
     && export PATH=$HOME/usr/bin:$PATH
"
But when it gets to running CMake, it can't find the executable.  Please 
help.


This is a docker question, nothing to do with cmake.  You need to use 
the ENV directive, not RUN.  The export you have here has no effect 
after the command finishes.



Roger
--

Powered by www.kitware.com

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

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

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

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

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


[CMake] Docker container can't find cmake executable

2018-10-30 Thread Osman Zakir
I put this command in the Dockerfile:
"
RUN mkdir $HOME/usr \
&& wget -O cmake-linux.sh 
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh \​
&& sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr \​
&& cd $HOME/usr \​
&& ls \​
&& export PATH=$HOME/usr/bin:$PATH
"
But when it gets to running CMake, it can't find the executable.  Please help.
-- 

Powered by www.kitware.com

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

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

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

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

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


[Cmake-commits] CMake branch, release, updated. v3.13.0-rc2-19-g76d826f

2018-10-30 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, release has been updated
   via  76d826fffbce5e4333d16525e60b3b929657b08b (commit)
   via  67b19119da98a464870853e9e6c27baad08c445a (commit)
   via  b27cf72deac36b6872809d466f1a1ecdca7534bb (commit)
   via  b8e2c42f36812939ed9fe03d6d527d8e6289df6e (commit)
   via  8d782adbce56d3e81dd361b5ef6e9ff781a6d436 (commit)
   via  37cf805d3ea6e007f9eafb68937708b8beb23672 (commit)
   via  99728fe27c993d8482fb55a4780670767d5fab72 (commit)
   via  2fc43415efe5cc78fd39e0f600f7fa70dc18b760 (commit)
   via  f366228c80c65e9616d5b545d733a7d72a6be928 (commit)
   via  3c31ec7a0a34b7fbbf2ceae9c6bc27f9b536c1b8 (commit)
   via  87d38b4038d59bbee80104e26105dc06f5c5f70c (commit)
   via  44cef5fd9204dab2872ca87ed3c56947218aeb75 (commit)
   via  bb57cb80eb7d9ab779d19112f2da65c60bd37f39 (commit)
   via  50572d638b3903f2c2af636dcfe9d3765fd87a7c (commit)
   via  20fd16e756a590c0ff01fd32c162439aef429807 (commit)
  from  97624af75125a6d6ad2fcc181fe8645bf1abfb5f (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/Compiler/Flang-Fortran.cmake   |  2 +-
 Modules/Compiler/QCC.cmake |  2 +-
 Modules/FindBoost.cmake|  6 +
 Modules/UseSWIG.cmake  | 15 ---
 Modules/UseSWIG/ManageSupportFiles.cmake   | 31 ++
 Source/CTest/cmCTestTestHandler.cxx|  1 +
 Source/cmCommands.cxx  |  4 +--
 Source/cmLinkLineDeviceComputer.cxx| 16 +--
 Source/cmState.cxx | 10 +++
 Source/cmState.h   |  1 +
 Tests/RunCMake/CMakeLists.txt  |  1 +
 Tests/RunCMake/ScriptMode/RunCMakeTest.cmake   |  3 +++
 .../ScriptMode/set_directory_properties.cmake  |  1 +
 13 files changed, 77 insertions(+), 16 deletions(-)
 create mode 100644 Modules/UseSWIG/ManageSupportFiles.cmake
 create mode 100644 Tests/RunCMake/ScriptMode/RunCMakeTest.cmake
 create mode 100644 Tests/RunCMake/ScriptMode/set_directory_properties.cmake


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


[Cmake-commits] CMake branch, master, updated. v3.13.0-rc2-267-ga79e5e1

2018-10-30 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  a79e5e194318304dce8dd65c892cedfdad7c0f22 (commit)
   via  ef9c59c37ef218e22cd132b7d995b2cf9d710a97 (commit)
   via  76d826fffbce5e4333d16525e60b3b929657b08b (commit)
   via  67b19119da98a464870853e9e6c27baad08c445a (commit)
   via  b8e2c42f36812939ed9fe03d6d527d8e6289df6e (commit)
   via  37cf805d3ea6e007f9eafb68937708b8beb23672 (commit)
   via  f366228c80c65e9616d5b545d733a7d72a6be928 (commit)
   via  88477e0429f62bc4d8d252da460b9202f2f924be (commit)
   via  87d38b4038d59bbee80104e26105dc06f5c5f70c (commit)
   via  44cef5fd9204dab2872ca87ed3c56947218aeb75 (commit)
   via  9b5ebbd8602fbe206f560228db9bcec6ffd68c93 (commit)
  from  1d4b1a5853209be077d36af090ad7a32361a8923 (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=a79e5e194318304dce8dd65c892cedfdad7c0f22
commit a79e5e194318304dce8dd65c892cedfdad7c0f22
Merge: ef9c59c 76d826f
Author: Brad King 
AuthorDate: Tue Oct 30 11:06:17 2018 -0400
Commit: Brad King 
CommitDate: Tue Oct 30 11:06:17 2018 -0400

Merge branch 'release-3.13'


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ef9c59c37ef218e22cd132b7d995b2cf9d710a97
commit ef9c59c37ef218e22cd132b7d995b2cf9d710a97
Merge: 1d4b1a5 88477e0
Author: Brad King 
AuthorDate: Tue Oct 30 11:05:57 2018 -0400
Commit: Brad King 
CommitDate: Tue Oct 30 11:05:57 2018 -0400

Merge branch 'release-3.12'


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=88477e0429f62bc4d8d252da460b9202f2f924be
commit 88477e0429f62bc4d8d252da460b9202f2f924be
Merge: 9b5ebbd 3f5bfb4
Author: Brad King 
AuthorDate: Mon Oct 29 12:02:18 2018 -0400
Commit: Brad King 
CommitDate: Mon Oct 29 12:02:18 2018 -0400

Merge branch 'backport-cuda-filter-device-link-libs' into release-3.12

Merge-request: !2536


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9b5ebbd8602fbe206f560228db9bcec6ffd68c93
commit 9b5ebbd8602fbe206f560228db9bcec6ffd68c93
Merge: cf863b2 50572d6
Author: Brad King 
AuthorDate: Mon Oct 29 11:45:36 2018 -0400
Commit: Brad King 
CommitDate: Mon Oct 29 11:45:36 2018 -0400

Merge branch 'set_directory_properties-script-mode' into release-3.12

Merge-request: !2544


---

Summary of changes:


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


[Cmake-commits] CMake branch, master, updated. v3.13.0-rc2-256-g1d4b1a5

2018-10-30 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  1d4b1a5853209be077d36af090ad7a32361a8923 (commit)
   via  87dfd53b276bff00e5e018b29043d05cf503018e (commit)
   via  157e3e1bd6465703ca75fcf8cf7ea2f5271a5c65 (commit)
   via  a298c188127d06876ce493f23f8b8c2fc9941895 (commit)
   via  59d57f023f61446ade0767376cf6b38bb7450e44 (commit)
   via  4c669a0a34569e5276b8dca47165657aad68cade (commit)
   via  263afbad64588eb896452cd85546a07321e9db92 (commit)
   via  b8f5eca5e2cff99ec0eeba645e3ccf5ac40d9825 (commit)
   via  b27cf72deac36b6872809d466f1a1ecdca7534bb (commit)
   via  8d782adbce56d3e81dd361b5ef6e9ff781a6d436 (commit)
   via  99728fe27c993d8482fb55a4780670767d5fab72 (commit)
   via  2fc43415efe5cc78fd39e0f600f7fa70dc18b760 (commit)
   via  e8cc8d22d844a3ffc261b3ca79bb0ce5dc8c6dd6 (commit)
   via  3f5bfb425af391c1740ff7794f0283be3d0f7589 (commit)
   via  3c31ec7a0a34b7fbbf2ceae9c6bc27f9b536c1b8 (commit)
   via  bb57cb80eb7d9ab779d19112f2da65c60bd37f39 (commit)
   via  50572d638b3903f2c2af636dcfe9d3765fd87a7c (commit)
   via  20fd16e756a590c0ff01fd32c162439aef429807 (commit)
   via  42731e94bea0839842fc66cef27af71e12d753e1 (commit)
   via  ee73e733e4ae7a1fe36c3010d8789de4d37dcc1c (commit)
   via  160499296c61b0edf2e6b08c44b31444e022528f (commit)
   via  ee7e97a7d35a793985cf6f9aa185069460cf0ec6 (commit)
   via  d7e19032d52f9d1529a27bb1061da33524b69060 (commit)
   via  518553d9537be7e6c245090e52ba989df5686e19 (commit)
  from  9330afea04d8e5c8f5c867af43a95fef0ad08d35 (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=1d4b1a5853209be077d36af090ad7a32361a8923
commit 1d4b1a5853209be077d36af090ad7a32361a8923
Merge: 87dfd53 e8cc8d2
Author: Brad King 
AuthorDate: Tue Oct 30 15:02:49 2018 +
Commit: Kitware Robot 
CommitDate: Tue Oct 30 11:03:03 2018 -0400

Merge topic 'cuda_device_linking_drop_dynamic_libs'

e8cc8d22d8 Merge branch 'backport-cuda-filter-device-link-libs'
3f5bfb425a CUDA: Filter out non-static libraries during device linking
3c31ec7a0a CUDA: Filter out non-static libraries during device linking

Acked-by: Kitware Robot 
Acked-by: Daniel Arndt 
Merge-request: !2536


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=87dfd53b276bff00e5e018b29043d05cf503018e
commit 87dfd53b276bff00e5e018b29043d05cf503018e
Merge: 157e3e1 50572d6
Author: Brad King 
AuthorDate: Tue Oct 30 15:01:26 2018 +
Commit: Kitware Robot 
CommitDate: Tue Oct 30 11:01:36 2018 -0400

Merge topic 'set_directory_properties-script-mode'

50572d638b set_directory_properties: Restore in script mode

Acked-by: Kitware Robot 
Merge-request: !2544


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=157e3e1bd6465703ca75fcf8cf7ea2f5271a5c65
commit 157e3e1bd6465703ca75fcf8cf7ea2f5271a5c65
Merge: a298c18 8d782ad
Author: Brad King 
AuthorDate: Tue Oct 30 15:00:10 2018 +
Commit: Kitware Robot 
CommitDate: Tue Oct 30 11:00:41 2018 -0400

Merge topic 'flang-preprocess-source'

8d782adbce Flang: Fix command-line used to preprocess sources

Acked-by: Kitware Robot 
Merge-request: !2545


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a298c188127d06876ce493f23f8b8c2fc9941895
commit a298c188127d06876ce493f23f8b8c2fc9941895
Merge: 59d57f0 b27cf72
Author: Brad King 
AuthorDate: Tue Oct 30 14:59:54 2018 +
Commit: Kitware Robot 
CommitDate: Tue Oct 30 11:00:00 2018 -0400

Merge topic 'FindBoost-stacktrace'

b27cf72dea FindBoost: Add support for stacktrace components

Acked-by: Kitware Robot 
Reviewed-by: Roger Leigh 
Merge-request: !2541


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=59d57f023f61446ade0767376cf6b38bb7450e44
commit 59d57f023f61446ade0767376cf6b38bb7450e44
Merge: 4c669a0 99728fe
Author: Brad King 
AuthorDate: Tue Oct 30 14:59:05 2018 +
Commit: Kitware Robot 
CommitDate: Tue Oct 30 10:59:12 2018 -0400

Merge topic 'qccDepfile'

99728fe27c QNX: Update qcc depfile flags to be compliant with ccache

Acked-by: Kitware Robot 
Merge-request: !2540


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4c669a0a34569e5276b8dca47165657aad68cade
commit 4c669a0a34569e5276b8dca47165657aad68cade
Merge: 263afba 2fc4341
Author: Brad King 
AuthorDate: Tue Oct 30 14:56:54 2018 +
Commit: Kitware Robot 
CommitDate: Tue Oct 30 10:57:45 2018 -0400

Merge topic 'UseSWIG-typos'

2fc43415ef UseSWIG: Add target language and input file in command 

[CMake] PGO (Profile Guided Optimization)

2018-10-30 Thread Jan Wielemaker

Hi,

I was wondering whether there is a module or skeleton floating around to
deal with Profile Guided Optimization using a cmake build. If this rings
a bell you probably know the sequence (assuming GCC):

  - compile using -fprofile-generate
  - run a benchmark suite, this generates .gcda files for each object,
which may be placed in a different directory.
  - recompile using -fprofile-use

Targetting Ninja, I now use a shell-script that performs

  - ninja -t clean my-target
  - cmake -DPROFILE_GUIDED_OPTIMIZATION=GENERATE ..
  - ninja my-target
  - 
  - cmake -DPROFILE_GUIDED_OPTIMIZATION=USE ..
  - ninja -t clean my-target
  - ninja my-target

Where my-target is the time critical sub-project and
PROFILE_GUIDED_OPTIMIZATION is picked up by cmake and sets the compile
and link flags for the affected targets.

This isn't nice. I guess that ideally I'd have a separate build
subdirectory that always uses -fprofile-generate and the main build dir
using -fprofile-use. Does that make sense? Is there an
example/module/...?

Thanks --- Jan
--

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 13:26, Osman Zakir  wrote:
>
> I thought I'd already said that I can't use sudo or anything else with root 
> access privileges.

I forgot about this constraint.

Then, make use of the custom --prefix

mkdir $HOME/usr
wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr
export PATH=$HOME/usr/bin:$PATH

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
Like if I cd into the CMake bin directory and then add the relative path to the 
current directory to the PATH.

From: Osman Zakir 
Sent: Tuesday, October 30, 2018 6:01 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

Would it be okay to add the relative path to the current directory to the PATH 
variable if I don't know the exact path?  Or would that not be a good idea?

From: CMake  on behalf of Roger Leigh 

Sent: Tuesday, October 30, 2018 5:54 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On 30/10/2018 10:56, Osman Zakir wrote:
> Okay, thanks.
>
> So how about this as the command?
>
> "
> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
>  && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && cd cmake-3.12.3-Linux-x86_64  \​
>  && apt-get install \​
>  && ./bin/cmake --version
> "
> I think I'll need the apt-get install part to install the library.  Is
> this true?

No.  Just add the bin directory to your PATH.

apt-get is only required when installing packages provided by the
package manager.  It has nothing to do with installing archives you
download.


Roger
--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
Would it be okay to add the relative path to the current directory to the PATH 
variable if I don't know the exact path?  Or would that not be a good idea?

From: CMake  on behalf of Roger Leigh 

Sent: Tuesday, October 30, 2018 5:54 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On 30/10/2018 10:56, Osman Zakir wrote:
> Okay, thanks.
>
> So how about this as the command?
>
> "
> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
>  && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>  && cd cmake-3.12.3-Linux-x86_64  \​
>  && apt-get install \​
>  && ./bin/cmake --version
> "
> I think I'll need the apt-get install part to install the library.  Is
> this true?

No.  Just add the bin directory to your PATH.

apt-get is only required when installing packages provided by the
package manager.  It has nothing to do with installing archives you
download.


Roger
--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Roger Leigh

On 30/10/2018 10:56, Osman Zakir wrote:

Okay, thanks.

So how about this as the command?

"
RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
     && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
     && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
     && cd cmake-3.12.3-Linux-x86_64  \​
     && apt-get install \​
     && ./bin/cmake --version
"
I think I'll need the apt-get install part to install the library.  Is 
this true?


No.  Just add the bin directory to your PATH.

apt-get is only required when installing packages provided by the 
package manager.  It has nothing to do with installing archives you 
download.



Roger
--

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
I thought I'd already said that I can't use sudo or anything else with root 
access privileges.  I want to deploy the Docker image to Heroku and Heroku 
doesn't run Docker images with root user access.

I'll forget about "apt-get", but I still want to put CMake into /usr/local/ 
somewhere without using root user access, if that's possible.

How do I find out in the Docker image where the CMake files were unpacked to so 
I can add that path to the PATH variable?  Since I used wget like with Boost, 
and Boost was installed in /usr/local/boost_1_68_0 (and Boost with its build 
tool was also installed /usr/local/ itself), it's possible that CMake's path is 
something similar.

From: CMake  on behalf of Mateusz Loskot 

Sent: Tuesday, October 30, 2018 5:09 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On Tue, 30 Oct 2018 at 12:59, Osman Zakir  wrote:
>
> I put "apt-get install" in the CMake folder that I got from unpacking the 
> .tar file.  Would that not install the CMake in that directory?

No!
The .tar.gz is not a .deb package, it does not contain a .deb package.

You need to read about apt and .deb packages

> What do I have to do in order for it to install the CMake executable I 
> downloaded

Unpack the .tar.gz, that's it.
Optionally, copy somewhere you prefer in your Linux environment.

> and also add it to my PATH?

export PATH=/path/where/you/unpacked/cmaketarg/bin:$PATH


Alternatively,
iIf you stopped stubbornly trying the apt-get and
if you tried my suggestion

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local

you would get CMake installed in the standard prefix /usr/local
with cmake executable deployed in /usr/local/bin/cmake
and having /usr/local/bin typically in PATH
you would get cmake in your PATH out of the box.

Just forget about using apt-get with the downloaded .tar.gz, forget it!
Or, learn about Debian packages, apt, etc. just not here!

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 12:59, Osman Zakir  wrote:
>
> I put "apt-get install" in the CMake folder that I got from unpacking the 
> .tar file.  Would that not install the CMake in that directory?

No!
The .tar.gz is not a .deb package, it does not contain a .deb package.

You need to read about apt and .deb packages

> What do I have to do in order for it to install the CMake executable I 
> downloaded

Unpack the .tar.gz, that's it.
Optionally, copy somewhere you prefer in your Linux environment.

> and also add it to my PATH?

export PATH=/path/where/you/unpacked/cmaketarg/bin:$PATH


Alternatively,
iIf you stopped stubbornly trying the apt-get and
if you tried my suggestion

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local

you would get CMake installed in the standard prefix /usr/local
with cmake executable deployed in /usr/local/bin/cmake
and having /usr/local/bin typically in PATH
you would get cmake in your PATH out of the box.

Just forget about using apt-get with the downloaded .tar.gz, forget it!
Or, learn about Debian packages, apt, etc. just not here!

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Osman Zakir
Yeah, I forgot to type the 'c'.  My mistake.

From: CMake  on behalf of Mateusz Loskot 

Sent: Tuesday, October 30, 2018 4:30 PM
To: cmake@cmake.org
Subject: Re: [CMake] About FindBoost.cmake

On Tue, 30 Oct 2018 at 12:25, Osman Zakir  wrote:
>
> So just "make -A x64 -DBOOST_ROOT:PATH=D:\boost.win"?


No. The comand I pasted reads

"cmake -A x64 -DBOOST_ROOT:PATH=D:\boost.win"
^^^ cmake not make


> Speaking of x64 vs. x86, I think CMake needs to be able to include the option 
> to build for either x86 or x64 in the same VS project file.  I read on the 
> CMake forums that this is being worked on, but what's the story on that?

Sorry, no idea what you talking about. Perhaps it's better to read the
docs first:

-A 
Specify platform name if supported by generator.


For this paricular VS use case, I could have used

cmake -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT:PATH=D:\boost.win ..
which should be equivalent to
cmake -A x64 -DBOOST_ROOT:PATH=D:\boost.win


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
I put "apt-get install" in the CMake folder that I got from unpacking the .tar 
file.  Would that not install the CMake in that directory?  That's what I'm 
asking.  What do I have to do in order for it to install the CMake executable I 
downloaded and also add it to my PATH?

From: CMake  on behalf of Mateusz Loskot 

Sent: Tuesday, October 30, 2018 4:37 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On Tue, 30 Oct 2018 at 12:31, Raymond Wan  wrote:
>
> If you insist on the latest version, then where you have
> "apt-get install" should be replaced with commands that
> Mateusz has already said.  That is, the steps mentioned here:
>
> https://cmake.org/install/

Raymond, the web page explains how to build from sources.
That is the 3rd way of installing CMake.

1. apt-get install cmake
2. Bash installer or manually unpacking .tar.gz. eg.
cmake-3.12.3-Linux-x86_64.tar.gz

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local

3. Build from sources as per https://cmake.org/install/

> (Perhaps the cmake-linux.sh that Mateusz mentioned works...I
> personally haven't installed a version from cmake.org for a
> very long time, so I wouldn't know.)

I can assure you the option 2. works perfectly

I use it daily to juggle CMake on number of Linux environments

https://github.com/mloskot/wsl-config/blob/master/wsl/scripts/install-cmake-latest.sh

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 12:31, Raymond Wan  wrote:
>
> If you insist on the latest version, then where you have
> "apt-get install" should be replaced with commands that
> Mateusz has already said.  That is, the steps mentioned here:
>
> https://cmake.org/install/

Raymond, the web page explains how to build from sources.
That is the 3rd way of installing CMake.

1. apt-get install cmake
2. Bash installer or manually unpacking .tar.gz. eg.
cmake-3.12.3-Linux-x86_64.tar.gz

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local

3. Build from sources as per https://cmake.org/install/

> (Perhaps the cmake-linux.sh that Mateusz mentioned works...I
> personally haven't installed a version from cmake.org for a
> very long time, so I wouldn't know.)

I can assure you the option 2. works perfectly

I use it daily to juggle CMake on number of Linux environments

https://github.com/mloskot/wsl-config/blob/master/wsl/scripts/install-cmake-latest.sh

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Raymond Wan


Hi Osman,


On 30/10/2018 6:56 PM, Osman Zakir wrote:

Okay, thanks.

So how about this as the command?

"
RUN wget 
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz 
  \

     && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
     && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
     && cd cmake-3.12.3-Linux-x86_64  \​
     && apt-get install \​
     && ./bin/cmake --version
"
I think I'll need the apt-get install part to install the 
library.  Is this true?



Not quite.  I think you should decide whether you want to:

a)  Install the latest version from cmake.org
b)  Install the latest version within the Ubuntu software 
repositories.


If you choose (b) then the latest version in Ubuntu 18.04 is 
CMake 3.10.2 .  In this case, the command above changes 
completely.  It is far easier but you'll also not get the 
latest version.


If you insist on the latest version, then where you have 
"apt-get install" should be replaced with commands that 
Mateusz has already said.  That is, the steps mentioned here:


https://cmake.org/install/

(Perhaps the cmake-linux.sh that Mateusz mentioned works...I 
personally haven't installed a version from cmake.org for a 
very long time, so I wouldn't know.)


Anyway, you might want to figure out which path you want first.

Ray



--

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 12:25, Osman Zakir  wrote:
>
> So just "make -A x64 -DBOOST_ROOT:PATH=D:\boost.win"?


No. The comand I pasted reads

"cmake -A x64 -DBOOST_ROOT:PATH=D:\boost.win"
^^^ cmake not make


> Speaking of x64 vs. x86, I think CMake needs to be able to include the option 
> to build for either x86 or x64 in the same VS project file.  I read on the 
> CMake forums that this is being worked on, but what's the story on that?

Sorry, no idea what you talking about. Perhaps it's better to read the
docs first:

-A 
Specify platform name if supported by generator.


For this paricular VS use case, I could have used

cmake -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT:PATH=D:\boost.win ..
which should be equivalent to
cmake -A x64 -DBOOST_ROOT:PATH=D:\boost.win


Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Osman Zakir
So just "make -A x64 -DBOOST_ROOT:PATH=D:\boost.win"?

Speaking of x64 vs. x86, I think CMake needs to be able to include the option 
to build for either x86 or x64 in the same VS project file.  I read on the 
CMake forums that this is being worked on, but what's the story on that?

From: CMake  on behalf of Mateusz Loskot 

Sent: Tuesday, October 30, 2018 4:18 PM
To: cmake@cmake.org
Subject: Re: [CMake] About FindBoost.cmake

On Tue, 30 Oct 2018 at 12:09, Osman Zakir  wrote:
>
> Nice. So what command did you run to configure CMake?

I included full cmake invocation command line in my response you replied to.
Just re-read it below.

Once again, please, respond to cmake@cmake.org mailing list, not privately!

ML

> 
> From: CMake  on behalf of Mateusz Loskot 
> 
> Sent: Tuesday, October 30, 2018 2:55 PM
> To: cmake@cmake.org
> Subject: Re: [CMake] About FindBoost.cmake
>
> On Tue, 30 Oct 2018 at 10:54, Mateusz Loskot  wrote:
> > [...]
> > D:\_\workshop\test_boost\_build.vs2017 cmake -A x64
> > -DBOOST_ROOT:PATH=D:\boost.win ..
> > -- Building for: Visual Studio 15 2017
> > -- The C compiler identification is MSVC 19.15.26730.0
> > -- The CXX compiler identification is MSVC 19.15.26730.0
> > -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> > Visual 
> > Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> > -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> > Visual 
> > Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> > -- works
> > ...
> > -- Boost version: 1.69.0
> > -- Found the following Boost libraries:
> > --   filesystem
> > --   system
> > ...
>
> I forgo to mention above I run
>
> cmake --version
> cmake version 3.12.2
>
>
> --
> Mateusz Loskot, http://mateusz.loskot.net


--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 12:09, Osman Zakir  wrote:
>
> Nice. So what command did you run to configure CMake?

I included full cmake invocation command line in my response you replied to.
Just re-read it below.

Once again, please, respond to cmake@cmake.org mailing list, not privately!

ML

> 
> From: CMake  on behalf of Mateusz Loskot 
> 
> Sent: Tuesday, October 30, 2018 2:55 PM
> To: cmake@cmake.org
> Subject: Re: [CMake] About FindBoost.cmake
>
> On Tue, 30 Oct 2018 at 10:54, Mateusz Loskot  wrote:
> > [...]
> > D:\_\workshop\test_boost\_build.vs2017 cmake -A x64
> > -DBOOST_ROOT:PATH=D:\boost.win ..
> > -- Building for: Visual Studio 15 2017
> > -- The C compiler identification is MSVC 19.15.26730.0
> > -- The CXX compiler identification is MSVC 19.15.26730.0
> > -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> > Visual 
> > Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> > -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> > Visual 
> > Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> > -- works
> > ...
> > -- Boost version: 1.69.0
> > -- Found the following Boost libraries:
> > --   filesystem
> > --   system
> > ...
>
> I forgo to mention above I run
>
> cmake --version
> cmake version 3.12.2
>
>
> --
> Mateusz Loskot, http://mateusz.loskot.net


-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
Okay, thanks.

So how about this as the command?

"
RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
&& tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
&& rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
&& cd cmake-3.12.3-Linux-x86_64  \​
&& apt-get install \​
&& ./bin/cmake --version
"
I think I'll need the apt-get install part to install the library.  Is this 
true?

From: CMake  on behalf of Ian Cullen 

Sent: Tuesday, October 30, 2018 2:52 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

If you want to stick to your original method you need to add some
command line arguments to tar to tell it that is is extracting a
compressed file.

The binary is then available within the extracted directory.

Original command becomes:

RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
&& tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \
&& rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \
&& cd cmake-3.12.3-Linux-x86_64  \
&& ./bin/cmake --version


tar options:
x - Extract
z - Archive type is gzip (may be optional, depending on version of tar)
f - The file to extract (tar will try and open whatever follows this
argument so it MUST come last in this case)



On 30/10/2018 09:27, Mateusz Loskot wrote:
> On Tue, 30 Oct 2018 at 10:22, Osman Zakir  wrote:
>> I want to install the latest release version of CMake in my Ubuntu Docker 
>> image (from the Dockerfile), but I'm having trouble.  I have this command:
>>
>> "
>> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
>> && tar cmake-3.12.3-Linux-x86_64.tar.gz  \
>> && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \
>> && cd cmake-3.12.3-Linux-x86_64  \
>> && apt-get install
> Hmm, are you cerctain apt-get is capable of installing from .tar.gz?
>
> wget -O cmake-linux.sh
> https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
> sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local
> cmake --version
>
> I guess, it may be a good idea to update https://cmake.org/install/
>
> Best regards,,

--

Powered by www.kitware.com

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

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

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

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

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

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 10:54, Mateusz Loskot  wrote:
> [...]
> D:\_\workshop\test_boost\_build.vs2017 cmake -A x64
> -DBOOST_ROOT:PATH=D:\boost.win ..
> -- Building for: Visual Studio 15 2017
> -- The C compiler identification is MSVC 19.15.26730.0
> -- The CXX compiler identification is MSVC 19.15.26730.0
> -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> Visual 
> Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> -- Check for working C compiler: C:/Program Files (x86)/Microsoft
> Visual 
> Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
> -- works
> ...
> -- Boost version: 1.69.0
> -- Found the following Boost libraries:
> --   filesystem
> --   system
> ...

I forgo to mention above I run

cmake --version
cmake version 3.12.2


-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 10:24, Mateusz Loskot  wrote:
> On Tue, 30 Oct 2018 at 10:17, Osman Zakir  wrote:
> >
> > Yes, but this might also be why it can't find more than "some" of the Boost 
> > libraries.  It looks for "-d" even though I'm using the "-gd" ones.
>
> How do you know it looks for -d?
> Sorry, but you are not showing any cmake command line,
> any bit of your CMakeLists.txt how you invoke find_package,
> and nothing from output you are getting.
>
> set(Boost_DEBUG ON)
> find_package(Boost 1.68.0 REQUIRED COMPONENTS filesystem)
>
> then, in a sample project
>
> mkdir build
> cd build
> cmake ..
>
> and it looks for -gd
>
> -- [ C:/Program
> Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1430 ]
> _boost_MULTITHREADED = -mt
> -- [ C:/Program
> Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1506 ]
> _boost_RELEASE_ABI_TAG = -
> -- [ C:/Program
> Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1508 ]
> _boost_DEBUG_ABI_TAG = -gd

I've run some test.

I've got Boost (current develop branch) build in stage directory, as
you see it is --layout=versioned

D:\boost.win\stage\lib (develop -> origin)  ls -1 *system*
libboost_filesystem-vc141-mt-gd-x32-1_69.lib
libboost_filesystem-vc141-mt-gd-x64-1_69.lib
libboost_filesystem-vc141-mt-x32-1_69.lib
libboost_filesystem-vc141-mt-x64-1_69.lib
libboost_system-vc141-mt-gd-x32-1_69.lib
libboost_system-vc141-mt-gd-x64-1_69.lib
libboost_system-vc141-mt-x32-1_69.lib
libboost_system-vc141-mt-x64-1_69.lib

In test project D:\_\workshop\test_boost\CMakeLists.txt

set(Boost_ADDITIONAL_VERSIONS 1.69)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.69.0 REQUIRED COMPONENTS filesystem system)

Then, configure:

D:\_\workshop\test_boost\_build.vs2017 cmake -A x64
-DBOOST_ROOT:PATH=D:\boost.win ..
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.15.26730.0
-- The CXX compiler identification is MSVC 19.15.26730.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft
Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft
Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx64/x64/cl.exe
-- works
...
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   filesystem
--   system
...

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Ian Cullen
If you want to stick to your original method you need to add some 
command line arguments to tar to tell it that is is extracting a 
compressed file.


The binary is then available within the extracted directory.

Original command becomes:

RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
   && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \
   && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \
   && cd cmake-3.12.3-Linux-x86_64  \
   && ./bin/cmake --version


tar options:
x - Extract
z - Archive type is gzip (may be optional, depending on version of tar)
f - The file to extract (tar will try and open whatever follows this 
argument so it MUST come last in this case)




On 30/10/2018 09:27, Mateusz Loskot wrote:

On Tue, 30 Oct 2018 at 10:22, Osman Zakir  wrote:

I want to install the latest release version of CMake in my Ubuntu Docker image 
(from the Dockerfile), but I'm having trouble.  I have this command:

"
RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
&& tar cmake-3.12.3-Linux-x86_64.tar.gz  \
&& rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \
&& cd cmake-3.12.3-Linux-x86_64  \
&& apt-get install

Hmm, are you cerctain apt-get is capable of installing from .tar.gz?

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local
cmake --version

I guess, it may be a good idea to update https://cmake.org/install/

Best regards,,


--

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 10:22, Osman Zakir  wrote:
>
> I want to install the latest release version of CMake in my Ubuntu Docker 
> image (from the Dockerfile), but I'm having trouble.  I have this command:
>
> "
> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
>&& tar cmake-3.12.3-Linux-x86_64.tar.gz  \
>&& rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \
>&& cd cmake-3.12.3-Linux-x86_64  \
>&& apt-get install

Hmm, are you cerctain apt-get is capable of installing from .tar.gz?

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local
cmake --version

I guess, it may be a good idea to update https://cmake.org/install/

Best regards,,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 10:17, Osman Zakir  wrote:
>
> Yes, but this might also be why it can't find more than "some" of the Boost 
> libraries.  It looks for "-d" even though I'm using the "-gd" ones.

How do you know it looks for -d?
Sorry, but you are not showing any cmake command line,
any bit of your CMakeLists.txt how you invoke find_package,
and nothing from output you are getting.

set(Boost_DEBUG ON)
find_package(Boost 1.68.0 REQUIRED COMPONENTS filesystem)

then, in a sample project

mkdir build
cd build
cmake ..

and it looks for -gd

-- [ C:/Program
Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1430 ]
_boost_MULTITHREADED = -mt
-- [ C:/Program
Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1506 ]
_boost_RELEASE_ABI_TAG = -
-- [ C:/Program
Files/CMake/share/cmake-3.12/Modules/FindBoost.cmake:1508 ]
_boost_DEBUG_ABI_TAG = -gd

FindBoost is a complex animal, it deals with tons of cases, it
frequently stops working.
So, crystal sphere -based investigation does not quite apply :)

BTW, pease respond to the mailing list, not privately.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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


[CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Osman Zakir
I want to install the latest release version of CMake in my Ubuntu Docker image 
(from the Dockerfile), but I'm having trouble.  I have this command:

"
RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
   && tar cmake-3.12.3-Linux-x86_64.tar.gz  \
   && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \
   && cd cmake-3.12.3-Linux-x86_64  \
   && apt-get install
"
I had this error:
"
tar: Old option 'L' requires an argument.
Try 'tar --help' or 'tar --usage' for more information.
"
Any idea how I can fix this?  Or should I ask on a Linux forum?
-- 

Powered by www.kitware.com

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

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

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

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

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


Re: [CMake] About FindBoost.cmake

2018-10-30 Thread Mateusz Loskot
On Tue, 30 Oct 2018 at 00:29, Osman Zakir  wrote:
>
> I noticed that FindBoost.cmake has "-d" set as the Boost debug ABI tag even 
> though the Boost libraries actually use "-gd".

-d comes from variant=debug option when you build Boost
-g comes from runtime-debugging=on

You've got it explained here
https://www.boost.org/doc/libs/1_68_0/more/getting_started/windows.html

> I installed the latet release of CMake just now, which has Boost 1.68.0 
> listed as a test version, and it has this problem too.

IMO, what you describe is not a problem.
-gd is perfectly valid combination, and on Windows where versioned
layout of Boost is the default, you will see names like

d:\boost.win\stage\lib>ls -1 *file*
libboost_filesystem-vc141-mt-gd-x32-1_69.lib
libboost_filesystem-vc141-mt-gd-x64-1_69.lib
libboost_filesystem-vc141-mt-x32-1_69.lib
libboost_filesystem-vc141-mt-x64-1_69.lib

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.kitware.com

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

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

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

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

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