mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Update compiler flags options
This commit is contained in:
parent
be6399cb9d
commit
20920473dd
@ -10,6 +10,12 @@ include_directories(BEFORE "${PROJECT_SOURCE_DIR}/src/")
|
|||||||
# add header files directory
|
# add header files directory
|
||||||
# include_directories()
|
# include_directories()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2 /Ot /MD /W3 /nologo")
|
||||||
|
else()
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wshadow -Wextra -Wimplicit -O2 -ggdb3 -fpic")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
if(${HAVE_LUA})
|
if(${HAVE_LUA})
|
||||||
@ -56,6 +62,6 @@ set(
|
|||||||
"src/mime.lua"
|
"src/mime.lua"
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS socket LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/luasocket/lib")
|
install(TARGETS socket LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/luasocket/socket")
|
||||||
install(FILES ${TO_SOCKET_LDIR} DESTINATION "${CMAKE_INSTALL_PREFIX}/luasocket/socket")
|
install(FILES ${TO_SOCKET_LDIR} DESTINATION "${CMAKE_INSTALL_PREFIX}/luasocket/socket")
|
||||||
install(FILES ${TO_TOP_LDIR} DESTINATION "${CMAKE_INSTALL_PREFIX}/luasocket")
|
install(FILES ${TO_TOP_LDIR} DESTINATION "${CMAKE_INSTALL_PREFIX}/luasocket")
|
||||||
|
Loading…
Reference in New Issue
Block a user