mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
don't dump images in static library configurations
This commit is contained in:
parent
b827cfb429
commit
2e41cf06b2
1 changed files with 10 additions and 7 deletions
|
@ -463,13 +463,16 @@ add_custom_command(OUTPUT snow.img
|
|||
-d ${CMAKE_CURRENT_BINARY_DIR}/snow.img
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_custom_target(chibi-images ALL
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/chibi.img
|
||||
${CMAKE_CURRENT_BINARY_DIR}/red.img
|
||||
${CMAKE_CURRENT_BINARY_DIR}/snow.img
|
||||
# The dependency on libchibi-scheme is crucial here:
|
||||
chibi-compiled-libs)
|
||||
if(BUILD_SHARED_LIBS)
|
||||
# Currently, image dumps only work with shared library builds, which includes Windows
|
||||
add_custom_target(chibi-images ALL
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/chibi.img
|
||||
${CMAKE_CURRENT_BINARY_DIR}/red.img
|
||||
${CMAKE_CURRENT_BINARY_DIR}/snow.img
|
||||
# The dependency on libchibi-scheme is crucial here:
|
||||
chibi-compiled-libs)
|
||||
endif()
|
||||
|
||||
configure_file(contrib/chibi-scheme.pc.cmake.in chibi-scheme.pc @ONLY)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue