You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like "Compile Active File" incorrectly parses empty defines from compile_commands.json. Instead of passing -DMY_DEFINE= to the compiler, it passes an empty argument.
CMakeLists.txt:
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(test C)
add_executable(testtest.c)
target_compile_definitions(testPUBLIC MY_DEFINE=)
Brief Issue Summary
It looks like "Compile Active File" incorrectly parses empty defines from
compile_commands.json
. Instead of passing-DMY_DEFINE=
to the compiler, it passes an empty argument.CMakeLists.txt
:test.c
:build/compile_commands.json
:"Compile Active File" output:
The text was updated successfully, but these errors were encountered: