From e8068d9a7461ace8366d5b7847cc9fc8ed72af64 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Mon, 9 Feb 2015 13:21:11 -0700 Subject: Win: Build both STATIC (.lib) and SHARED (.dll) loader libraries. --- loader/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'loader') diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index bbf5799f..15702307 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -15,8 +15,9 @@ include_directories( if (WIN32) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS") - add_library(XGL STATIC loader.c dirent_on_windows.c dispatch.c table_ops.h) - set_target_properties(XGL PROPERTIES SOVERSION 0) + add_library(XGL SHARED loader.c dirent_on_windows.c dispatch.c table_ops.h) + add_library(XGLstatic STATIC loader.c dirent_on_windows.c dispatch.c table_ops.h) + set_target_properties(XGLstatic PROPERTIES OUTPUT_NAME XGL) target_link_libraries(XGL) endif() if (NOT WIN32) -- cgit v1.2.3