Skip to content

Commit 4a092b3

Browse files
committed
Keep original order of cmake invocations as much as possible
1 parent b4f82f4 commit 4a092b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmake/TargetObjLib.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ if(UNIX AND NOT APPLE)
4343
endif()
4444
elseif(WIN32)
4545
target_link_libraries(lslobj PRIVATE iphlpapi winmm mswsock ws2_32)
46+
target_compile_definitions(lslobj
47+
PRIVATE
48+
_CRT_SECURE_NO_WARNINGS
49+
PUBLIC
50+
_WIN32_WINNT=${LSL_WINVER}
51+
)
52+
if(BUILD_SHARED_LIBS)
53+
# set_target_properties(lslobj
54+
# PROPERTIES
55+
# WINDOWS_EXPORT_ALL_SYMBOLS ON
56+
# )
57+
endif(BUILD_SHARED_LIBS)
4658
endif()
4759

4860
# Compiler settings

0 commit comments

Comments
 (0)