diff options
-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 | ||