[Cmake-commits] CMake branch, master, updated. v3.11.3-901-g0fa6f8b

2018-06-04 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  0fa6f8b2f551dacb37b98b22c70d318740fac7b1 (commit)
  from  07bddeae14001328209f5d1fb988107a6db508cb (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=0fa6f8b2f551dacb37b98b22c70d318740fac7b1
commit 0fa6f8b2f551dacb37b98b22c70d318740fac7b1
Author: Kitware Robot 
AuthorDate: Tue Jun 5 00:01:07 2018 -0400
Commit: Kitware Robot 
CommitDate: Tue Jun 5 00:01:07 2018 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 5840233..8946d67 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 11)
-set(CMake_VERSION_PATCH 20180604)
+set(CMake_VERSION_PATCH 20180605)
 #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


[cmake-developers] Retrieving OS Version in CMake

2018-06-04 Thread Harry Mallon
Hello all,

We have some CMake code that sanity checks the build and checks for our 
supported operating systems.

Would there be a use case for a Module that could retrieve OS name and version 
(e.g. on macOS parse “sw_vers” to get “Mac OS X” and “10.13.4”, on Linux parse 
/etc/os-release to get “Fedora” and “28”)? Is there already a way to get these 
in CMake?

Best,
Harry

Harry Mallon

Senior Software Engineer

[http://codex.online/?action=asset=E3D62C3D-A12C-447D-87A5-F36E7C2AA9A4]

T +44 203 7000 989

60 Poland Street | London | England | W1F 7NT

[http://codex.online/?action=asset=6F42BDF2-3C6D-4054-A5D2-277E0E535942]
Three BillboardsBlade Runner 2049I, Tonya


-- 

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-developers


[Cmake-commits] CMake branch, master, updated. v3.11.3-900-g07bddea

2018-06-04 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  07bddeae14001328209f5d1fb988107a6db508cb (commit)
   via  9e27881bb180748b128ff42a67e7b68e368595a3 (commit)
  from  1bbee86bf2b909bc3a0bae1f87cc757c744f0d21 (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=07bddeae14001328209f5d1fb988107a6db508cb
commit 07bddeae14001328209f5d1fb988107a6db508cb
Merge: 1bbee86 9e27881
Author: Brad King 
AuthorDate: Mon Jun 4 15:34:19 2018 +
Commit: Kitware Robot 
CommitDate: Mon Jun 4 11:34:35 2018 -0400

Merge topic 'fix-ti-c-standard'

9e27881bb1 TI: Add support for C language standards

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


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9e27881bb180748b128ff42a67e7b68e368595a3
commit 9e27881bb180748b128ff42a67e7b68e368595a3
Author: Arnaud Gelas 
AuthorDate: Mon Jun 4 11:24:12 2018 +0200
Commit: Brad King 
CommitDate: Mon Jun 4 10:48:02 2018 -0400

TI: Add support for C language standards

Set C90 and C99 compile options for TI compiler.

Fixes: #18061

diff --git a/Help/manual/cmake-compile-features.7.rst 
b/Help/manual/cmake-compile-features.7.rst
index 634da10..658694a 100644
--- a/Help/manual/cmake-compile-features.7.rst
+++ b/Help/manual/cmake-compile-features.7.rst
@@ -361,6 +361,7 @@ following :variable:`compiler ids 
_COMPILER_ID>` as of the
 versions specified for each:
 
 * all compilers and versions listed above with only meta-features for C++.
+* ``TI``: Texas Instruments compiler.
 
 CMake is currently aware of the :prop_tgt:`CUDA standards `
 from the following :variable:`compiler ids _COMPILER_ID>` as of 
the
diff --git a/Help/release/dev/ti-c-standard.rst 
b/Help/release/dev/ti-c-standard.rst
new file mode 100644
index 000..8ec739f
--- /dev/null
+++ b/Help/release/dev/ti-c-standard.rst
@@ -0,0 +1,6 @@
+ti-c-standard
+-
+
+* The :manual:`Compile Features ` functionality
+  is now aware of C language standards supported by Texas Instruments C
+  compilers.
diff --git a/Modules/Compiler/TI-C.cmake b/Modules/Compiler/TI-C.cmake
index e149237..1c0f4bc 100644
--- a/Modules/Compiler/TI-C.cmake
+++ b/Modules/Compiler/TI-C.cmake
@@ -2,6 +2,12 @@ set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
 set(CMAKE_LINK_LIBRARY_FLAG "--library=")
 set(CMAKE_INCLUDE_FLAG_C "--include_path=")
 
+set(CMAKE_C90_STANDARD_COMPILE_OPTION "--c89")
+set(CMAKE_C90_EXTENSION_COMPILE_OPTION "--c89 --relaxed_ansi")
+
+set(CMAKE_C99_STANDARD_COMPILE_OPTION "--c99")
+set(CMAKE_C99_EXTENSION_COMPILE_OPTION "--c99 --relaxed_ansi")
+
 set(CMAKE_DEPFILE_FLAGS_C "--preproc_with_compile 
--preproc_dependency=")
 
 set(CMAKE_C_CREATE_ASSEMBLY_SOURCE " --compile_only 
--skip_assembler --c_file=
--output_file=")

---

Summary of changes:
 Help/manual/cmake-compile-features.7.rst |1 +
 Help/release/dev/ti-c-standard.rst   |6 ++
 Modules/Compiler/TI-C.cmake  |6 ++
 3 files changed, 13 insertions(+)
 create mode 100644 Help/release/dev/ti-c-standard.rst


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


Re: [CMake] cpp macro

2018-06-04 Thread Petr Kmoch
On 4 June 2018 at 10:16, Eric Noulard  wrote:

>
>
> In both cases I don't know how to discover that in a cross-platform way.
> Probably MSVC has another option for pre-processsing.
>

The basic option is /P, with related options /EP and /C which control line
numbering, comment suppression etc.

Petr


On 4 June 2018 at 10:16, Eric Noulard  wrote:

>
>
> Le lun. 4 juin 2018 à 09:59, Stéphane Ancelot 
> a écrit :
>
>> hi
>>
>> is there a mactro for cpp ?
>>
>
> You mean a CMake variable which would contain the path to C preprocessor
> binary?
>
> I don't think so, at list no xxx__xxx variable seems to exists for
> that.
> Did you check "cmake --help-variable-list" ?
>
> May be you can ask the compiler to act a the C pre-processor?
>
> clang and gcc both accept the '-E' command line option to only run the
> preprocessor.
>
> otherwise you may probably call
>
> find_program(C_PREPROCESSOR NAMES cpp)
>
> In both cases I don't know how to discover that in a cross-platform way.
> Probably MSVC has another option for pre-processsing.
>
> Eric
>
>>
>> Regards,
>>
>> S.Ancelot
>> --
>>
>> 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
>>
>
>
> --
> Eric
>
> --
>
> 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] cpp macro

2018-06-04 Thread Eric Noulard
Le lun. 4 juin 2018 à 09:59, Stéphane Ancelot  a
écrit :

> hi
>
> is there a mactro for cpp ?
>

You mean a CMake variable which would contain the path to C preprocessor
binary?

I don't think so, at list no xxx__xxx variable seems to exists for
that.
Did you check "cmake --help-variable-list" ?

May be you can ask the compiler to act a the C pre-processor?

clang and gcc both accept the '-E' command line option to only run the
preprocessor.

otherwise you may probably call

find_program(C_PREPROCESSOR NAMES cpp)

In both cases I don't know how to discover that in a cross-platform way.
Probably MSVC has another option for pre-processsing.

Eric

>
> Regards,
>
> S.Ancelot
> --
>
> 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
>


-- 
Eric
-- 

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] cpp macro

2018-06-04 Thread Stéphane Ancelot

hi

is there a mactro for cpp ?

Regards,

S.Ancelot
--

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