Skip to content

Commit

Permalink
Revert all c-utility install location changes (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
momuno committed Aug 18, 2021
1 parent 5edd354 commit e4d74dc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -683,18 +683,13 @@ else(${build_as_dynamic})
set(targets aziotsharedutil)
endif(${build_as_dynamic})

set(cmake_install_include_dir ${CMAKE_INSTALL_INCLUDEDIR})
if (${use_installed_dependencies})
set(cmake_install_include_dir ${CMAKE_INSTALL_INCLUDEDIR}/azureiot)
endif()

install (TARGETS ${targets} EXPORT aziotsharedutilTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/../bin
INCLUDES DESTINATION ${cmake_install_include_dir}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/azureiot
)
install (FILES ${source_h_files} DESTINATION ${cmake_install_include_dir}/azure_c_shared_utility)
install (FILES ${source_h_files} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/azureiot/azure_c_shared_utility)
install (FILES ${micromock_h_files_full_path} ${INSTALL_H_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/azureiot)


Expand Down

0 comments on commit e4d74dc

Please sign in to comment.