mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
cmBuildDatabase: fix language comparison for visibility
Only C++ sources need checked for `CXX_MODULES` file set types, not the other way around.
This commit is contained in:
@@ -447,7 +447,7 @@ cmBuildDatabase cmBuildDatabase::ForTarget(cmGeneratorTarget* gt,
|
||||
|
||||
bool isCXXModule = false;
|
||||
bool isPrivate = true;
|
||||
if (sf->GetLanguage() != "CXX"_s) {
|
||||
if (sf->GetLanguage() == "CXX"_s) {
|
||||
auto const* fs = gt->GetFileSetForSource(config, sf);
|
||||
if (fs && fs->GetType() == "CXX_MODULES"_s) {
|
||||
isCXXModule = true;
|
||||
|
@@ -138,7 +138,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "PATH:<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
@@ -285,7 +285,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_OTHER_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_OTHER_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
|
@@ -138,7 +138,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
|
@@ -138,7 +138,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "PATH:<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
|
@@ -138,7 +138,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "PATH:<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
|
@@ -138,7 +138,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "PATH:<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
@@ -285,7 +285,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_OTHER_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "PATH:<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_OTHER_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
|
@@ -138,7 +138,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "PATH:<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
|
@@ -180,7 +180,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
@@ -263,7 +263,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_OTHER_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
|
@@ -127,7 +127,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
|
@@ -127,7 +127,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
|
@@ -127,7 +127,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
|
@@ -180,7 +180,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
@@ -263,7 +263,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_OTHER_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
|
@@ -127,7 +127,7 @@
|
||||
"-Dtarget_interface_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/use_import_interfaces.dir<CONFIG_DIR>/use.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<IGNORE>"
|
||||
},
|
||||
|
@@ -138,7 +138,7 @@
|
||||
"-Dfrom_source_option"
|
||||
],
|
||||
"object": "PATH:CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable.cxx<OBJEXT>",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"provides": {
|
||||
"importable": "<BINARY_DIR>/CMakeFiles/export_build_database.dir<CONFIG_DIR>/importable<BMIEXT>"
|
||||
},
|
||||
|
Reference in New Issue
Block a user