Closed superdiaodiao closed 1 year ago
I'm afraid I know nothing about make
and it was a mistake for me to let people put make
files on this repository.
Here are the installation/build instructions I recommend: https://howardhinnant.github.io/date/tz.html#Installation
OK, thanks for the guild.
Here are the installation/build instructions I recommend: https://howardhinnant.github.io/date/tz.html#Installation
The build step can be correct, but after building, this cmakelists.txt setting still not works,
add_library(date STATIC IMPORTED)
set_target_properties(date PROPERTIES IMPORTED_LOCATION ${THIRDPARTY_DIR}/lib/libdate-tz.a)
it seems that the guild you gave and other docs don't help.
I'm afraid I know nothing about
make
and it was a mistake for me to let people putmake
files on this repository.Here are the installation/build instructions I recommend: https://howardhinnant.github.io/date/tz.html#Installation
Finally, it turns out that my project wasn't set right and the problem mentioned above was solved. Thank you so much.
If I can successfully run the command:
g++ /root/test/date_tz.cpp -o /root/test/date_tz.o -L /root/vcpkg/installed/x64-linux/lib -ldate-tz && /root/test/date_tz.o
then I start a new project and built the date library like this:
and set cmakelists.txt like:
but why the error said this?