summaryrefslogtreecommitdiffstats
path: root/src/entrypoint/EntryPointMinGW32Target.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/entrypoint/EntryPointMinGW32Target.cmake.in')
-rw-r--r--src/entrypoint/EntryPointMinGW32Target.cmake.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/entrypoint/EntryPointMinGW32Target.cmake.in b/src/entrypoint/EntryPointMinGW32Target.cmake.in
new file mode 100644
index 0000000000..81ee970d6c
--- /dev/null
+++ b/src/entrypoint/EntryPointMinGW32Target.cmake.in
@@ -0,0 +1,7 @@
+# Add EntryPointMinGW32, an imported library that ensures that -lmingw32 comes before
+# EntryPointImplementation on the linker command line.
+include_guard()
+add_library(EntryPointMinGW32 INTERFACE IMPORTED)
+set_property(TARGET EntryPointMinGW32 PROPERTY IMPORTED_LIBNAME mingw32)
+target_link_libraries(EntryPointMinGW32
+ INTERFACE @INSTALL_CMAKE_NAMESPACE@::EntryPointImplementation)