diff options
| author | codicodi <rob.ceglinski@gmail.com> | 2017-03-02 16:02:45 +0100 |
|---|---|---|
| committer | codicodi <rob.ceglinski@gmail.com> | 2017-03-02 16:02:45 +0100 |
| commit | b9b27e72d31106ec6b159590a77014d02a655f93 (patch) | |
| tree | 01b25dd37a44749f326a3cc9ec2793132040e083 | |
| parent | 1551d9942e5b2ddd98edd246cb1fc99d9f7c07a7 (diff) | |
| download | vcpkg-b9b27e72d31106ec6b159590a77014d02a655f93.tar.gz vcpkg-b9b27e72d31106ec6b159590a77014d02a655f93.zip | |
[lua] add comment about new option
| -rw-r--r-- | ports/lua/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ports/lua/CMakeLists.txt b/ports/lua/CMakeLists.txt index c43b3b47b..b82c63e42 100644 --- a/ports/lua/CMakeLists.txt +++ b/ports/lua/CMakeLists.txt @@ -1,3 +1,7 @@ +# Lua can be compiled as either C or C++. +# Default configuration is C, set COMPILE_AS_CPP to ON to use C++. +# See http://stackoverflow.com/questions/13560945/c-and-c-library-using-longjmp for why would you want to do that. + PROJECT ( lua ) IF( NOT WIN32 ) @@ -61,7 +65,8 @@ IF (NOT DEFINED SKIP_INSTALL_HEADERS) src/lauxlib.h DESTINATION include ) + # If using C++, don't install extern "C" wrapper. IF (NOT COMPILE_AS_CPP) - INSTALL(FILES src/lua.hpp DESTINATION include) + INSTALL(FILES src/lua.hpp DESTINATION include) ENDIF () ENDIF () |
