date icon indicating copy to clipboard operation
date copied to clipboard

CMake issue - add possiility to specify INSTALL location, not only .

Open derived-coder opened this issue 4 years ago • 1 comments

it is not possible atm to specify some custom dir for the INSTALL define via CMake. Atm INSTALL will always be set to . which is not reflecting all use cases obviously.

Please make it possible to specify the INSTALL location of the iana database via CMake.

derived-coder avatar Nov 03 '20 14:11 derived-coder

This is already possible if you #define the INSTALL macro before you #include "date/tz.h". You can also use a CMake function to declare that variable as well in your own CMakeLists.txt.

Are you asking for that variable to be exposed in date's CMakeLists.txt like the other options?

Edit: I spoke too soon; the INSTALL macro is local to tz.cpp; it's required on compile time of the date library. I'll make a PR enabling this functionality.

connorjak avatar Nov 11 '20 17:11 connorjak