fixed copy command for libns on Linux #4168
This commit is contained in:
parent
31440b1a8a
commit
7d5df54bd0
|
@ -78,6 +78,18 @@ else()
|
||||||
${CMAKE_SOURCE_DIR}/lib/${CMAKE_CFG_INTDIR}/libns.dylib
|
${CMAKE_SOURCE_DIR}/lib/${CMAKE_CFG_INTDIR}/libns.dylib
|
||||||
${CMAKE_SOURCE_DIR}/bin/plugins/
|
${CMAKE_SOURCE_DIR}/bin/plugins/
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
|
add_custom_command(
|
||||||
|
TARGET ns
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND mkdir -p
|
||||||
|
${CMAKE_SOURCE_DIR}/bin/plugins
|
||||||
|
&&
|
||||||
|
cp
|
||||||
|
${CMAKE_SOURCE_DIR}/lib/debug/libns.so
|
||||||
|
${CMAKE_SOURCE_DIR}/bin/plugins/
|
||||||
|
)
|
||||||
else()
|
else()
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ns
|
TARGET ns
|
||||||
|
@ -90,4 +102,5 @@ else()
|
||||||
${CMAKE_SOURCE_DIR}/bin/plugins/
|
${CMAKE_SOURCE_DIR}/bin/plugins/
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue