https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bf54369dbbc77947a9ad8…
commit bf54369dbbc77947a9ad8979f9e3a49d085cb383
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sat Apr 18 15:18:19 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Apr 19 15:18:51 2020 +0200
[LOADCONFIG_APITEST] Tell GCC that the .def is not just included for fun,
but that it should actually use it.
---
modules/rostests/apitests/loadconfig/CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/rostests/apitests/loadconfig/CMakeLists.txt
b/modules/rostests/apitests/loadconfig/CMakeLists.txt
index 8c0860b7c13..d4327e5622d 100644
--- a/modules/rostests/apitests/loadconfig/CMakeLists.txt
+++ b/modules/rostests/apitests/loadconfig/CMakeLists.txt
@@ -13,4 +13,10 @@ add_importlibs(loadconfig_apitest msvcrt kernel32 ntdll)
#add_pch(loadconfig_apitest loadconfig.h SOURCE)
add_rostests_file(TARGET loadconfig_apitest)
+# Tell GCC again that we are really interested in exporting symols (who would have
figured that we want to use the .def we specified before?)
+set_target_properties(loadconfig_apitest
+ PROPERTIES
+ ENABLE_EXPORTS TRUE
+ DEFINE_SYMBOL "")
+
fixup_load_config(loadconfig_apitest)