diff --git a/LuaJIT.cmake b/LuaJIT.cmake index 71d9b85..f7aae76 100644 --- a/LuaJIT.cmake +++ b/LuaJIT.cmake @@ -686,4 +686,6 @@ target_include_directories(luajit-header INTERFACE ${LJ_DIR}) add_library(luajit::lib ALIAS libluajit) add_library(luajit::header ALIAS luajit-header) -add_executable(luajit::lua ALIAS luajit) +if (LUAJIT_BUILD_EXE) + add_executable(luajit::lua ALIAS luajit) +endif()