Revision: 77780
http://sourceforge.net/p/brlcad/code/77780
Author: starseeker
Date: 2020-11-21 02:53:43 +0000 (Sat, 21 Nov 2020)
Log Message:
-----------
Switch ProcessorCount out for cmake_host_system_information
Modified Paths:
--------------
brlcad/branches/extbuild/misc/CMake/BRLCAD_Test_Wrappers.cmake
Modified: brlcad/branches/extbuild/misc/CMake/BRLCAD_Test_Wrappers.cmake
===================================================================
--- brlcad/branches/extbuild/misc/CMake/BRLCAD_Test_Wrappers.cmake
2020-11-21 02:40:37 UTC (rev 77779)
+++ brlcad/branches/extbuild/misc/CMake/BRLCAD_Test_Wrappers.cmake
2020-11-21 02:53:43 UTC (rev 77780)
@@ -41,8 +41,7 @@
# http://www.cmake.org/Wiki/CMakeEmulateMakeCheck and have add_test
# automatically assemble its targets into the unit dependency list.
-include(ProcessorCount)
-ProcessorCount(N)
+cmake_host_system_information(RESULT N QUERY NUMBER_OF_LOGICAL_CORES)
if(NOT N EQUAL 0)
math(EXPR NC "${N} / 2")
if(${NC} GREATER 1)
@@ -51,7 +50,7 @@
set(JFLAG)
endif(${NC} GREATER 1)
else(NOT N EQUAL 0)
- # Huh? No j flag if we can't get a processor count
+ # Huh? No j flag if we can't get a core count
set(JFLAG)
endif(NOT N EQUAL 0)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits