mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'ninja-multi-export-all-symbols'
6fc4bfa11c Ninja Multi-Config: Fix bug in CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex Reinking <alex_reinking@berkeley.edu>
Merge-request: !4825
This commit is contained in:
@@ -2651,7 +2651,8 @@ void cmGeneratorTarget::ComputeModuleDefinitionInfo(
|
||||
info.DefFileGenerated = false;
|
||||
#endif
|
||||
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()) {
|
||||
info.DefFile = info.Sources.front()->GetFullPath();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
enable_language(C)
|
||||
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
|
||||
file(TOUCH ${CMAKE_BINARY_DIR}/empty.cmake)
|
||||
include(${CMAKE_BINARY_DIR}/empty.cmake)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user