mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 01:16:35 +02:00
don't symlink the web directory on WIN32
This commit is contained in:
parent
42d40d5a13
commit
ae5a7b40a6
1 changed files with 18 additions and 13 deletions
|
@ -16,19 +16,24 @@ add_custom_command(
|
||||||
"${PROJECT_SOURCE_DIR}/resources"
|
"${PROJECT_SOURCE_DIR}/resources"
|
||||||
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources
|
||||||
)
|
)
|
||||||
# remove the web directory so we can make it a symlink
|
|
||||||
add_custom_command(
|
if (NOT WIN32)
|
||||||
TARGET ${TARGET_NAME} POST_BUILD
|
# remove the web directory so we can make it a symlink
|
||||||
COMMAND "${CMAKE_COMMAND}" -E remove_directory
|
add_custom_command(
|
||||||
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
)
|
COMMAND "${CMAKE_COMMAND}" -E remove_directory
|
||||||
# make the web directory a symlink
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web
|
||||||
add_custom_command(
|
)
|
||||||
TARGET ${TARGET_NAME} POST_BUILD
|
|
||||||
COMMAND "${CMAKE_COMMAND}" -E create_symlink
|
# make the web directory a symlink
|
||||||
"${PROJECT_SOURCE_DIR}/resources/web"
|
add_custom_command(
|
||||||
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
)
|
COMMAND "${CMAKE_COMMAND}" -E create_symlink
|
||||||
|
"${PROJECT_SOURCE_DIR}/resources/web"
|
||||||
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web
|
||||||
|
)
|
||||||
|
|
||||||
|
endif ()
|
||||||
|
|
||||||
# link the shared hifi libraries
|
# link the shared hifi libraries
|
||||||
link_hifi_libraries(embedded-webserver networking shared)
|
link_hifi_libraries(embedded-webserver networking shared)
|
||||||
|
|
Loading…
Reference in a new issue