Build (binary) dir cmake compiler configuration is (always?) outdated
Hi,
Using 3.8.0-rc2, win10 I found following.
a.cpp
- empty, CMakeLists.txt
:
add_executable(a a.cpp)
mkdir b1
cd b1
cmake ..
cd ..
mkdir b2
cd b2
mkdir CMakeFiles
mkdir CMakeFiles\3.8.0-rc2
xcopy /E /Y /Q ..\b1\CMakeFiles\3.8.0-rc2 CMakeFiles\3.8.0-rc2
cmake ..
All pre 3.8 versions shows:
-- Configuring done
-- Generating done
-- Build files have been written to: H:/Temp/15/b2
But 3.8.0-rc2 (prev rc's not tested) consider those copied files outdated and performs full c/cxx compiler, abi checks, so takes much time.
> cmake ..
-- Building for: Visual Studio 14 2015
-- 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/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/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 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/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
-- Build files have been written to: H:/Temp/15/b2