Skip to content

Instantly share code, notes, and snippets.

@JlnWntr
Created December 22, 2019 13:28
Show Gist options
  • Save JlnWntr/a367ab40dc866127a8856be289df2955 to your computer and use it in GitHub Desktop.
Save JlnWntr/a367ab40dc866127a8856be289df2955 to your computer and use it in GitHub Desktop.
Download and build latest liblua via CMake
cmake_minimum_required(VERSION 3.10)
include(ExternalProject)
ExternalProject_Add(lua
URL "https://www.lua.org/ftp/lua-5.3.5.tar.gz"
CONFIGURE_COMMAND ""
BUILD_COMMAND make generic
BUILD_ALWAYS true
BUILD_IN_SOURCE true
INSTALL_COMMAND ""
)
add_library(liblua STATIC IMPORTED)
ExternalProject_Get_property(lua SOURCE_DIR)
message("liblua will be found at \'${SOURCE_DIR}/src\'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment