check spectrum2_manager.cfg existence in DESTDIR before install
This commit is contained in:
parent
02cba5b71d
commit
1401e970a7
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ INSTALL(TARGETS spectrum2_manager RUNTIME DESTINATION bin)
|
|||
# ENDIF()
|
||||
|
||||
install(CODE "
|
||||
if (NOT EXISTS \"/etc/spectrum2/spectrum_manager.cfg\")
|
||||
if (NOT EXISTS \"$ENV{DESTDIR}/etc/spectrum2/spectrum_manager.cfg\")
|
||||
file(INSTALL DESTINATION \"/etc/spectrum2\" TYPE FILES \"${CMAKE_CURRENT_SOURCE_DIR}/spectrum_manager.cfg\")
|
||||
endif()
|
||||
")
|
||||
|
|
Loading…
Add table
Reference in a new issue