[cmake-developers] [CMake 0013174]: Option 'GZ' has been deprecated use 'RTC1' instead of 'GZ'
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13174 == Reported By:RolandSchulz Assigned To: == Project:CMake Issue ID: 13174 Category: CMake Reproducibility:always Severity: minor Priority: normal Status: new == Date Submitted: 2012-04-28 12:11 EDT Last Modified: 2012-04-28 12:11 EDT == Summary:Option 'GZ' has been deprecated use 'RTC1' instead of 'GZ' Description: CMake is using GZ flag for Intel on Windows which is deprecated. This has been fixed for MSVC since a long time: http://www.cmake.org/pipermail/cmake/2006-February/008162.html == Issue History Date ModifiedUsername FieldChange == 2012-04-28 12:11 RolandSchulz New Issue == -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [CMake] Eclipse project and MKL libraries
2012/4/28 Giovanni Azua brave...@gmail.com: On Apr 27, 2012, at 10:44 PM, Eric Noulard wrote: What do you mean executes just fine from the command line? I mean that I can build all the targets in command line without problem and execute them without any problems. Command line that you crafted by hand or command line generated by CMake using say Makefile generator? [...] Looks like you are using target_link_library in your CMakeLists.txt without using corresponding find module Could you give us an excerpt of your CMakeLists.txt? Ij particular the CMake script corresponding to your benchmark executable. Here it is: #* find_package(MKL) set(HAVE_INTEL_MKL ${MKL_FOUND}) if (MKL_FOUND) include_directories(${MKL_INCLUDE_DIRS}) link_directories(${MKL_LIBRARY_DIRS}) endif() Using link_directories is as stated in the documentation rarely necessary see cmake --help-command link_directories You should bettte use absolute path to libraries in your target_link_libraries(benchmark ) thus for MKL package you should do something like: target_link_libraries(benchmark ${MKL_LIBRARIES}) I cannot ensure this is OK because the FindMKL.cmake module does not seem to be in CMake source. # [snip] sfo_executable(benchmark test/benchmark.cc) target_link_libraries(benchmark submodularity xxx_func_fw qr_updates) again if submodularity xxx_func_fw qr_updates are library target from you projevct its ok if they are external libraries you should find their complete path and use them. if (UNIX) find_library(RT_LIBRARY rt) if(RT_LIBRARY) target_link_libraries(benchmark ${RT_LIBRARY}) endif() endif() #* Thank you. Best regards, Giovanni -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Ralph Barth/AEH/DBS/GDB ist außer Haus. Original subject: 'CMake Digest, Vol 96, Issue 63'
Ralph Barth will be out of the office starting 28/04/2012 and will be returning on 02/05/2012. Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten. WLLM related questions pls. contact Sebastian Neusüß and Jens Keil. Theo Price Feed from EDRE pls contact Jens Keil - Deutsche Börse AG Chairman of the Supervisory Board/ Vorsitzender des Aufsichtsrats: Dr. Manfred Gentz Executive Board/Vorstand: Reto Francioni (Chief Executive Officer/Vorsitzender), Andreas Preuss (Deputy Chief Executive Officer/ stellv. Vorsitzender), Frank Gerstenschläger, Michael Kuhn, Gregor Pottmeyer, Jeffrey Tessler. Aktiengesellschaft with registered seat in/mit Sitz in Frankfurt am Main. Commercial register/Handelsregister: Local court/Amtsgericht Frankfurt am Main HRB 32232. - Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen. Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren dieser E-Mail oder die unbefugte Weitergabe der enthaltenen Informationen ist nicht gestattet. The information contained in this message is confidential or protected by law. If you are not the intended recipient, please contact the sender and delete this message. Any unauthorised copying of this message or unauthorised distribution of the information contained herein is prohibited. Legally required information for business correspondence/ Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz: http://deutsche-boerse.com/letterhead -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Eclipse project and MKL libraries
2012/4/28 Giovanni Azua brave...@gmail.com: On Apr 28, 2012, at 8:56 AM, Eric Noulard wrote: I mean that I can build all the targets in command line without problem and execute them without any problems. Command line that you crafted by hand or command line generated by CMake using say Makefile generator? OK I hope this is more clear otherwise I can try writing in french :) Posso provare in Italiano anch'io :-] I have a cmake project, with a bunch of library and exec cmake targets, no manual make files and no by hand anything, they all build correctly from cmake generated make, and they execute correctly without any manual tweaking, why this works correctly from command line and the Eclipse project doesn't? e.g. $ rm -rf build mkdir build cd build cmake -G Unix Makefiles -DCMAKE_BUILD_TYPE=Debug ../code/ $ make 100% all good now if I do: $ cmake -G Eclipse CDT4 - Unix Makefiles ../code/ the generated eclipse project does not compile and does not execute/debug correctly. Now its clear, thanks. Which version of CMake are you using? The discrepancy between Eclipse and Makefile may be explained by difference in the environment. In your shell do you define some value for LD_LIBRARY_PATH? Try: echo $(LD_LIBRARY_PATH) Do you launch eclipse from the command line or by clicking on some menu/icon? Try launching eclipse from the very same command line you launch make. Using link_directories is as stated in the documentation rarely necessary see cmake --help-command link_directories why is it supported then? For backward compatibility reason mainly and some rare case I don't even have one in mind. You should bettte use absolute path to libraries in your target_link_libraries(benchmark ) really??? this sounds like breaking the build from one environment to the next. Nope because you do something like: find_package(MKL REQUIRED) include_directories(${MKL_INCLUDE_DIRS}) add_executable(bench bench.c) target_link_libraries(bench ${MKL_LIBRARIES}) which is perfectlty portable, as soon as find_package(MKL REQUIRED) does its job and define MKL_xxx variables properly. I cannot ensure this is OK because the FindMKL.cmake module does not seem to be in CMake source. it is just another cmake script to find the MKL library ... there are several versions of this in the net. precisely. Check in the copy you have if MKL_LIBRARIES is defined or not, if it is then use it, if it is not then I suggest you defined it yourself then use it. -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Is there a setting for Windows DLL file targets that's similar to CMAKE_EXE_LINKER_FLAGS ?
Hi David, I believe what you're looking for is CMAKE_SHARED_LINKER_FLAGS. Petr On Sat, Apr 28, 2012 at 1:10 AM, david_bjorn...@agilent.com wrote: We here are trying to setup VS2010 for generating code coverage dataand for that I need to add a linker flag /PROFILE . For adding that to exe we have a cmake variable CMAKE_EXE_LINKER_FLAGS . But that works only for exe and you add a similar varibale for adding linker flags for DLLs. In other words is there a setting for Windows DLL file targets that's similar to CMAKE_EXE_LINKER_FLAGS ? ++David-Bjornbak; -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Eclipse project and MKL libraries
On Apr 28, 2012, at 8:56 AM, Eric Noulard wrote: target_link_libraries(benchmark ${MKL_LIBRARIES}) I cannot ensure this is OK because the FindMKL.cmake module does not seem to be in CMake source. Thank you! this solved the compilation issue in Mac OS X still a progress :) but not in Ubuntu 12.04 :( I still can't still debug/execute. I get the following error trying to debug/execute: dyld: Library not loaded: libmkl_rt.dylib Referenced from: /Users/bravegag/code/fastcode_project/build_debug/test_matrix Reason: image not found I added the libmkl_rt.so to the project but still doesn't help. Can anyone advice? TIA, Best regards, Giovanni -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Eclipse project and MKL libraries
2012/4/28, Giovanni Azua brave...@gmail.com: On Apr 28, 2012, at 8:56 AM, Eric Noulard wrote: target_link_libraries(benchmark ${MKL_LIBRARIES}) I cannot ensure this is OK because the FindMKL.cmake module does not seem to be in CMake source. Thank you! this solved the compilation issue in Mac OS X still a progress :) but not in Ubuntu 12.04 :( I still can't still debug/execute. Really I can't give you more valuable advice without having a way to reproduce the issue. When does the error happen on Ubuntu? Compile-time? Link time? Debug time? What error output do you get? Would you be able to set up a simplistic project which exhibit the issue and post the whole source code here? I get the following error trying to debug/execute: dyld: Library not loaded: libmkl_rt.dylib Referenced from: /Users/bravegag/code/fastcode_project/build_debug/test_matrix Reason: image not found I added the libmkl_rt.so to the project but still doesn't help. Is libmkl_rt in the MKL_LIBRARIES library list? Can anyone advice? Check RPATH setting of your executable http://www.cmake.org/Wiki/CMake_RPATH_handling If libraries are not found at debug time either RPATH is not set in the build tree or the library is loaded indirectly and/or dynamically AND explicitely or LD_LIBRARY_PATH has been set to innappropriate value. Can you debug from the command line using gdb? -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Eclipse project and MKL libraries
Am Samstag, 28. April 2012, 16:53:01 schrieb Giovanni Azua: On Apr 28, 2012, at 8:56 AM, Eric Noulard wrote: target_link_libraries(benchmark ${MKL_LIBRARIES}) I cannot ensure this is OK because the FindMKL.cmake module does not seem to be in CMake source. Thank you! this solved the compilation issue in Mac OS X still a progress :) but not in Ubuntu 12.04 :( I still can't still debug/execute. I get the following error trying to debug/execute: dyld: Library not loaded: libmkl_rt.dylib Referenced from: /Users/bravegag/code/fastcode_project/build_debug/test_matrix Reason: image not found .dylib on Ubuntu? Shouldn't that be .so? HS -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Wiki: version compatibility matrix
Hi David, I tried to upload the new matrix today, but the page on standard modules is too big (112kb): On my current internet connection I get a timeout before the upload finishes. Maybe you can do the upload? The text is available from https://github.com/jzarl/cmake- vcm/blob/master/split_page/StandardCMakeModules.txt Otherwise, I'll do it some time next week. Johannes On Thursday, April 19, 2012 11:20:48 PM David Cole wrote: Hi Johannes, Time to update again, this time for CMake 2.8.8. Do you have time to do the update again in the next week or two? Thanks, David -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Eclipse project and MKL libraries
Hi HS, On Apr 28, 2012, at 6:49 PM, Hendrik Sattler wrote: I get the following error trying to debug/execute: dyld: Library not loaded: libmkl_rt.dylib Referenced from: /Users/bravegag/code/fastcode_project/build_debug/test_matrix Reason: image not found .dylib on Ubuntu? Shouldn't that be .so? HS lol good catch no, I am testing in both environments Mac OS X and Ubuntu, the error there was while trying to debug/execute from Eclipse C++ in Mac OS X. But I guess this is something not related to CMake, though it would be nice if CMake would generate .launch files for all executable targets since it has all the needed information for doing that. Isn't there such feature? I guess for the debug/execute bit I will have to post to the Eclipse and/or MKL forum. Best regards, Giovanni -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[Cmake-commits] CMake branch, next, updated. v2.8.8-2746-gdd550af
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, next has been updated via dd550af8461ccfb0f99dbccb3064b3cd97a2fa44 (commit) via 08db81e00807c1dfc6846e9b3228c54dfe37a67f (commit) via d14c02434a51fa9066febf15e336362d3adefd4a (commit) from 07a1ffb00d466a52a13d6a270496099bb46acc78 (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 - http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dd550af8461ccfb0f99dbccb3064b3cd97a2fa44 commit dd550af8461ccfb0f99dbccb3064b3cd97a2fa44 Merge: 07a1ffb 08db81e Author: David Cole david.c...@kitware.com AuthorDate: Sat Apr 28 15:37:33 2012 -0400 Commit: CMake Topic Stage kwro...@kitware.com CommitDate: Sat Apr 28 15:37:33 2012 -0400 Merge topic 'fix-12564-avoid-git-re-clones' into next 08db81e ExternalProject: Avoid repeated git clone operations (#12564) d14c024 ExternalProject: Refactor repeated code into function (#12564) http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=08db81e00807c1dfc6846e9b3228c54dfe37a67f commit 08db81e00807c1dfc6846e9b3228c54dfe37a67f Author: David Cole david.c...@kitware.com AuthorDate: Sat Apr 28 11:40:12 2012 -0400 Commit: David Cole david.c...@kitware.com CommitDate: Sat Apr 28 15:02:17 2012 -0400 ExternalProject: Avoid repeated git clone operations (#12564) By tracking a stamp file within the git clone script itself. Avoids a 2nd git clone operation after switching from Debug to Release builds in Visual Studio, or vice-versa. diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 1bca18c..0353e45 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -252,12 +252,23 @@ define_property(DIRECTORY PROPERTY EP_STEP_TARGETS INHERITED ) -function(_ep_write_gitclone_script script_filename source_dir git_EXECUTABLE git_repository git_tag src_name work_dir) +function(_ep_write_gitclone_script script_filename source_dir git_EXECUTABLE git_repository git_tag src_name work_dir gitclone_infofile gitclone_stampfile) file(WRITE ${script_filename} if(\${git_tag}\ STREQUAL \\) message(FATAL_ERROR \Tag for git checkout should not be empty.\) endif() +set(run 0) + +if(\${gitclone_infofile}\ IS_NEWER_THAN \${gitclone_stampfile}\) + set(run 1) +endif() + +if(NOT run) + message(STATUS \Avoiding repeated git clone, stamp file is up to date: '${gitclone_stampfile}'\) + return() +endif() + execute_process( COMMAND \${CMAKE_COMMAND} -E remove_directory \${source_dir}\ RESULT_VARIABLE error_code @@ -302,6 +313,19 @@ if(error_code) message(FATAL_ERROR \Failed to update submodules in: '${work_dir}/${src_name}'\) endif() +# Complete success, update the script-last-run stamp file: +# +execute_process( + COMMAND \${CMAKE_COMMAND} -E copy +\${gitclone_infofile}\ +\${gitclone_stampfile}\ + WORKING_DIRECTORY \${work_dir}/${src_name}\ + RESULT_VARIABLE error_code + ) +if(error_code) + message(FATAL_ERROR \Failed to copy script-last-run stamp file: '${gitclone_stampfile}'\) +endif() + ) @@ -1115,6 +1139,7 @@ function(_ep_add_download_command name) # _ep_write_gitclone_script(${tmp_dir}/${name}-gitclone.cmake ${source_dir} ${GIT_EXECUTABLE} ${git_repository} ${git_tag} ${src_name} ${work_dir} + ${stamp_dir}/${name}-gitinfo.txt ${stamp_dir}/${name}-gitclone-lastrun.txt ) set(comment Performing download step (git clone) for '${name}') set(cmd ${CMAKE_COMMAND} -P ${tmp_dir}/${name}-gitclone.cmake) http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d14c02434a51fa9066febf15e336362d3adefd4a commit d14c02434a51fa9066febf15e336362d3adefd4a Author: David Cole david.c...@kitware.com AuthorDate: Thu Apr 26 15:26:53 2012 -0400 Commit: David Cole david.c...@kitware.com CommitDate: Sat Apr 28 14:54:04 2012 -0400 ExternalProject: Refactor repeated code into function (#12564) Add private/internal-use-only function _ep_get_step_stampfile to get the name of the stamp file for a given step. The functionality provided by this commit should be identical to its parent commit. diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 1997572..1bca18c 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -824,15 +824,23 @@ function(_ep_get_configuration_subdir_suffix suffix_var) endfunction(_ep_get_configuration_subdir_suffix) -function(ExternalProject_Add_StepTargets name) - set(steps ${ARGN}) +function(_ep_get_step_stampfile name step stampfile_var) + ExternalProject_Get_Property(${name} stamp_dir) _ep_get_configuration_subdir_suffix(cfgdir) -
[Cmake-commits] CMake branch, master, updated. v2.8.8-87-gcfb909a
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 cfb909afb87be1f04ad0adf66db5f87ef26343b1 (commit) from 262a259e77177b964518a6195b8a2451fc99f0f1 (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 - http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cfb909afb87be1f04ad0adf66db5f87ef26343b1 commit cfb909afb87be1f04ad0adf66db5f87ef26343b1 Author: Kitware Robot kwro...@kitware.com AuthorDate: Sun Apr 29 00:01:03 2012 -0400 Commit: Kitware Robot kwro...@kitware.com CommitDate: Sun Apr 29 00:01:03 2012 -0400 CMake Nightly Date Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 53635f4..8bb088b 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ SET(CMake_VERSION_MAJOR 2) SET(CMake_VERSION_MINOR 8) SET(CMake_VERSION_PATCH 8) -SET(CMake_VERSION_TWEAK 20120428) +SET(CMake_VERSION_TWEAK 20120429) #SET(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) hooks/post-receive -- CMake ___ Cmake-commits mailing list Cmake-commits@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits