Link error when no SDL on VC++

This commit is contained in:
Bertrand Songis
2014-02-20 21:07:31 +01:00
parent 067c4ee0db
commit a05a88cc89
+5 -1
View File
@@ -331,7 +331,11 @@ endif()
add_executable(simulator WIN32 ${simu_SRCS})
target_link_libraries(simulator simulation ${QT_LIBRARIES} ${PTHREAD_LIBRARY} ${SDL_LIBRARY} ${PHONON_LIBS})
if(SDL_FOUND)
target_link_libraries(simulator simulation ${QT_LIBRARIES} ${PTHREAD_LIBRARY} ${SDL_LIBRARY} ${PHONON_LIBS})
else()
target_link_libraries(simulator simulation ${QT_LIBRARIES} ${QT_QTMAIN_LIBRARY} ${PTHREAD_LIBRARY} ${SDL_LIBRARY} ${PHONON_LIBS})
endif()
############# Packaging ####################