Skip to content
Snippets Groups Projects
Commit f25c9e89 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Windows: default install dir is C, check for previous installation

parent 5f315d84
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ set(BornAgain_VERSION_PATCH 2)
# --- General project settings ---
option(BORNAGAIN_PYTHON "Build with python support" ON)
option(BORNAGAIN_APP "Build test application" ON)
option(BORNAGAIN_APP "Build test application" OFF)
option(BORNAGAIN_GUI "Build a graphical user interface" OFF)
option(BORNAGAIN_MAN "Build a user manual" OFF)
option(BUILD_DEBIAN "Build a debian package" OFF)
......
# this script is a trick to print the message at the end of installation
if(NOT WIN32)
set(after_install_text "
Installation done. Please read below.
-------------------------------------------------------------------------------
......@@ -13,3 +14,4 @@ Just add this command into your .bashrc or .bash_profile file.
install(CODE "MESSAGE(\"${after_install_text}\")")
endif()
......@@ -3,7 +3,8 @@
set(CPACK_GENERATOR "NSIS")
#set(CPACK_NSIS_MODIFY_PATH ON)
set( CPACK_NSIS_INSTALL_ROOT "C:")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
Push \\\"PATH\\\"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment