Yuescript
Yuescript copied to clipboard
LuaRocks install report multi target_link_libraries definitions
Followed luarocks installation and report this cmake error:
CMake Error at CMakeLists.txt:145 (target_link_libraries):
The keyword signature for target_link_libraries has already been used with
the target "yue". All uses of target_link_libraries with a target must be
either all-keyword or all-plain.
The uses of the keyword signature are here:
* CMakeLists.txt:139 (target_link_libraries)
fixed duplicated target_link_libraries via 2063353f773dd759c9151565272357c8e608c297, updated luarocks realease.
On termux, luarocks CMake report:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LUA_MATH_LIBRARY (ADVANCED)
linked by target "yue" in directory /data/data/com.termux/files/usr/tmp/luarocks_yuescript-0.15.23-1-wivmf2/yuescript
linked by target "libyue" in directory /data/data/com.termux/files/usr/tmp/luarocks_yuescript-0.15.23-1-wivmf2/yuescript
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Error: Build error: Failed cmake.
And in my Arch linux, I running luarocks install yuescript again, when linking yue executable, report:
/usr/bin/ld: cannot find -l-ldl: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/yue.dir/build.make:546: yue] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/yue.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Found some typos in CMakeList.txt file. Just tried a new release should build on Arch Linux. I'll look into termux when I get time.