Skip to content

Commit

Permalink
Fix the installation of spectrum_manager.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Kaluza committed Feb 29, 2016
1 parent 5b0af81 commit bde8307
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions spectrum_manager/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ target_link_libraries(spectrum2_manager transport ${APPLE_FRAMEWORKS})
endif()
INSTALL(TARGETS spectrum2_manager RUNTIME DESTINATION bin)

IF(NOT EXISTS "/etc/spectrum2/spectrum_manager.cfg")
INSTALL(FILES
spectrum_manager.cfg
DESTINATION /etc/spectrum2
)
ENDIF()
# IF(NOT EXISTS "/etc/spectrum2/spectrum_manager.cfg")
# INSTALL(FILES
# spectrum_manager.cfg
# DESTINATION /etc/spectrum2
# )
# ENDIF()

install(CODE "
if (NOT EXISTS \"/etc/spectrum2/spectrum_manager.cfg\")
file(INSTALL DESTINATION \"/etc/spectrum2\" TYPE FILES \"${CMAKE_CURRENT_SOURCE_DIR}/spectrum_manager.cfg\")
endif()
")



INSTALL(DIRECTORY
html
Expand Down

0 comments on commit bde8307

Please sign in to comment.