mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 14:40:48 +08:00
Ninja Multi-Config: Fix bug in CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
Fixes: #20775
This commit is contained in:
@@ -2529,7 +2529,8 @@ void cmGeneratorTarget::ComputeModuleDefinitionInfo(
|
|||||||
info.DefFileGenerated = false;
|
info.DefFileGenerated = false;
|
||||||
#endif
|
#endif
|
||||||
if (info.DefFileGenerated) {
|
if (info.DefFileGenerated) {
|
||||||
info.DefFile = this->ObjectDirectory /* has slash */ + "exports.def";
|
info.DefFile =
|
||||||
|
this->GetObjectDirectory(config) /* has slash */ + "exports.def";
|
||||||
} else if (!info.Sources.empty()) {
|
} else if (!info.Sources.empty()) {
|
||||||
info.DefFile = info.Sources.front()->GetFullPath();
|
info.DefFile = info.Sources.front()->GetFullPath();
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
enable_language(C)
|
enable_language(C)
|
||||||
|
|
||||||
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||||
|
|
||||||
file(TOUCH ${CMAKE_BINARY_DIR}/empty.cmake)
|
file(TOUCH ${CMAKE_BINARY_DIR}/empty.cmake)
|
||||||
include(${CMAKE_BINARY_DIR}/empty.cmake)
|
include(${CMAKE_BINARY_DIR}/empty.cmake)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user