Переглянути джерело

libobs-opengl: Use original lib naming for mac/win

On mac and windows, the libraries are always meant to be portable,
therefore the naming convention does not need to change for each
revision.  For linux this makes sense; windows and mac not so much.
jp9000 10 роки тому
батько
коміт
0e81b0a2ac
1 змінених файлів з 9 додано та 0 видалено
  1. 9 0
      libobs-opengl/CMakeLists.txt

+ 9 - 0
libobs-opengl/CMakeLists.txt

@@ -70,12 +70,21 @@ set(libobs-opengl_HEADERS
 add_library(libobs-opengl MODULE
 	${libobs-opengl_SOURCES}
 	${libobs-opengl_HEADERS})
+
+if(WIN32 OR APPLE)
+set_target_properties(libobs-opengl
+	PROPERTIES
+		OUTPUT_NAME libobs-opengl
+		PREFIX "")
+else()
 set_target_properties(libobs-opengl
 	PROPERTIES
 		OUTPUT_NAME obs-opengl
 		VERSION 0.0
 		SOVERSION 0
 		)
+endif()
+
 target_link_libraries(libobs-opengl
 	libobs
 	glad