Skip to content
Snippets Groups Projects
Commit 924a4b64 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Build STATIC on WIN32, SHARED on rest, until external lib API is explicitly marked.

parent 5684a59f
No related merge requests found
......@@ -64,7 +64,14 @@ ADD_CUSTOM_COMMAND(
file(GLOB_RECURSE INCS "*.h")
add_library(wccl SHARED ${libwccl_STAT_SRC} ${INCS})
if(WIN32)
#need to explicitly specify exports/external API for win DLL
#until that's done, build STATIC for WIN32
add_library(wccl STATIC ${libwccl_STAT_SRC} ${INCS})
else(WIN32)
add_library(wccl SHARED ${libwccl_STAT_SRC} ${INCS})
endif(WIN32)
target_link_libraries ( wccl ${LIBS})
set_target_properties(wccl PROPERTIES
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment