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 4a092b3 commit 60789a5Copy full SHA for 60789a5
cmake/TargetObjLib.cmake
@@ -43,10 +43,22 @@ if(UNIX AND NOT APPLE)
43
endif()
44
elseif(WIN32)
45
target_link_libraries(lslobj PRIVATE iphlpapi winmm mswsock ws2_32)
46
+endif()
47
+
48
+# Compiler settings
49
+target_compile_definitions(lslobj
50
+ PRIVATE
51
+ LIBLSL_EXPORTS
52
+ LOGURU_DEBUG_LOGGING=$<BOOL:${LSL_DEBUGLOG}>
53
+ PUBLIC
54
+ ASIO_NO_DEPRECATED
55
+ $<$<CXX_COMPILER_ID:MSVC>:LSLNOAUTOLINK> # don't use #pragma(lib) in CMake builds
56
+)
57
+if(WIN32)
58
target_compile_definitions(lslobj
- PRIVATE
59
60
_CRT_SECURE_NO_WARNINGS
- PUBLIC
61
62
_WIN32_WINNT=${LSL_WINVER}
63
)
64
if(BUILD_SHARED_LIBS)
0 commit comments