Skip to content

Commit d453e75

Browse files
committed
Keep original order of cmake invocations as much as possible
1 parent 0d8fcf2 commit d453e75

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
@@ -33,6 +33,18 @@ if(UNIX AND NOT APPLE)
3333
endif()
3434
elseif(WIN32)
3535
target_link_libraries(lslobj PRIVATE iphlpapi winmm mswsock ws2_32)
36+
target_compile_definitions(lslobj
37+
PRIVATE
38+
_CRT_SECURE_NO_WARNINGS
39+
PUBLIC
40+
_WIN32_WINNT=${LSL_WINVER}
41+
)
42+
if(BUILD_SHARED_LIBS)
43+
# set_target_properties(lslobj
44+
# PROPERTIES
45+
# WINDOWS_EXPORT_ALL_SYMBOLS ON
46+
# )
47+
endif(BUILD_SHARED_LIBS)
3648
endif()
3749

3850
# Compiler settings

0 commit comments

Comments
 (0)