[CMake] FW: Visual Studio 2017

Hendrik Sattler post at hendrik-sattler.de
Tue Sep 19 14:47:45 EDT 2017



Am 19. September 2017 17:51:31 MESZ schrieb Randy Heiland <randy.heiland at gmail.com>:
>I failed to send my previous reply to the list - see below for that.
>This
>is a follow-on, using the repo mentioned previously.
>
>--- Attempt #1
>
>#   Pointing out that my Command Prompt shell doesn't need to know
>about
>the 'cl' compiler, in order to run cmake:
>C:\Users\Owner\dev\cmake_learn\cmake_learn-master\build>cl
>'cl' is not recognized as an internal or external command,
>operable program or batch file.
>
>
>C:\Users\Owner\dev\cmake_learn\cmake_learn-master\build>cmake ..
>-- Building for: Visual Studio 15 2017
>-- The C compiler identification is MSVC 19.11.25508.2
>-- The CXX compiler identification is MSVC 19.11.25508.2
>-- Check for working C compiler: C:/Program Files (x86)/Microsoft
>Visual
>Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
>-- Check for working C compiler: C:/Program Files (x86)/Microsoft
>Visual
>Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
>--
>works
>-- Detecting C compiler ABI info
>-- Detecting C compiler ABI info - done
>-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
>Visual
>Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
>-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
>Visual
>Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
>--
>works
>-- Detecting CXX compiler ABI info
>-- Detecting CXX compiler ABI info - done
>-- Detecting CXX compile features
>-- Detecting CXX compile features - done
>-- Found OpenMP_C: -openmp (found version "2.0")
>-- Found OpenMP_CXX: -openmp (found version "2.0")
>-- Configuring done
>-- Generating done
>-- Build files have been written to: C:/Users/Owner/dev/cmake_learn
>/cmake_learn-master/build
>
>This successfully builds the following files, but no Makefile so that I
>can
>simply run 'nmake' from the command line:

Maybe you should realize that any purposed use of nmake is outdated by years. You can build .sln files from command line just fine. CMake even wraps the command with --build option.

Only use nmake when you have no other options.

HS

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.


More information about the CMake mailing list