So to clarify when using the intel compiler what is the exact generator and toolset you are specifying to CMake?
On Fri, Jun 9, 2017 at 10:05 AM, Mamales, Petros <petros.mama...@citi.com> wrote: > Hi Robert, > Thank you for your response. > However, this mail was superseded by another one - actually this being my > first email to the mailing list I received notification that it would not get > published as I was not yet a member. > As it turns out, it does find the toolset (I am very curious as to how, > actually, as I spent considerable time to second-guess it). However the > compiler fails to generate code due to missing libraries when it tries to > perform its tests. > Any idea on how I can provide with extra include/lib directories through > CMake to the "tester"(MSBuild?)? (all these happen upon declaration of a > project as a c++ one). > Here is the ouput I get in the error log (copying from my follow-up email): > Compiling the CXX compiler identification source file > "CMakeCXXCompilerId.cpp" failed. > Compiler: > Build flags: > Id flags: > > The output was: > 1 > Microsoft (R) Build Engine version 14.0.25420.1 > Copyright (C) Microsoft Corporation. All rights reserved. > > Build started 6/8/2017 12:09:12 PM. > Project > "C:\_petros\_dev\math_dev\_build_trees\x64\vc14-intel-17_0_0\CMakeFiles\3.9.0-rc2\CompilerIdCXX\CompilerIdCXX.vcxproj" > on node 1 (default targets). > PrepareForBuild: > Creating directory "Debug\". > Creating directory "Debug\CompilerIdCXX.tlog\". > InitializeBuildStatus: > Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because > "AlwaysCreate" was specified. > MessageBuildingWithCompiler: > Building with Intel(R) C++ Compiler 17.0 > ClCompile: > ***** ClCompile (x64 - Intel C++) > C:\Program Files > (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\bin\intel64\icl.exe > /c /Qm64 /nologo /W0 /Od /D __INTEL_COMPILER=1700 /D _MBCS /EHsc /RTC1 /MDd > /GS /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc140.pdb" /TP > CMakeCXXCompilerId.cpp > CMakeCXXCompilerId.cpp > Link: > C:\Program Files > (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\bin\intel64\xilink.exe > -qm64 /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib > user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib > ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST > /manifest:embed /MANIFESTUAC:"level='asInvoker' uiAccess='false'" > /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT > /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj > LINK : : error LNK1104: cannot open file 'libmmdd.lib' > [C:\_petros\_dev\math_dev\_build_trees\x64\vc14-intel-17_0_0\CMakeFiles\3.9.0-rc2\CompilerIdCXX\CompilerIdCXX.vcxproj] > Done Building Project > "C:\_petros\_dev\math_dev\_build_trees\x64\vc14-intel-17_0_0\CMakeFiles\3.9.0-rc2\CompilerIdCXX\CompilerIdCXX.vcxproj" > (default targets) -- FAILED. > > Build FAILED. > > Thank you for trying to help, > Petros > > PS: the follow-up email has title: > CMake problem with intel parallel studio 2017 > > > > > > -----Original Message----- > From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Robert Maynard > Sent: Friday, June 09, 2017 8:57 AM > To: Valmiki Rampersad > Cc: cmake@cmake.org > Subject: Re: [CMake] Choosing Toolset v140 for Generator VS 15 2017 Win64 > > Hi, > > Can you provide the contents of the build directory file > CMakeFiles/CMakeError.log . That might help us figure out why the toolset is > not found > > On Tue, May 30, 2017 at 10:44 PM, Valmiki Rampersad > <valmiki_ramper...@hotmail.com> wrote: >> I have Visual Studio 2017 Community, with toolsets v141 and v140, installed. >> >> >> If I run 'cmake -G "Visual Studio 15 2017 Win64" -T v141', it >> correctly configures and generates the project. >> >> >> However, if I run 'cmake -G "Visual Studio 15 2017 Win64" -T v140' it >> returns with the errors "No CMAKE_C_COMPILER could be found" and "No >> CMAKE_CXX_COMPILER could be found". >> >> >> I am using CMake 3.8.1. Any help in solving this would be greatly >> appreciated! >> >> >> -- >> >> Powered by >> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d= >> DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v6 >> 9MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=3UW1rsfR6g_UG5 >> 3Giev2lxbJ-pjnyHBWRl3QcozFUvs&e= >> >> Please keep messages on-topic and check the CMake FAQ at: >> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cmake.org_Wiki >> _CMake-5FFAQ&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-C >> cUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s >> =glBhkytNpCUWymoiA2Qm3kGf9KUR51IIk53Rsqu_O3c&e= >> >> Kitware offers various services to support the CMake community. For >> more information on each offering, please visit: >> >> CMake Support: >> https://urldefense.proofpoint.com/v2/url?u=http-3A__cmake.org_cmake_he >> lp_support.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tg >> k-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijC >> o&s=XJtd19WQD61RumQLmDdm3016goUhr-1paAzj8h47_5A&e= >> CMake Consulting: >> https://urldefense.proofpoint.com/v2/url?u=http-3A__cmake.org_cmake_he >> lp_consulting.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK >> 3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMR >> ijCo&s=1fSnCHDLPp8-rg01GYrwY76ZZEkgKIxqnTIku-8GBKU&e= >> CMake Training Courses: >> https://urldefense.proofpoint.com/v2/url?u=http-3A__cmake.org_cmake_he >> lp_training.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3t >> gk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRij >> Co&s=3g9Yq-L8ue1PSJyzqw8BsXdDt-r5KxmW9oLcrn97JLw&e= >> >> Visit other Kitware open-source projects at >> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_op >> ensource_opensource.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt >> 4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b >> 0TYJMRijCo&s=OMrg7dzX0MoL6AsWHjOjOSMtNwPaD5hFCXv5LdKr658&e= >> >> Follow this link to subscribe/unsubscribe: >> https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com >> _mailman_listinfo_cmake&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4 >> ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0 >> TYJMRijCo&s=-PHDB9zQzrfjrFj71RyQcBlwjTRJStYjKgWbxrbyudo&e= > -- > > Powered by > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=3UW1rsfR6g_UG53Giev2lxbJ-pjnyHBWRl3QcozFUvs&e= > > Please keep messages on-topic and check the CMake FAQ at: > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cmake.org_Wiki_CMake-5FFAQ&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=glBhkytNpCUWymoiA2Qm3kGf9KUR51IIk53Rsqu_O3c&e= > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: > https://urldefense.proofpoint.com/v2/url?u=http-3A__cmake.org_cmake_help_support.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=XJtd19WQD61RumQLmDdm3016goUhr-1paAzj8h47_5A&e= > CMake Consulting: > https://urldefense.proofpoint.com/v2/url?u=http-3A__cmake.org_cmake_help_consulting.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=1fSnCHDLPp8-rg01GYrwY76ZZEkgKIxqnTIku-8GBKU&e= > CMake Training Courses: > https://urldefense.proofpoint.com/v2/url?u=http-3A__cmake.org_cmake_help_training.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=3g9Yq-L8ue1PSJyzqw8BsXdDt-r5KxmW9oLcrn97JLw&e= > > Visit other Kitware open-source projects at > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=OMrg7dzX0MoL6AsWHjOjOSMtNwPaD5hFCXv5LdKr658&e= > > Follow this link to subscribe/unsubscribe: > https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_cmake&d=DwICAg&c=j-EkbjBYwkAB4f8ZbVn1Fw&r=6_wuzZXSt4ORpgK3tgk-CcUFf9XSS7xAF6v69MPzaXs&m=3P1PLWvluZuxCLJLeuyiWC2Faruz7Sk2b0TYJMRijCo&s=-PHDB9zQzrfjrFj71RyQcBlwjTRJStYjKgWbxrbyudo&e= -- 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: http://public.kitware.com/mailman/listinfo/cmake