diff --git a/CMakeLists.txt b/CMakeLists.txt index 2694a2080b..1fe875fb59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ elseif(WIN32) endif() # Add Lua compatibility definition -if(NOT TARGET lualib) +if(TARGET lualib) target_compile_definitions(lualib PUBLIC LUA_COMPAT_MODULE) endif()