mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
align library name with build artifact
This commit is contained in:
parent
76bce1ce1c
commit
b603e04d9e
1 changed files with 6 additions and 6 deletions
|
@ -172,23 +172,23 @@ add_custom_command(OUTPUT ${clibout}
|
||||||
# Core library
|
# Core library
|
||||||
#
|
#
|
||||||
|
|
||||||
add_library(lib-chibi-scheme
|
add_library(libchibi-scheme
|
||||||
${chibi-scheme-srcs}
|
${chibi-scheme-srcs}
|
||||||
${clibout})
|
${clibout})
|
||||||
|
|
||||||
set_target_properties(lib-chibi-scheme
|
set_target_properties(libchibi-scheme
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
COMPILE_DEFINITIONS "SEXP_USE_STATIC_LIBS=1")
|
COMPILE_DEFINITIONS "SEXP_USE_STATIC_LIBS=1")
|
||||||
|
|
||||||
add_dependencies(lib-chibi-scheme chibi-scheme-stubs)
|
add_dependencies(libchibi-scheme chibi-scheme-stubs)
|
||||||
|
|
||||||
if(WIN32 AND ${BUILD_SHARED_LIBS})
|
if(WIN32 AND ${BUILD_SHARED_LIBS})
|
||||||
target_link_libraries(lib-chibi-scheme ws2_32)
|
target_link_libraries(libchibi-scheme ws2_32)
|
||||||
target_compile_definitions(lib-chibi-scheme PUBLIC -DBUILDING_DLL=1)
|
target_compile_definitions(libchibi-scheme PUBLIC -DBUILDING_DLL=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(bless_chibi_scheme_executable tgt)
|
function(bless_chibi_scheme_executable tgt)
|
||||||
target_link_libraries(${tgt} lib-chibi-scheme)
|
target_link_libraries(${tgt} libchibi-scheme)
|
||||||
if(WIN32 AND NOT ${BUILD_SHARED_LIBS})
|
if(WIN32 AND NOT ${BUILD_SHARED_LIBS})
|
||||||
target_link_libraries(${tgt} ws2_32)
|
target_link_libraries(${tgt} ws2_32)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Reference in a new issue