mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Fix OPEN_FOR_IDE
This commit is contained in:
parent
c6b572dc06
commit
7ed7ca9bac
@ -1,6 +1,6 @@
|
|||||||
|
add_subdirectory(c)
|
||||||
if(NOT OPEN_FOR_IDE)
|
if(NOT OPEN_FOR_IDE)
|
||||||
# flow bindings currently doesn't support that
|
# flow bindings currently doesn't support that
|
||||||
add_subdirectory(c)
|
|
||||||
add_subdirectory(flow)
|
add_subdirectory(flow)
|
||||||
endif()
|
endif()
|
||||||
if(WITH_PYTHON_BINDING)
|
if(WITH_PYTHON_BINDING)
|
||||||
|
@ -130,9 +130,14 @@ if(NOT WIN32)
|
|||||||
target_link_libraries(fdb_c90_test PRIVATE fdb_c)
|
target_link_libraries(fdb_c90_test PRIVATE fdb_c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(OPEN_FOR_IDE)
|
||||||
|
set(FDB_C_TARGET $<TARGET_OBJECTS:fdb_c>)
|
||||||
|
else()
|
||||||
|
set(FDB_C_TARGET $<TARGET_FILE:fdb_c>)
|
||||||
|
endif()
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:fdb_c> ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so
|
COMMAND ${CMAKE_COMMAND} -E copy ${FDB_C_TARGET} ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so
|
||||||
DEPENDS fdb_c
|
DEPENDS fdb_c
|
||||||
COMMENT "Copy libfdb_c to use as external client for test")
|
COMMENT "Copy libfdb_c to use as external client for test")
|
||||||
add_custom_target(external_client DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so)
|
add_custom_target(external_client DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user