From 699c406e30191af3baa19869c942cf397711df5d Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 13 Mar 2021 18:55:58 +0100 Subject: [PATCH] Also use PROJECT_NAME for the installation directory. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36143cc..fa6813d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,7 +110,7 @@ elseif(MINGW OR MSVC) set(CPACK_NSIS_MODIFY_PATH ON) set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON) set(CPACK_GENERATOR ZIP;NSIS) - set(CMAKE_INSTALL_PREFIX "C:\\progs\\") + set(CMAKE_INSTALL_PREFIX "C:\\progs\\${PROJECT_NAME}") install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ybcon.exe DESTINATION bin) endif() include(CPack) \ No newline at end of file