Skip to content

Commit 439113b

Browse files
committed
Didnt respect DESTDIR
1 parent b4713e6 commit 439113b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${C
5656
install (FILES data/icons/com.github.tom95.indicator-synapse.svg DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/128x128/apps/)
5757

5858
# work around elementary/houston requiring an installed "binary"
59-
install (CODE "FILE(WRITE ${CMAKE_INSTALL_PREFIX}/bin/com.github.tom95.indicator-synapse \"\")")
59+
set (FULL_INSTALL $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX})
60+
install (CODE "FILE(WRITE ${FULL_INSTALL}/bin/com.github.tom95.indicator-synapse \"\")")

0 commit comments

Comments
 (0)