summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorhristo <[email protected]>2020-12-14 20:24:56 +0200
committerGitHub <[email protected]>2020-12-14 19:24:56 +0100
commita840d8a77d3b582226ce08326a709d388016e87a (patch)
tree47d24c096cd9a4db7b9b4061a78a5417b09af552 /src
parent3ec8ac52f8760fb5dba2d2bacabf7ca2fe5c55d9 (diff)
downloadraylib-a840d8a77d3b582226ce08326a709d388016e87a.tar.gz
raylib-a840d8a77d3b582226ce08326a709d388016e87a.zip
Changed extension for web from .bc to .a (#1461)
I did this to support vcpkg expectation. When using the library from vcpkg for web you would install it using vcpkg install raylib:wasm32-emscripten but also vcpkg expects the output lib to be with .a extension instead of .bc Doesn't make a difference for standalone builds or when raylib is used as a subdirectory dependency.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5d288076..6aa11753 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -173,7 +173,7 @@ library_path_to_linker_flags(__PKG_CONFIG_LIBS_PRIVATE "${LIBS_PRIVATE}")
if(STATIC)
MESSAGE(STATUS "Building raylib static library")
if(${PLATFORM} MATCHES "Web")
- set(CMAKE_STATIC_LIBRARY_SUFFIX ".bc")
+ set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
endif()
add_library(raylib_static STATIC ${sources})