[Cmake-commits] CMake branch, master, updated. v3.11.0-rc1-111-g464ae1b
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 464ae1bcc0f3b3264934c1f6c756e5ef919d3f2b (commit) from f7430b2538211ea59d5a853148de3b282796bf6a (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=464ae1bcc0f3b3264934c1f6c756e5ef919d3f2b commit 464ae1bcc0f3b3264934c1f6c756e5ef919d3f2b Author: Kitware Robot <kwro...@kitware.com> AuthorDate: Tue Feb 27 00:01:09 2018 -0500 Commit: Kitware Robot <kwro...@kitware.com> CommitDate: Tue Feb 27 00:01:09 2018 -0500 CMake Nightly Date Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index f1fdb60..2ce7e03 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 20180226) +set(CMake_VERSION_PATCH 20180227) #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] Return an Error Code (or something) from a CMake Script.
On 2018-02-26 14:19-0500 Michael Jackson wrote: In our CMake based project I generate a *.cmake file which I call with the following bit of code: add_custom_target(DREAM3D_MKDOCS_GENERATION ALL COMMAND "${CMAKE_COMMAND}" -P "${docsCmakeFile}" COMMENT "using mkdocs to generate the documentation" ) Inside the generated file is the following cmake command: message(STATUS "Starting mkdocs execution. This can take a while.") execute_process(COMMAND "/path/to/mkdocs" build OUTPUT_VARIABLE mkdocs_gen_output RESULT_VARIABLE mkdocs_gen_result ERROR_VARIABLE mkdocs_gen_error WORKING_DIRECTORY "/Users/mjackson/DREAM3D-Dev/DREAM3D-Build/Debug/Documentation/mkdocs" ) message(STATUS "mkdocs_gen_result: ${mkdocs_gen_result}") message(STATUS "mkdocs_gen_error: ${mkdocs_gen_error}") message(STATUS "**") message(STATUS "mkdocs_gen_output: ${mkdocs_gen_output}") message(STATUS "**") The issue that I am having is that if the mkdocs command fails, the build does NOT show the failure. Is there a way to have the "cmake -P" command pick up the fact that the cmake script failed so that the build fails or throws a warning/error? Hi Mike: I think you already have a good specific answer to your question, but just out of curiosity could this CMake script approach be replaced by executing "/path/to/mkdocs" as the COMMAND in a custom command where your DREAM3D_MKDOCS_GENERATION custom target DEPENDS on the OUTPUT of that custom command? Or are there reasons not to implement this more usual custom command/custom target approach in this case? Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ -- 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] Return an Error Code (or something) from a CMake Script.
cmake -P usually do the right thing. Here you ignore the error because you only message (STATUS ...) Try adding message (ERROR ...) or message (FATAL_ERROR ...) when execute_process producer error and tout custom command should faim. Le 26 févr. 2018 20:19, "Michael Jackson"a écrit : > In our CMake based project I generate a *.cmake file which I call with the > following bit of code: > > add_custom_target(DREAM3D_MKDOCS_GENERATION ALL > COMMAND "${CMAKE_COMMAND}" -P "${docsCmakeFile}" > COMMENT "using mkdocs to generate the documentation" > ) > > Inside the generated file is the following cmake command: > > message(STATUS "Starting mkdocs execution. This can take a while.") > execute_process(COMMAND "/path/to/mkdocs" build > OUTPUT_VARIABLE mkdocs_gen_output > RESULT_VARIABLE mkdocs_gen_result > ERROR_VARIABLE mkdocs_gen_error > WORKING_DIRECTORY "/Users/mjackson/DREAM3D-Dev/D > REAM3D-Build/Debug/Documentation/mkdocs" > ) > message(STATUS "mkdocs_gen_result: ${mkdocs_gen_result}") > message(STATUS "mkdocs_gen_error: ${mkdocs_gen_error}") > message(STATUS "* > *") > message(STATUS "mkdocs_gen_output: ${mkdocs_gen_output}") > message(STATUS "* > *") > > > The issue that I am having is that if the mkdocs command fails, the build > does NOT show the failure. Is there a way to have the "cmake -P" command > pick up the fact that the cmake script failed so that the build fails or > throws a warning/error? > > Thanks > Mike Jackson > > > -- > > 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/opensou > rce/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] Return an Error Code (or something) from a CMake Script.
In our CMake based project I generate a *.cmake file which I call with the following bit of code: add_custom_target(DREAM3D_MKDOCS_GENERATION ALL COMMAND "${CMAKE_COMMAND}" -P "${docsCmakeFile}" COMMENT "using mkdocs to generate the documentation" ) Inside the generated file is the following cmake command: message(STATUS "Starting mkdocs execution. This can take a while.") execute_process(COMMAND "/path/to/mkdocs" build OUTPUT_VARIABLE mkdocs_gen_output RESULT_VARIABLE mkdocs_gen_result ERROR_VARIABLE mkdocs_gen_error WORKING_DIRECTORY "/Users/mjackson/DREAM3D-Dev/DREAM3D-Build/Debug/Documentation/mkdocs" ) message(STATUS "mkdocs_gen_result: ${mkdocs_gen_result}") message(STATUS "mkdocs_gen_error: ${mkdocs_gen_error}") message(STATUS "**") message(STATUS "mkdocs_gen_output: ${mkdocs_gen_output}") message(STATUS "**") The issue that I am having is that if the mkdocs command fails, the build does NOT show the failure. Is there a way to have the "cmake -P" command pick up the fact that the cmake script failed so that the build fails or throws a warning/error? Thanks Mike Jackson -- 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] Bug on Windows with Intel Fortran
On 2/23/2018 10:59 AM, Anthony Zukaitis wrote: On windows I found an issue with Visual studio where intel fortran was attempting to preprocess lowercase .f90 files. Intel's documentation states that it does not preprocess these files. Looking into the cmake source code I found: in Modules/Platform/Windows-Intel-Fortran line 3: set(_COMPILE_Fortran " /fpp") which looks to me like cmake is adding this flag by default to all fortran files not .F90 vs .f90. Also we are using our own preprocessor which would also complicate things. Can you guys remove the setting of this flag? Tony Please add the issue here: https://gitlab.kitware.com/cmake/cmake/issues -- 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.11.0-rc1-110-gf7430b2
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 f7430b2538211ea59d5a853148de3b282796bf6a (commit) via ba806600f721abdbb7d21e8c09d76d91cc554568 (commit) via 3bc18cd0fb0174af4e34dfc42263553e2127c4eb (commit) via e4df2313c172592cc83e4f1cd6a3f358cc07cb22 (commit) via 1f7ad8ab5c053a0c9680984eed507e0bfe68f5db (commit) via 8621a26c06f6d691b2d98fabf19f0195304ba0d1 (commit) via 8ab3660a1ed0bf213d297e4dc8a7c3548cb14555 (commit) via b6ef4bc329552eb3e4e39156c05f1e2944a88e89 (commit) via 2d1e5adaeb5827ebdd3111388f2fcda98656b8ac (commit) via a18147e93328af6754a44c72c563436efe358f42 (commit) via 076a356cd1972a149898fdba77d1dd83981447b4 (commit) via b723fe3d7d65a748ad53f77b1e0b014c673212fa (commit) from 25613b9fa46e6433f987e9e9f47533db3a0939f3 (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=f7430b2538211ea59d5a853148de3b282796bf6a commit f7430b2538211ea59d5a853148de3b282796bf6a Merge: ba80660 b6ef4bc Author: Brad KingAuthorDate: Mon Feb 26 14:01:56 2018 + Commit: Kitware Robot CommitDate: Mon Feb 26 09:02:07 2018 -0500 Merge topic 'extend_suppress_regeneration' b6ef4bc3 Document and extend the CMAKE_SUPPRESS_REGENERATION variable Acked-by: Kitware Robot Merge-request: !1792 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ba806600f721abdbb7d21e8c09d76d91cc554568 commit ba806600f721abdbb7d21e8c09d76d91cc554568 Merge: 3bc18cd 8ab3660 Author: Brad King AuthorDate: Mon Feb 26 14:00:55 2018 + Commit: Kitware Robot CommitDate: Mon Feb 26 09:01:24 2018 -0500 Merge topic 'outputconverter_speedup' 8ab3660a cmOutputConverter: Inline some functions and avoid string re-allocations Acked-by: Kitware Robot Acked-by: Pavel Solodovnikov Merge-request: !1788 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3bc18cd0fb0174af4e34dfc42263553e2127c4eb commit 3bc18cd0fb0174af4e34dfc42263553e2127c4eb Merge: e4df231 2d1e5ad Author: Brad King AuthorDate: Mon Feb 26 14:00:44 2018 + Commit: Kitware Robot CommitDate: Mon Feb 26 09:00:51 2018 -0500 Merge topic 'getsource_optimize' 2d1e5ada cmMakefile: Improve performance of GetSource for known files Acked-by: Kitware Robot Merge-request: !1764 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e4df2313c172592cc83e4f1cd6a3f358cc07cb22 commit e4df2313c172592cc83e4f1cd6a3f358cc07cb22 Merge: 1f7ad8a a18147e Author: Brad King AuthorDate: Mon Feb 26 13:59:24 2018 + Commit: Kitware Robot CommitDate: Mon Feb 26 08:59:32 2018 -0500 Merge topic 'ipo-support' a18147e9 MSVC,Clang,Flang: Add IPO support Acked-by: Kitware Robot Merge-request: !1721 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1f7ad8ab5c053a0c9680984eed507e0bfe68f5db commit 1f7ad8ab5c053a0c9680984eed507e0bfe68f5db Merge: 8621a26 076a356 Author: Brad King AuthorDate: Mon Feb 26 13:57:16 2018 + Commit: Kitware Robot CommitDate: Mon Feb 26 08:57:25 2018 -0500 Merge topic 'project-references-csharp-17678' 076a356c VS: Support C# project references Acked-by: Kitware Robot Merge-request: !1752 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8621a26c06f6d691b2d98fabf19f0195304ba0d1 commit 8621a26c06f6d691b2d98fabf19f0195304ba0d1 Merge: 25613b9 b723fe3 Author: Brad King AuthorDate: Mon Feb 26 13:55:58 2018 + Commit: Kitware Robot CommitDate: Mon Feb 26 08:56:09 2018 -0500 Merge topic 'vs-cpp-improvements' b723fe3d VS: Convert loops to C++11, other C++ improvements Acked-by: Kitware Robot Merge-request: !1786 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8ab3660a1ed0bf213d297e4dc8a7c3548cb14555 commit 8ab3660a1ed0bf213d297e4dc8a7c3548cb14555 Author: Frank Winklmeier AuthorDate: Thu Feb 22 16:05:40 2018 +0100 Commit: Frank Winklmeier CommitDate: Fri Feb 23 17:23:10 2018 +0100 cmOutputConverter: Inline some functions and avoid string re-allocations Use std::string (with correct initial size)
Re: [CMake] recusively calling make install
found:that was because of a project that was not compiling Le 26/02/2018 à 09:52, Stéphane Ancelot a écrit : Hi, I have got a master CMake file that includes subprojects as follow : add_subdirectory(proj1) add_subdirectory(proj2) src+proj1 +proj2 The main problem is that I can run make install in each project directory, but not from the top CMake directory in src dir how to propagate install in each projects? 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
[CMake] recusively calling make install
Hi, I have got a master CMake file that includes subprojects as follow : add_subdirectory(proj1) add_subdirectory(proj2) src+proj1 +proj2 The main problem is that I can run make install in each project directory, but not from the top CMake directory in src dir how to propagate install in each projects? 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