mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Cmake: fix cross compiling on Windows
Cmake has a bug that causes the moc process not being handed the necessary defines for the architecture we are building for. Also we were missing a library to make the BT implementation on Windows work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3437666010
commit
e86fd45efd
1 changed files with 2 additions and 2 deletions
|
@ -294,9 +294,9 @@ endif()
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
set(SUBSURFACE_TARGET subsurface)
|
set(SUBSURFACE_TARGET subsurface)
|
||||||
set(PLATFORM_SRC windows.c)
|
set(PLATFORM_SRC windows.c)
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32 -lws2_32)
|
||||||
remove_definitions(-DUNICODE)
|
remove_definitions(-DUNICODE)
|
||||||
add_definitions(-mwindows)
|
add_definitions(-mwindows -D_WIN32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# include translations
|
# include translations
|
||||||
|
|
Loading…
Reference in a new issue