apply static flag for bootstrap exec, too

This is required for the Windows configuration to succeed at all. It
should also be beneficial when we start sharing object code between
bootstrap and actual executable.
This commit is contained in:
Lukas Böger 2021-05-31 07:30:48 +01:00
parent 0f1dfad91c
commit 92d5f8eae1

View file

@ -62,6 +62,10 @@ endif()
add_library(libchibi-common
INTERFACE)
if (NOT BUILD_SHARED_LIBS)
target_compile_definitions(libchibi-common INTERFACE SEXP_STATIC_LIBRARY=1)
endif()
target_include_directories(libchibi-common
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
@ -137,10 +141,6 @@ set_target_properties(libchibi-scheme
SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR}
VERSION ${CMAKE_PROJECT_VERSION})
if (NOT BUILD_SHARED_LIBS)
target_compile_definitions(libchibi-scheme PUBLIC SEXP_STATIC_LIBRARY=1)
endif()
#
# Generate modules