-if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
- find_library(libdl dl)
- if(NOT libdl MATCHES "NOTFOUND")
- target_link_libraries(mod_common ${libdl})
- endif(NOT libdl MATCHES "NOTFOUND")
-endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
+# This is needed so translations are generated before trying to build the qrc.
+# Should probably find a nicer solution with proper dependencies between the involved files, though...
+add_dependencies(mod_common po)