[lua] don't export from executables

This commit is contained in:
codicodi 2016-12-24 02:02:55 +01:00 committed by GitHub
parent 3b7b380798
commit 3d58393ad2

View File

@ -25,16 +25,16 @@ src/ltable.c src/ltablib.c src/ltm.c src/lundump.c src/lutf8lib.c src/lvm.c src/
# append headers to sources to make them show up in MSVC GUI
LIST(APPEND SRC_LIBLUA ${HDR_LIBLUA})
IF (BUILD_SHARED_LIBS)
ADD_DEFINITIONS ( -DLUA_BUILD_AS_DLL )
ENDIF ()
# remove warnings
ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS )
#DLL
ADD_LIBRARY ( lua ${SRC_LIBLUA} )
IF (BUILD_SHARED_LIBS)
TARGET_COMPILE_DEFINITIONS (lua PRIVATE -DLUA_BUILD_AS_DLL )
ENDIF ()
INSTALL ( TARGETS lua
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib