[LOADCONFIG_APITEST] Tell GCC that the .def is not just included for fun,
authorMark Jansen <mark.jansen@reactos.org>
Sat, 18 Apr 2020 13:18:19 +0000 (15:18 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 19 Apr 2020 13:18:51 +0000 (15:18 +0200)
but that it should actually use it.

modules/rostests/apitests/loadconfig/CMakeLists.txt

index 8c0860b..d4327e5 100644 (file)
@@ -13,4 +13,10 @@ add_importlibs(loadconfig_apitest msvcrt kernel32 ntdll)
 #add_pch(loadconfig_apitest loadconfig.h SOURCE)
 add_rostests_file(TARGET loadconfig_apitest)
 
 #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)
 fixup_load_config(loadconfig_apitest)