[Cmake-commits] CMake branch, master, updated. v3.14.5-1180-g7dae93b

2019-06-02 Thread Kitware Robot via Cmake-commits
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index a1a4c22..29543b8 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 20190602) +set(CMake_VER

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

2019-06-02 Thread Andrew Maclean
See: https://cmake.org/cmake/help/latest/module/ProcessorCount.html. There is an example of its use there. Windows also has a system variable called NUMBER_OF_PROCESSORS. Type "set" on the command line and you will see it. > -- Forwarded message -- > From: Steven Truppe > To:

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

2019-06-02 Thread Michael Ellery
have a look at https://cmake.org/cmake/help/latest/module/ProcessorCount.html If you still think you really need to compile/run code for this, have a look at https://cmake.org/cmake/help/latest/command/try_run.html#command:try_run, but that is harder to get working and maintain. > On Jun 2,

Re: [CMake] Question about properties.

2019-06-02 Thread Michael Ellery
I think you can refer to https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html or “cmake —help-properties”. > On Jun 2, 2019, at 5:07 AM, Steven Truppe wrote: > > Hi again, > > > i'm reading up on properties and i see how to use set_properties and > get_properties but i don't

[CMake] Question about running C code from within cmake

2019-06-02 Thread 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

[CMake] Question about properties.

2019-06-02 Thread Steven Truppe
Hi again, i'm reading up on properties and i see how to use set_properties and get_properties but i don't know how i can find out which properties exists for each entry (GLOBAL, DIRECTORY, TARGET, SOURCE, ...). How can i retrieve a property if i don't have a list with all available properties

[CMake] Question about INSTALL and cpack

2019-06-02 Thread Steven Truppe
Hi everyone, i'm relative new the cmake and i'm asking myself if i need the install command for ExternalProject_Add() since these commands also "install" the libraries needed at runtime. Or do i need the install command only for targets that i want to compile ? best regards! -- Powered by