Hi Harry,
Sorry to hear you got a crash while trying to generate a VS2015 project
using CMake 3.13. I just tried to reproduce your issue, but I could not.
Do you already get the crash with the following CMakeLists?
cmake_minimum_required( VERSION 3.13)
project(MyProject)
add_executable(MyProject MySource.cpp)
set_property(TARGET MyProject
PROPERTY INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE)
Below here, my command-line output (no crash).
F:\X\Src\MyProject\bin>call "C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_x64
-vcvars_ver=14.0
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.8.9
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86_x64'
F:\X\Src\MyProject\bin>cmake -Ax64 -G"Visual Studio 14 2015"
-DHDE_CREATE_DOCS=%MAKE_DOCS% -DBOOST_ROOT="C:\Libraries\boost_1_66_0"
../
-- Selecting Windows SDK version 10.0.14393.0 to target Windows
10.0.17134.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BOOST_ROOT
HDE_CREATE_DOCS
-- Build files have been written to: F:/X/Src/MyProject/bin
Harry Mallon wrote on 2018-11-22:
I just updated to CMake 3.13 (to get the IPO in Visual Studio). I am
using Visual Studio Build tools 2017 (with 2015 extra tools
installed).
This crashes (without any feedback):
call "C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86_x64
-vcvars_ver=14.0
cmake -Ax64 -G"Visual Studio 14 2015" -DHDE_CREATE_DOCS=%MAKE_DOCS%
-DBOOST_ROOT="C:\Libraries\boost_1_66_0" ../
However this works fine:
cmake -Ax64 -G"Visual Studio 15 2017" -DHDE_CREATE_DOCS=%MAKE_DOCS%
-DBOOST_ROOT="C:\Libraries\boost_1_66_0" ../
Any ideas? I don’t have a debugger on Windows to look at it at the
moment.
--
Niels Dekker
Scientific programmer
LKEB, Leiden University Medical Center
--
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:
https://cmake.org/mailman/listinfo/cmake