[Cmake-commits] CMake branch, master, updated. v3.14.5-1218-g99496f5

2019-06-03 Thread Kitware Robot via Cmake-commits
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  99496f57769a45fb664f6865bd6935d37fe45467 (commit)
  from  73472408c501e66c9dd8c027293b8c0907001b42 (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=99496f57769a45fb664f6865bd6935d37fe45467
commit 99496f57769a45fb664f6865bd6935d37fe45467
Author: Kitware Robot 
AuthorDate: Tue Jun 4 00:01:06 2019 -0400
Commit: Kitware Robot 
CommitDate: Tue Jun 4 00:01:06 2019 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 29543b8..aeccf8e 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 14)
-set(CMake_VERSION_PATCH 20190603)
+set(CMake_VERSION_PATCH 20190604)
 #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] Linking on OSX

2019-06-03 Thread Bryan Christ
Jaun,

Thank you for pointing out that thread / issue.  It's a rather thread, but
s much I've what I'm experiencing is characterized in there.  I'll look
tomorrow and reply with results.

On Mon, Jun 3, 2019 at 5:27 PM Juan E. Sanchez 
wrote:

> Hello,
>
> According to this:
> https://github.com/neovim/neovim/issues/9050
>
> It looks like macOS made it so you have to do something like this:
> open
>
> /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
>
> for libraries and includes to be put into /usr.
>
> Regards,
>
> Juan
>
>
> On 6/3/19 5:16 PM, Bryan Christ wrote:
> > New to this mailing list so I hope I'm asking this in the right venue...
> >
> > I'm trying to port my application (a program and a shared library) to
> > OSX.  It was rather easy to modify my CMake script to go from Linux and
> > add in FreeBSD.  OSX is giving me a lot of problems though.
> >
> > First of all find_package() doesn't seem to find the ncurses.dylib
> > installed by XCode as it test for wsyncup().  For whatever reason, that
> > test fails.  The default location for the library is pretty sane
> > (/usr/lib/) but the include file for ncurses is about 9 directories deep
> > inside of XCode's install directory.  Lots of problems here so I decided
> > to look at the symbol linkage for htop and see what it does.  It links
> > to a different version that got pulled down via homebrew in
> > /usr/local/opt/ncurses/lib (and include respectively)
> >
> > Is there a way to force CMake to link to the library found there instead
> > of in /usr/lib/ ?
> >
> > --
> > Bryan
> > <><
> >
>
> --
>
> 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
>


-- 
Bryan
<><
-- 

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] Linking on OSX

2019-06-03 Thread Juan E. Sanchez

Hello,

According to this:
https://github.com/neovim/neovim/issues/9050

It looks like macOS made it so you have to do something like this:
open 
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg


for libraries and includes to be put into /usr.

Regards,

Juan


On 6/3/19 5:16 PM, Bryan Christ wrote:

New to this mailing list so I hope I'm asking this in the right venue...

I'm trying to port my application (a program and a shared library) to 
OSX.  It was rather easy to modify my CMake script to go from Linux and 
add in FreeBSD.  OSX is giving me a lot of problems though.


First of all find_package() doesn't seem to find the ncurses.dylib 
installed by XCode as it test for wsyncup().  For whatever reason, that 
test fails.  The default location for the library is pretty sane 
(/usr/lib/) but the include file for ncurses is about 9 directories deep 
inside of XCode's install directory.  Lots of problems here so I decided 
to look at the symbol linkage for htop and see what it does.  It links 
to a different version that got pulled down via homebrew in 
/usr/local/opt/ncurses/lib (and include respectively)


Is there a way to force CMake to link to the library found there instead 
of in /usr/lib/ ?


--
Bryan
<><



--

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] Linking on OSX

2019-06-03 Thread Bryan Christ
New to this mailing list so I hope I'm asking this in the right venue...

I'm trying to port my application (a program and a shared library) to OSX.
It was rather easy to modify my CMake script to go from Linux and add in
FreeBSD.  OSX is giving me a lot of problems though.

First of all find_package() doesn't seem to find the ncurses.dylib
installed by XCode as it test for wsyncup().  For whatever reason, that
test fails.  The default location for the library is pretty sane
(/usr/lib/) but the include file for ncurses is about 9 directories deep
inside of XCode's install directory.  Lots of problems here so I decided to
look at the symbol linkage for htop and see what it does.  It links to a
different version that got pulled down via homebrew in
/usr/local/opt/ncurses/lib (and include respectively)

Is there a way to force CMake to link to the library found there instead of
in /usr/lib/ ?

-- 
Bryan
<><
-- 

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] Free CMake course during KHQ Summer courses July 22-25 2019

2019-06-03 Thread Robert Maynard via CMake
Hi All,

This summer between July 22 - 25th Kitware is offering 7 free courses
over 3 days at our new headquarters in Albany NY.  One of the free
courses we will be offering is a full day CMake course on Tuesday July
23rd. Hopefully some of you will be able to attend, and we can meet in
person.

Sign up for the courses at: https://forms.gle/4Lze8vXrZSyvxWVm6
You can find more information on each course at:
https://blog.kitware.com/events/free-vtk-js-girder-tomviz-vtk-paraview-and-cmake-courses-at-kitware-this-summer/

The 4 day overview schedule is:

Monday July 22:
- VTK.JS: https://kitware.github.io/vtk-js/
- Girder: https://girder.readthedocs.io/en/stable/

Tuesday July 23:
- CMake

Wednesday July 24:
- VTK: https://vtk.org/
- Tomviz: https://tomviz.org/

Thursday July 25
- ParaView: https://www.paraview.org
- CMB: https://www.computationalmodelbuilder.org/
-- 

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, master, updated. v3.14.5-1217-g7347240

2019-06-03 Thread Kitware Robot via Cmake-commits
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  73472408c501e66c9dd8c027293b8c0907001b42 (commit)
   via  7d9e66a405ccd44fe3271278449ce0887a462d41 (commit)
   via  ccf950795666406e59f420fd2732149711cb0362 (commit)
   via  df06c8d7921d09a2a627731866a8ce895990067b (commit)
   via  409922f695df4fc885d04338f56dcfb4dc406f7d (commit)
   via  7fd3811400b9b2483d635dbcc1b0bfab268527df (commit)
   via  834ec4ebfe982ff75b2a34bac2515d221bc3ab38 (commit)
   via  465d6d7f9b53aeaab4b388f30adc324fae8ab4c8 (commit)
   via  4c9e99e1f9c09e947890e2fe3372ba463904f381 (commit)
   via  cba85845172e8e12652e871d6109dba3127e8363 (commit)
   via  c79b666c432fe5e0f3532d3ea508218f58bbc9a6 (commit)
   via  477f9e309563ec642c7323337e0aaf79a1256dac (commit)
   via  fc451f130ded493ae13fda1950d31acc39002ffc (commit)
   via  2dc483476c134ec6fb05802990a98df406a39caf (commit)
   via  5823510745224f0e9ba6d69313c139bcfd9a3953 (commit)
   via  fe018819cb4b944cafbd6d8b9e9f6332014579a9 (commit)
   via  c367f7d5469e21739629a896aea3a04bb476c2bf (commit)
   via  1e7e47f597754e800673b158ce1bd59c8b6c566a (commit)
   via  e97ea5201037b67012ecabb1cb7aebabebfed20d (commit)
   via  43af4ca78e80c65d3c0cf2c5121d61988e9d5192 (commit)
   via  e762da6dc98474a71d0e69866ec3800af3117466 (commit)
   via  0d0cb136fb19d96f857f8d7da918e18038d5b627 (commit)
   via  09c21914b320567583ce5ff4c92e56b8a54bf3cb (commit)
   via  dff42d481230599ba7962a5895d75e7c0d16939e (commit)
   via  df72f06182f3481fe8929c49578052748d980712 (commit)
   via  0eed548d3f0387a3bcbdc42ad4456987a37b2934 (commit)
   via  b6dc977ff17b451b43d8a67584400c3b53c7eb8f (commit)
   via  846b4b1062cc83b420ad1405fd74186c33bb1513 (commit)
   via  8a46a07c8bd2fddde5e4db797279e21a5575e213 (commit)
   via  15c644437ae355ac196cfcfe1e874d8280451b43 (commit)
   via  1b16d7656733a89d1d9735cf31654824b76aab9b (commit)
  from  5e2d22c177add56b2538ab10954dfb049c5cf945 (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=73472408c501e66c9dd8c027293b8c0907001b42
commit 73472408c501e66c9dd8c027293b8c0907001b42
Merge: 5e2d22c 7d9e66a
Author: Brad King 
AuthorDate: Mon Jun 3 15:51:09 2019 +
Commit: Kitware Robot 
CommitDate: Mon Jun 3 11:51:23 2019 -0400

Merge topic 'ninja_build_class'

7d9e66a405 Ninja: Remove non cmNinjaBuild based WriteBuild method
ccf9507956 Ninja: Use cmNinjaBuild class for WriteBuild
df06c8d792 Ninja: Use cmNinjaBuild class for WriteBuild
409922f695 Ninja: Use cmNinjaBuild class for WriteBuild
7fd3811400 Ninja: Use cmNinjaBuild class for WriteBuild
834ec4ebfe Ninja: Use cmNinjaBuild class for WriteBuild
465d6d7f9b Ninja: Use cmNinjaBuild class for WriteBuild
4c9e99e1f9 Ninja: Use cmNinjaBuild class for WriteBuild
...

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7d9e66a405ccd44fe3271278449ce0887a462d41
commit 7d9e66a405ccd44fe3271278449ce0887a462d41
Author: Sebastian Holtermann 
AuthorDate: Thu May 30 17:39:22 2019 +0200
Commit: Sebastian Holtermann 
CommitDate: Thu May 30 18:38:21 2019 +0200

Ninja: Remove non cmNinjaBuild based WriteBuild method

diff --git a/Source/cmGlobalNinjaGenerator.cxx 
b/Source/cmGlobalNinjaGenerator.cxx
index db0e01c..2d52356 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -127,113 +127,107 @@ std::string cmGlobalNinjaGenerator::EncodePath(const 
std::string& path)
   return result;
 }
 
-void cmGlobalNinjaGenerator::WriteBuild(
-  std::ostream& os, const std::string& comment, const std::string& rule,
-  const cmNinjaDeps& outputs, const cmNinjaDeps& implicitOuts,
-  const cmNinjaDeps& explicitDeps, const cmNinjaDeps& implicitDeps,
-  const cmNinjaDeps& orderOnlyDeps, const cmNinjaVars& variables,
-  const std::string& rspfile, int cmdLineLimit, bool* usedResponseFile)
+void cmGlobalNinjaGenerator::WriteBuild(std::ostream& os,
+cmNinjaBuild const& build,
+int cmdLineLimit,
+bool* usedResponseFile)
 {
   // Make sure there is a rule.
-  if (rule.empty()) {
+  if (build.Rule.empty()) {
 cmSystemTools::Error("No rule for WriteBuild! called with comment: " +
- comment);
+ build.Comment);
 return;
   }
 
   // Make sure there is at least one output file.
-  if (outputs.empty()) {
+  if (build.Outputs.empty()) {
   

[Cmake-commits] CMake branch, master, updated. v3.14.5-1186-g5e2d22c

2019-06-03 Thread Kitware Robot via Cmake-commits
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  5e2d22c177add56b2538ab10954dfb049c5cf945 (commit)
   via  52b298bd031d97df7cdb36e6386ebbfab10946b7 (commit)
  from  3cb5a8d9b3add4394b12d61b5ce83ea6ca148fd1 (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=5e2d22c177add56b2538ab10954dfb049c5cf945
commit 5e2d22c177add56b2538ab10954dfb049c5cf945
Merge: 3cb5a8d9 52b298b
Author: Brad King 
AuthorDate: Mon Jun 3 13:22:25 2019 +
Commit: Kitware Robot 
CommitDate: Mon Jun 3 09:22:33 2019 -0400

Merge topic 'FindPython-Python_ROOT_DIR-searched-first'

52b298bd03 FindPython: ensure Python_ROOT_DIR is always searched first

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=52b298bd031d97df7cdb36e6386ebbfab10946b7
commit 52b298bd031d97df7cdb36e6386ebbfab10946b7
Author: Marc Chevrier 
AuthorDate: Fri May 31 19:05:04 2019 +0200
Commit: Marc Chevrier 
CommitDate: Fri May 31 19:05:04 2019 +0200

FindPython: ensure Python_ROOT_DIR is always searched first

diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index 5d39240..49d8e26 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -1228,6 +1228,7 @@ if ("Development" IN_LIST 
${_PYTHON_PREFIX}_FIND_COMPONENTS
 find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE
   NAMES ${_${_PYTHON_PREFIX}_LIB_NAMES}
   NAMES_PER_DIR
+  HINTS ${_${_PYTHON_PREFIX}_HINTS}
   PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS}
   PATH_SUFFIXES ${_${_PYTHON_PREFIX}_PATH_SUFFIXES}
   NO_CMAKE_PATH
@@ -1338,6 +1339,7 @@ if ("Development" IN_LIST 
${_PYTHON_PREFIX}_FIND_COMPONENTS
   find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE
 NAMES ${_${_PYTHON_PREFIX}_LIB_NAMES}
 NAMES_PER_DIR
+HINTS ${_${_PYTHON_PREFIX}_HINTS}
 PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS}
 PATH_SUFFIXES ${_${_PYTHON_PREFIX}_PATH_SUFFIXES}
 NO_CMAKE_PATH

---

Summary of changes:
 Modules/FindPython/Support.cmake | 2 ++
 1 file changed, 2 insertions(+)


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.14.5-1184-g3cb5a8d9

2019-06-03 Thread Kitware Robot via Cmake-commits
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  3cb5a8d9b3add4394b12d61b5ce83ea6ca148fd1 (commit)
   via  18d6bdb42d6fceb2b753430e74a4d6076e321f03 (commit)
   via  774102aaec1a74ea069be9b10a2c846cdbfa609f (commit)
   via  4127f82179acb13746c6249dd420ffa8b4abeb72 (commit)
  from  7dae93b4053812d344a80918a8c1c05600800c21 (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=3cb5a8d9b3add4394b12d61b5ce83ea6ca148fd1
commit 3cb5a8d9b3add4394b12d61b5ce83ea6ca148fd1
Merge: 18d6bdb 774102a
Author: Craig Scott 
AuthorDate: Mon Jun 3 12:20:13 2019 +
Commit: Kitware Robot 
CommitDate: Mon Jun 3 08:20:22 2019 -0400

Merge topic 'doc-test-cost-default'

774102aaec Help: Clarify the default value for test property COST

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=18d6bdb42d6fceb2b753430e74a4d6076e321f03
commit 18d6bdb42d6fceb2b753430e74a4d6076e321f03
Merge: 7dae93b 4127f82
Author: Craig Scott 
AuthorDate: Mon Jun 3 12:17:42 2019 +
Commit: Kitware Robot 
CommitDate: Mon Jun 3 08:18:02 2019 -0400

Merge topic 'add_library_unknown'

4127f82179 add_library: Document UNKNOWN type of imported targets

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=774102aaec1a74ea069be9b10a2c846cdbfa609f
commit 774102aaec1a74ea069be9b10a2c846cdbfa609f
Author: Craig Scott 
AuthorDate: Wed May 29 20:57:52 2019 -0400
Commit: Craig Scott 
CommitDate: Sun Jun 2 21:08:56 2019 +1000

Help: Clarify the default value for test property COST

Co-Authored-By: Steve Mokris 

diff --git a/Help/prop_test/COST.rst b/Help/prop_test/COST.rst
index 0c0fca7..9300d7b 100644
--- a/Help/prop_test/COST.rst
+++ b/Help/prop_test/COST.rst
@@ -1,8 +1,14 @@
 COST
 
 
-Set this to a floating point value. Tests in a test set will be run
-in descending order of cost.
+This property describes the cost of a test.  When parallel testing is
+enabled, tests in the test set will be run in descending order of cost.
+Projects can explicitly define the cost of a test by setting this property
+to a floating point value.
 
-This property describes the cost of a test.  You can explicitly set
-this value; tests with higher ``COST`` values will run first.
+When the cost of a test is not defined by the project,
+:manual:`ctest ` will initially use a default cost of ``0``.
+It computes a weighted average of the cost each time a test is run and
+uses that as an improved estimate of the cost for the next run.  The more
+a test is re-run in the same build directory, the more representative the
+cost should become.

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4127f82179acb13746c6249dd420ffa8b4abeb72
commit 4127f82179acb13746c6249dd420ffa8b4abeb72
Author: Cristian Adam 
AuthorDate: Mon May 20 22:40:17 2019 +0200
Commit: Cristian Adam 
CommitDate: Sun Jun 2 08:44:47 2019 +0200

add_library: Document UNKNOWN type of imported targets

diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst
index b42fe42..7274e44 100644
--- a/Help/command/add_library.rst
+++ b/Help/command/add_library.rst
@@ -94,6 +94,12 @@ The most important properties are:
 See documentation of the ``IMPORTED_*`` and ``INTERFACE_*`` properties
 for more information.
 
+An ``UNKNOWN`` library type is typically only used in the implementation of
+:ref:`Find Modules`.  It allows the path to an imported library (often found
+using the :command:`find_library` command) to be used without having to know
+what type of library it is.  This is especially useful on Windows where a
+static library and a DLL's import library both have the same file extension.
+
 Object Libraries
 
 

---

Summary of changes:
 Help/command/add_library.rst |  6 ++
 Help/prop_test/COST.rst  | 14 ++
 2 files changed, 16 insertions(+), 4 deletions(-)


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


Re: [CMake] Question about running C code from within cmake

2019-06-03 Thread Eric Doenges
The easiest way to get the number of cores on your Windows build machine 
from within CMake is to get the value of the NUMBER_OF_PROCESSORS 
environment variable using $ENV{NUMBER_OF_PROCESSORS}.


Am 02.06.19 um 14:16 schrieb Steven Truppe:


Hi everyone,


i'm trying to search for a way for win32 to get the cpu core count. i 
found the c code:


|SYSTEM_INFO sysinfo;GetSystemInfo();intnumCPU 
=sysinfo.dwNumberOfProcessors; Is there a way i can get the return 
value numCPU and create a variable out of it ? for apple and linux i 
allready have a solution only win32 is left. best regards! |



--

*Dr. Eric Dönges *
Senior Software Engineer

MVTec Software GmbH | Arnulfstr. 205 | 80634 Munich | Germany
doen...@mvtec.com  | Tel: +49 89 457 695-0 | 
www.mvtec.com 


Sign up  for our MVTec Newsletter!

Geschäftsführer: Dr. Wolfgang Eckstein, Dr. Olaf Munkelt
Amtsgericht München HRB 114695

MVTec Software GmbH Logo
-- 

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