1
0
Fork 0

CMake: Fix build on Windows

This commit is contained in:
Scott Giese 2019-01-20 22:34:57 -06:00
parent 1716820c16
commit c9d2959f3a
3 changed files with 2 additions and 5 deletions

View file

@ -58,8 +58,6 @@ if (MSVC)
else (EXISTS ${TEST_3RDPARTY_DIR})
set(MSVC_3RDPARTY_ROOT NOT_FOUND CACHE PATH "Location where the third-party dependencies are extracted")
endif (EXISTS ${TEST_3RDPARTY_DIR})
set( RT_LIBRARY "winmm.lib" )
else (MSVC)
set(MSVC_3RDPARTY_ROOT)
endif (MSVC)

View file

@ -157,7 +157,7 @@ else(SIMGEAR_SHARED)
${ZLIB_LIBRARY})
if(WIN32)
list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ws2_32.lib Shlwapi.lib )
list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ws2_32.lib Shlwapi.lib Winmm.lib)
endif(WIN32)
if(NOT MSVC)

View file

@ -33,7 +33,6 @@ target_link_libraries(genapts850
${CMAKE_THREAD_LIBS_INIT}
${SIMGEAR_CORE_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
${Boost_LIBRARIES}
${RT_LIBRARY})
${Boost_LIBRARIES})
install(TARGETS genapts850 RUNTIME DESTINATION bin)