We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d453e75 commit c6779b1Copy full SHA for c6779b1
cmake/TargetObjLib.cmake
@@ -33,10 +33,22 @@ if(UNIX AND NOT APPLE)
33
endif()
34
elseif(WIN32)
35
target_link_libraries(lslobj PRIVATE iphlpapi winmm mswsock ws2_32)
36
+endif()
37
+
38
+# Compiler settings
39
+target_compile_definitions(lslobj
40
+ PRIVATE
41
+ LIBLSL_EXPORTS
42
+ LOGURU_DEBUG_LOGGING=$<BOOL:${LSL_DEBUGLOG}>
43
+ PUBLIC
44
+ ASIO_NO_DEPRECATED
45
+ $<$<CXX_COMPILER_ID:MSVC>:LSLNOAUTOLINK> # don't use #pragma(lib) in CMake builds
46
+)
47
+if(WIN32)
48
target_compile_definitions(lslobj
- PRIVATE
49
50
_CRT_SECURE_NO_WARNINGS
- PUBLIC
51
52
_WIN32_WINNT=${LSL_WINVER}
53
)
54
if(BUILD_SHARED_LIBS)
0 commit comments