HowardHinnant / date

A date and time library based on the C++11/14/17 <chrono> header
Other
3.14k stars 677 forks source link

Cmake Install for submodules: missing reference path for PUBLIC_HEADER property #743

Open jeldorak opened 2 years ago

jeldorak commented 2 years ago

Hi Team,

Would somebody be able to add the ${CMAKE_CURRENT_LIST_DIR} reference path in line 78 of CMakeLists.txt? This will help performing cmake install when Date Library is being used as a submodule with latest CMake.

Replace in CMakeLists:78 set_target_properties( date PROPERTIES PUBLIC_HEADER include/date/date.h ) by set_target_properties( date PROPERTIES PUBLIC_HEADER ${CMAKE_CURRENT_LIST_DIR}/include/date/date.h )

Kind Regards,

Jeremie