From 8a847dbaba6f8b38a0fc170f72692470557f2e12 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sat, 24 Mar 2012 12:13:51 +0100 Subject: Tweaks and cleanups Removed t_virtual. Made lua use C++ compiler Removed many silly exception types from Error.h and renamed the rest. Removed Brush classes from tiletypes plugin. --- depends/lua/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'depends') diff --git a/depends/lua/CMakeLists.txt b/depends/lua/CMakeLists.txt index 23ea6a48..aa0a1b91 100644 --- a/depends/lua/CMakeLists.txt +++ b/depends/lua/CMakeLists.txt @@ -1,4 +1,4 @@ -PROJECT ( lua C ) +PROJECT ( lua CXX ) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) # TODO: make this RelWithDebInfo only @@ -77,9 +77,12 @@ src/lundump.c src/lvm.c src/lzio.c ) +# compile with C++ compiler +set_source_files_properties(${SRC_LIBLUA} PROPERTIES LANGUAGE CXX) +# append headers to sources to make them show up in MSVC GUI LIST(APPEND SRC_LIBLUA ${HDR_LIBLUA}) -ADD_LIBRARY ( lua SHARED EXCLUDE_FROM_ALL ${SRC_LIBLUA} ) +ADD_LIBRARY ( lua SHARED ${SRC_LIBLUA} ) TARGET_LINK_LIBRARIES ( lua ${LIBS}) install(TARGETS lua -- cgit v1.2.1