aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
Diffstat (limited to 'loader')
-rw-r--r--loader/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index 46fe8142..2d2febfe 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -16,12 +16,13 @@ if (WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS")
add_library(XGL SHARED loader.c dirent_on_windows.c dispatch.c table_ops.h)
+ set_target_properties(XGL PROPERTIES SOVERSION 0)
+ target_link_libraries(XGL)
endif()
if (NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES")
add_library(XGL SHARED loader.c dispatch.c table_ops.h)
+ set_target_properties(XGL PROPERTIES SOVERSION 0)
+ target_link_libraries(XGL -ldl -lpthread)
endif()
-
-set_target_properties(XGL PROPERTIES SOVERSION 0)
-target_link_libraries(XGL -ldl -lpthread)