diff options
| author | codicodi <rob.ceglinski@gmail.com> | 2016-12-24 02:02:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-24 02:02:55 +0100 |
| commit | 3d58393ad2ee3d0b33fc202f60d22a327928c403 (patch) | |
| tree | 9204119a888effb845cf9c837ed464a44a0410b3 /ports/lua | |
| parent | 3b7b380798fbae1072f093019fb89cb7ced744d4 (diff) | |
| download | vcpkg-3d58393ad2ee3d0b33fc202f60d22a327928c403.tar.gz vcpkg-3d58393ad2ee3d0b33fc202f60d22a327928c403.zip | |
[lua] don't export from executables
Diffstat (limited to 'ports/lua')
| -rw-r--r-- | ports/lua/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 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 |
