[CMake] Cuda with CMake
I am a beginner on creating Visual projects with CMake for Cuda applications. I use the following CMakeLists cmake_minimum_required(VERSION 2.8) PROJECT(FermeHedge) #Searching CUDA FIND_PACKAGE(CUDA) #Include the FindCUDA script INCLUDE(FindCUDA) SET(SOURCES aleat_lin.cu init.cu io.cu main.cu tools.cu vars.cu aleat_lin.h init.h io.h timer.h tools.h types.h vars.h ) ADD_EXECUTABLE(FermeHedge ${SOURCES}) and I have the following generation errors Configuring done CMake Error: CMake can not determine linker language for target:FermeHedge CMake Error: CMake can not determine linker language for target:FermeHedge CMake Error: CMake can not determine linker language for target:FermeHedge Generating done I think that I should set up some paths manually, but I don't know which ones. Thanks for help Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net ___ 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] .vfproj with cmake
Hi, I don't have the file cmLocalVisualStudio7Generator.cxx in my CMake directories. What should I do? Should I add it, if yes, could you send it to me? Thank you for help. > lokmane.abbas-turki wrote: > > > > Hi, > > > > I have already sent this email but I still don't receive an answer. > > Could you please tell me what should I do to build a simple .vfproj with > > cmake without a version conflict. > > > > > > CMake does not support this version currently. > > > To fix it temporarily you can hack this method: > > Source/cmLocalVisualStudio7Generator.cxx > > void > cmLocalVisualStudio7Generator > ::WriteProjectStartFortran(std::ostream& fout, > const char *libName, > cmTarget & target) > { > > cmGlobalVisualStudio7Generator* gg = > static_cast(this->GlobalGenerator); > fout << "\n" > << " > << "\tProjectCreator=\"Intel Fortran\"\n" > << "\tVersion=\"9.10\"\n"; > const char* keyword = target.GetProperty("VS_KEYWORD"); > > > Make this change in the file: > > Version="9.10" to Version="11.0" > > -Bill > > > > > > *** Lokmane ABBAS-TURKI 13 Résidence Hautes Bergères 91940 Les Ulis, FRANCE Tel: 01 69 07 02 91 *** Laposte.net fête ses 10 ans ! Gratuite, garantie à vie et déjà utilisée par des millions d'internautes... vous aussi, pour votre adresse e-mail, choisissez laposte.net. Laposte.net, bien + qu'une messagerie ___ 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] .vfproj with cmake
Hi, I have already sent this email but I still don't receive an answer. Could you please tell me what should I do to build a simple .vfproj with cmake without a version conflict. Best regards. Lokman. > > OK, can you try this. > > > 1. Run cmake --debug-trycompile > > 2. Do not load the project into the IDE. > > 3. Edit the cmTryCompileExec.vfproj file created by CMake, > > Make this change in the file: > > Version="9.10" to Version="11.0" > > 4. Try to load in the IDE, it should not give an error at this point. > Yes, it does not give an error. > > If this works, then we are going to have to change > cmLocalVisualStudio7Generator.cxx to output the right version of Fortran > project files. I don't have this file in my CMake and Visual Studio directories. Lokman. > > -Bill > > Créez votre adresse électronique prenom@laposte.net 1 Go d'espace de stockage, anti-spam et anti-virus intégrés. ___ 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] .vfproj with cmake
> Message du 18/08/09 22:56 > De : "Bill Hoffman" > A : "lokmane.abbas-turki" > Copie à : > Objet : Re: [CMake] .vfproj with cmake > > > OK, can you try this. > > > 1. Run cmake --debug-trycompile > > 2. Do not load the project into the IDE. > > 3. Edit the cmTryCompileExec.vfproj file created by CMake, > > Make this change in the file: > > Version="9.10" to Version="11.0" > > 4. Try to load in the IDE, it should not give an error at this point. > Yes, it does not give an error. > > If this works, then we are going to have to change > cmLocalVisualStudio7Generator.cxx to output the right version of Fortran > project files. I don't have this file in my CMake and Visual Studio directories. Lokman. > > -Bill > > Créez votre adresse électronique prenom@laposte.net 1 Go d'espace de stockage, anti-spam et anti-virus intégrés. ___ 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] .vfproj with cmake
Please, find attached to this email the CMakeError.log file. Thank you. Lokman. > Message du 14/08/09 14:17 > De : "Bill Hoffman" > A : "lokmane.abbas-turki" > Copie à : cmake@cmake.org > Objet : Re: [CMake] .vfproj with cmake > > > lokmane.abbas-turki wrote: > > > > Hi, > > > > I cannot create a Visual Frotran Project using Intel Fortran 11.0 on > > Visual Studio 9. When I press "configure" on the CMake GUI I have the > > following error: > > > > CMake Error at C:/PRogram Files/CMake > > 2.6/share/cmake-2.6/Modules/CMakeTestFortranCompiler.cmake:25 (MESSAGE): > > The Fortran compiler "C:/Program > > Files/Intel/Compiler/11.0/061/fortran/Bin/IA32/ifort.exe" is not able to > > compile a simple test program. > > > > What is in the CMakeError.log file? > > -Bill > > Créez votre adresse électronique prenom@laposte.net 1 Go d'espace de stockage, anti-spam et anti-virus intégrés. CMakeError.log Description: Binary data ___ 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] .vfproj with cmake
Hi, I cannot create a Visual Frotran Project using Intel Fortran 11.0 on Visual Studio 9. When I press "configure" on the CMake GUI I have the following error: CMake Error at C:/PRogram Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestFortranCompiler.cmake:25 (MESSAGE): The Fortran compiler "C:/Program Files/Intel/Compiler/11.0/061/fortran/Bin/IA32/ifort.exe" is not able to compile a simple test program. My program is a simple Hello world program: program Console5 implicit none print *, 'Hello World' end program Console5 and my CmakeLists is: PROJECT(HelloW Fortran) add_executable (HelloW Console5.f90) Could you please help me with this problem. Créez votre adresse électronique prenom@laposte.net 1 Go d'espace de stockage, anti-spam et anti-virus intégrés. ___ 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