From 2c5c96689a7307a461f31b5a9ab6aff462e39ecd Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 28 Dec 2015 18:16:07 +0100 Subject: [PATCH] Fixed: Install readme.txt in same directory if not using WITH_UNIX_STRUCTURE --- code/nel/tools/3d/zviewer/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/nel/tools/3d/zviewer/CMakeLists.txt b/code/nel/tools/3d/zviewer/CMakeLists.txt index a7a5150b7..35472f39c 100644 --- a/code/nel/tools/3d/zviewer/CMakeLists.txt +++ b/code/nel/tools/3d/zviewer/CMakeLists.txt @@ -14,4 +14,9 @@ NL_ADD_RUNTIME_FLAGS(zviewer) INSTALL(TARGETS zviewer RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d) INSTALL(FILES zviewer.cfg DESTINATION ${NL_ETC_PREFIX} COMPONENT tools3d) -INSTALL(FILES readme.txt DESTINATION ${NL_SHARE_PREFIX}/zviewer COMPONENT tools3d) + +IF(WITH_UNIX_STRUCTURE) + INSTALL(FILES readme.txt DESTINATION ${NL_SHARE_PREFIX}/zviewer COMPONENT tools3d) +ELSE() + INSTALL(FILES readme.txt DESTINATION ${NL_SHARE_PREFIX} COMPONENT tools3d RENAME zviewer.txt) +ENDIF()