Hi,<div><br></div><div>should it work to use the NMake generator with a compiler wrapper like mpicc? If I try to use the mpicc from OpenMPI 1.6 it doesn't work (see below for messages). This is with cmake 2.8.8 and both with standard nmake and nmake-jom. It works fine without the wrapper and it also works find to compile a test program outside of cmake with the wrapper.</div>
<div><br></div><div>Roland</div><div><br></div><div><div><div>-- The C compiler identification is MSVC 16.0.40219.1</div><div>-- The CXX compiler identification is MSVC 16.0.40219.1</div><div>-- Check for working C compiler: c:/Program Files (x86)/OpenMPI_v1.6-x64/bin/mpicc.exe</div>
<div>-- Check for working C compiler: c:/Program Files (x86)/OpenMPI_v1.6-x64/bin/mpicc.exe -- broken</div><div>CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):</div>
<div> The C compiler "c:/Program Files (x86)/OpenMPI_v1.6-x64/bin/mpicc.exe" is</div><div> not able to compile a simple test program.</div><div><br></div><div> It fails with the following output:</div><div><br>
</div><div> Change Dir: C:/Users/Roland/git/gromacs.dev/msvc64.cuda5.mpi/CMakeFiles/CMakeTmp</div><div><br></div><div><br></div><div><br></div><div> Run Build Command:nmake /NOLOGO "cmTryCompileExec1137735111\fast"</div>
<div><br></div><div> "c:\Program Files (x86)\Microsoft Visual Studio</div><div> 10.0\VC\BIN\amd64\nmake.exe" -f</div><div> CMakeFiles\cmTryCompileExec1137735111.dir\build.make /nologo -L</div><div> CMakeFiles\cmTryCompileExec1137735111.dir\build</div>
<div><br></div><div> "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report</div><div> C:\Users\Roland\git\gromacs.dev\msvc64.cuda5.mpi\CMakeFiles\CMakeTmp\CMakeFiles</div><div> 1</div>
<div><br></div><div> Building C object</div><div> CMakeFiles/cmTryCompileExec1137735111.dir/testCCompiler.c.obj</div><div><br></div><div> c:\PROGRA~2\OPENMP~1.6-X\bin\mpicc.exe -o</div><div> CMakeFiles\cmTryCompileExec1137735111.dir\testCCompiler.c.obj -c</div>
<div> C:\Users\Roland\git\gromacs.dev\msvc64.cuda5.mpi\CMakeFiles\CMakeTmp\testCCompiler.c</div><div><br></div><div><br></div><div> Microsoft (R) C/C++ Optimizing Compiler Version <a href="tel:16.00.40219.01" value="+16004021901" target="_blank">16.00.40219.01</a> for x64</div>
<div><br></div>
<div> Copyright (C) Microsoft Corporation. All rights reserved.</div><div><br></div><div><br></div><div><br></div><div> cl : Command line warning D9035 : option 'o' has been deprecated and will</div><div> be removed in a future release</div>
<div><br></div><div> testCCompiler.c</div><div><br></div><div> Linking C executable cmTryCompileExec1137735111.exe</div><div><br></div><div> c:\PROGRA~2\OPENMP~1.6-X\bin\mpicc.exe</div><div> "CMakeFiles\cmTryCompileExec1137735111.dir\testCCompiler.c.obj" -o</div>
<div> cmTryCompileExec1137735111.exe</div><div><br></div><div> Microsoft (R) C/C++ Optimizing Compiler Version <a href="tel:16.00.40219.01" value="+16004021901" target="_blank">16.00.40219.01</a> for x64</div><div><br>
</div><div> Copyright (C) Microsoft Corporation. All rights reserved.</div>
<div><br></div><div><br></div><div><br></div><div> cl : Command line warning D9035 : option 'o' has been deprecated and will</div><div> be removed in a future release</div><div><br></div><div> testCCompiler.c.obj</div>
<div><br></div><div> c1 : fatal error C1083: Cannot open source file:</div><div> 'CMakeFiles\cmTryCompileExec1137735111.dir\testCCompiler.c.obj': No such</div><div> file or directory</div><div><br></div><div> NMAKE : fatal error U1077: 'c:\PROGRA~2\OPENMP~1.6-X\bin\mpicc.exe' :</div>
<div> return code '0x2'</div><div><br></div><div> Stop.</div><div><br></div><div> NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio</div><div> 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'</div>
<div><br></div><div> Stop.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> CMake will not be able to correctly generate this project.</div><div>Call Stack (most recent call first):</div>
<div> CMakeLists.txt:5 (project)</div></div>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br><a href="tel:865-241-1537" value="+18652411537" target="_blank">865-241-1537</a>, ORNL PO BOX 2008 MS6309<br>
</div>