3.25.0 do not generate full path library file in link.txt
For below command in CMake
find_path(LEVELDB_INCLUDE_PATH NAMES leveldb/db.h)
find_library(LEVELDB_LIB NAMES leveldb)
target_link_libraries(target ${LEVELDB_LIB})
When I use CMake 3.23.1, it will generate full path link command in link.txt like these:
g++ ... /path/to/found/lib/libleveldb.so ...
For CMake 3.25.0, will generate link command like these:
g++ ... -lleveldb ...
But my libleveldb.so is not in the default path for g++ linker to find, so I can't compile it in CMake 3.25.0.
Can someone tell me is this a bug?
Or I need to use some way to force CMake to generate full path link command