diff options
author | Li Jin <dragon-fly@qq.com> | 2020-03-11 09:45:47 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-03-11 09:45:47 +0800 |
commit | bd5550aa0aff81eafd077cd44e6fa3e88015f6e7 (patch) | |
tree | 2b718d566abf5e976acd200daa8a7db2e1de6891 | |
parent | 61896f4e39c8f70a4cf7b804e1887f4c324a5ab7 (diff) | |
download | yuescript-bd5550aa0aff81eafd077cd44e6fa3e88015f6e7.tar.gz yuescript-bd5550aa0aff81eafd077cd44e6fa3e88015f6e7.tar.bz2 yuescript-bd5550aa0aff81eafd077cd44e6fa3e88015f6e7.zip |
fix luarocks build.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 195895c..2b61d8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -27,9 +27,9 @@ MESSAGE(STATUS "Lua library: ${LUA_LIBRARIES}") | |||
27 | enable_language( CXX ) | 27 | enable_language( CXX ) |
28 | find_package( Lua REQUIRED ) | 28 | find_package( Lua REQUIRED ) |
29 | include_directories( src ${LUA_INCLUDE_DIR} ) | 29 | include_directories( src ${LUA_INCLUDE_DIR} ) |
30 | add_definitions( -std=c++17 -O3 -DLIBMOONP ) | 30 | add_definitions( -std=c++17 -O3 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 ) |
31 | 31 | ||
32 | add_library( moonp MODULE src/MoonP/ast.cpp src/MoonP/parser.cpp src/MoonP/moon_parser.cpp src/MoonP/moon_compiler.cpp src/moonp.cpp) | 32 | add_library( moonp MODULE src/MoonP/ast.cpp src/MoonP/parser.cpp src/MoonP/moon_parser.cpp src/MoonP/moon_compiler.cpp src/MoonP/moonplus.cpp src/moonp.cpp) |
33 | set_target_properties( moonp PROPERTIES PREFIX "") | 33 | set_target_properties( moonp PROPERTIES PREFIX "") |
34 | target_link_libraries( moonp ${LUA_LIBRARIES} ) | 34 | target_link_libraries( moonp ${LUA_LIBRARIES} ) |
35 | 35 | ||