From: Gerhard Sittig Date: Thu, 10 Jan 2019 19:30:24 +0000 (+0100) Subject: CMakeLists.txt: create NSIS file in binary directory not source X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=baef263a884ee4ff4d3dd15cd4d334fa9178b090;p=pulseview.git CMakeLists.txt: create NSIS file in binary directory not source The sigrok-util scripts (mingw and msys2) expect the pulseview_cross.nsi file in the build directory, and it's good tradition to not write into the source directory during build. Adjust the configure_file() call. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bd0ac5cf..1a342b8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -534,7 +534,7 @@ install(FILES icons/pulseview.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons install(FILES icons/pulseview.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps) # Generate Windows installer script. -configure_file(contrib/pulseview_cross.nsi.in contrib/pulseview_cross.nsi @ONLY) +configure_file(contrib/pulseview_cross.nsi.in ${CMAKE_CURRENT_BINARY_DIR}/contrib/pulseview_cross.nsi @ONLY) #=============================================================================== #= Packaging (handled by CPack)