mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-13 13:26:00 +00:00
CMake: report what kind of libraries will be built
This commit is contained in:
@@ -150,6 +150,7 @@ include(LibraryPathToLinkerFlags)
|
|||||||
library_path_to_linker_flags(__PKG_CONFIG_LIBS_PRIVATE "${LIBS_PRIVATE}")
|
library_path_to_linker_flags(__PKG_CONFIG_LIBS_PRIVATE "${LIBS_PRIVATE}")
|
||||||
|
|
||||||
if(STATIC)
|
if(STATIC)
|
||||||
|
MESSAGE(STATUS "Building raylib static library")
|
||||||
if(${PLATFORM} MATCHES "Web")
|
if(${PLATFORM} MATCHES "Web")
|
||||||
set(CMAKE_STATIC_LIBRARY_SUFFIX ".bc")
|
set(CMAKE_STATIC_LIBRARY_SUFFIX ".bc")
|
||||||
endif()
|
endif()
|
||||||
@@ -186,6 +187,7 @@ endif(STATIC)
|
|||||||
|
|
||||||
|
|
||||||
if(SHARED)
|
if(SHARED)
|
||||||
|
MESSAGE(STATUS "Building raylib shared library")
|
||||||
add_library(raylib SHARED ${sources})
|
add_library(raylib SHARED ${sources})
|
||||||
|
|
||||||
target_compile_definitions(raylib
|
target_compile_definitions(raylib
|
||||||
|
Reference in New Issue
Block a user