Note: This issue is only reproduced on the pre-release channel.
Repro steps:
Create a new folder named 'CMakeProject1' and open it with vscode.
Create a file named CMakeLists.txt with the following content:
cmake_minimum_required(VERSION 3.8)
project(CMakeProject1)
add_executable(CMakeProject1 "CMakeProject1.cpp" "CMakeProject1.h")
enable_testing()
add_executable(UnitTest "test.cpp")
add_test(UnitTest0 UnitTest 0)
add_test(UnitTest1 UnitTest 1)
Create a file named test.cpp with the following content:
include
auto main() -> int { std::cout << "hello world" << std::endl; }
Create a file named CMakeProject1.cpp with the following content:
include "CMakeProject1.h"
using namespace std;
int main()
{
cout << "Hello CMake." << endl;
return 0;
}
Create a file named “CMakeProject1.h” with the following content:
Brief Issue Summary
Note: This issue is only reproduced on the pre-release channel.
Repro steps:
include
include "CMakeProject1.h"
pragma once
Actual results:
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response