diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-12-24 17:12:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-24 17:12:01 -0700 |
| commit | fc9b42489c478c9c662d77288f662124973893b3 (patch) | |
| tree | 0e98da028092dedd6a87c77dc603e65217c34d64 /ports/lua | |
| parent | b3a13e20553220d3ec1680bf9c8d3ec78b509136 (diff) | |
| parent | 90d814f3e28e64542a9a3cc65c99a94286cbdee2 (diff) | |
| download | vcpkg-fc9b42489c478c9c662d77288f662124973893b3.tar.gz vcpkg-fc9b42489c478c9c662d77288f662124973893b3.zip | |
Merge pull request #452 from codicodi/fix-lua
[lua] Don't export from executables
Diffstat (limited to 'ports/lua')
| -rw-r--r-- | ports/lua/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | ports/lua/CONTROL | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/lua/CMakeLists.txt b/ports/lua/CMakeLists.txt index f929c41c9..68de76788 100644 --- a/ports/lua/CMakeLists.txt +++ b/ports/lua/CMakeLists.txt @@ -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 diff --git a/ports/lua/CONTROL b/ports/lua/CONTROL index ca2a82b14..b284bfa85 100644 --- a/ports/lua/CONTROL +++ b/ports/lua/CONTROL @@ -1,3 +1,3 @@ Source: lua -Version: 5.3.3-1 +Version: 5.3.3-2 Description: a powerful, fast, lightweight, embeddable scripting language |
