Skip to content

Commit

Permalink
Add rule for static version of libluajit-2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasvasilache committed Aug 10, 2016
1 parent 53077f0 commit fb5ad98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions luajit-2.1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,12 @@ include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR} dynasm src)

IF(WITH_AMALG)
add_library(libluajit SHARED src/ljamalg.c ${DEPS} )
add_library(luajit-static STATIC src/ljamalg.c ${DEPS} )
set_property(TARGET luajit-static PROPERTY POSITION_INDEPENDENT_CODE 1)
ELSE()
add_library(libluajit SHARED ${SRC_LJCORE} ${DEPS} )
add_library(luajit-static STATIC ${SRC_LJCORE} ${DEPS} )
set_property(TARGET luajit-static PROPERTY POSITION_INDEPENDENT_CODE 1)
ENDIF()

target_link_libraries (libluajit ${LIBS} )
Expand Down

0 comments on commit fb5ad98

Please sign in to comment.