Skip to content

Commit

Permalink
fix issue with the install location for built executables
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Aug 13, 2021
1 parent 20ddee8 commit d019ed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion converter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if(UNITS_BUILD_CONVERTER_APP)
if (UNITS_INSTALL)
install(TARGETS units_convert
${UNITS_LIBRARY_EXPORT_COMMAND}
RUNTIME DESTINATION "${INSTALL_BIN_DIR}" COMPONENT units_convert)
DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT units_convert)
endif()
add_executable(units::units_convert ALIAS units_convert)
endif()
2 changes: 1 addition & 1 deletion webserver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if(CMAKE_VERSION VERSION_GREATER 3.12)
if (UNITS_INSTALL)
install(TARGETS units_webserver
${UNITS_LIBRARY_EXPORT_COMMAND}
RUNTIME DESTINATION "${INSTALL_BIN_DIR}" COMPONENT units_webserver)
DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT units_webserver)
endif()
add_executable(units::units_webserver ALIAS units_webserver)
endif()
Expand Down

0 comments on commit d019ed3

Please sign in to comment.