Skip to content

Commit

Permalink
[lua] add comment about new option
Browse files Browse the repository at this point in the history
  • Loading branch information
codicodi committed Mar 2, 2017
1 parent 1551d99 commit b9b27e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ports/lua/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 )
Expand Down Expand Up @@ -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 ()

0 comments on commit b9b27e7

Please sign in to comment.