diff options
author | Brad King <brad.king@kitware.com> | 2016-07-20 15:26:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-21 15:05:22 (GMT) |
commit | 13a6ff31becea16d567b23abc68bfa8aa75365ce (patch) | |
tree | c7a0005b500f8f0c52c49008bc7e272821cd170b /Tests/RunCMake/AutoExportDll/say.cxx | |
parent | df14a98e9c4af316cd5e75d6af8cc7b75da2db8f (diff) | |
download | CMake-13a6ff31becea16d567b23abc68bfa8aa75365ce.zip CMake-13a6ff31becea16d567b23abc68bfa8aa75365ce.tar.gz CMake-13a6ff31becea16d567b23abc68bfa8aa75365ce.tar.bz2 |
VS: Fix WINDOWS_EXPORT_ALL_SYMBOLS for object libraries
Teach Visual Studio generators to include object files from object
libraries in the list of objects whose symbols are to be exported.
The Makefile and Ninja generators already did this. Update the
test to cover this case.
Reported-by: Bertrand Bellenot <Bertrand.Bellenot@cern.ch>
Diffstat (limited to 'Tests/RunCMake/AutoExportDll/say.cxx')
-rw-r--r-- | Tests/RunCMake/AutoExportDll/say.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/AutoExportDll/say.cxx b/Tests/RunCMake/AutoExportDll/say.cxx index 9ca8d31..e966b1f 100644 --- a/Tests/RunCMake/AutoExportDll/say.cxx +++ b/Tests/RunCMake/AutoExportDll/say.cxx @@ -11,6 +11,7 @@ extern "C" { int WINAPI foo(); // test regular C int bar(); +int objlib(); } // test c++ functions @@ -39,6 +40,7 @@ int main() foo(); printf("\n"); bar(); + objlib(); printf("\n"); return 0; } |