File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ endif()
2727# Platform-specific settings
2828if (WIN32 )
2929 add_definitions (-D_CRT_SECURE_NO_WARNINGS)
30- set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
30+
3131 set (LSL_WINVER "0x0601" CACHE STRING
3232 "Windows version (_WIN32_WINNT) to target (defaults to 0x0601 for Windows 7)" )
3333elseif (APPLE )
Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ target_compile_definitions(lslobj
1515 $<$<CXX_COMPILER_ID:MSVC >:LSLNOAUTOLINK> # don't use #pragma(lib) in CMake builds
1616)
1717if (WIN32 )
18- # TODO: Maybe these can be moved above with boolean conditionals?
18+ if (BUILD_SHARED_LIBS )
19+ set_target_properties (lslobj
20+ PROPERTIES
21+ WINDOWS_EXPORT_ALL_SYMBOLS ON
22+ )
23+ endif (BUILD_SHARED_LIBS )
1924 target_compile_definitions (lslobj
2025 PRIVATE
2126 _CRT_SECURE_NO_WARNINGS
You can’t perform that action at this time.
0 commit comments