Fix for Linux builds

This commit is contained in:
Jason Watkins
2015-05-01 09:01:21 -07:00
parent 8ed6b39779
commit 796fd0f7aa
9 changed files with 414 additions and 392 deletions

View File

@@ -20,7 +20,7 @@ add_library(xpc64 SHARED XPCPlugin.cpp
MessageHandlers.cpp
UDPSocket.cpp)
set_target_properties(xpc64 PROPERTIES PREFIX "" SUFFIX ".xpl")
set_target_properties(xpc64 PROPERTIES COMPILE_FLAGS "-std=gnu++11" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning")
set_target_properties(xpc64 PROPERTIES COMPILE_FLAGS "-m64" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m64")
add_library(xpc32 SHARED XPCPlugin.cpp
DataManager.cpp
@@ -31,7 +31,7 @@ add_library(xpc32 SHARED XPCPlugin.cpp
MessageHandlers.cpp
UDPSocket.cpp)
set_target_properties(xpc32 PROPERTIES PREFIX "" SUFFIX ".xpl")
set_target_properties(xpc32 PROPERTIES COMPILE_FLAGS "-std=gnu++11 -m32" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m32")
set_target_properties(xpc32 PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m32")
# Switch install targets when uncommenting the 32 bit line above.
install(TARGETS xpc64 DESTINATION XPlaneConnect/64 RENAME lin.xpl)