• R/O
  • HTTP
  • SSH
  • HTTPS

timidity41: Commit


Commit MetaInfo

Révisionab4857ee4e6b91ae6b87326468643db2a70efb43 (tree)
l'heure2019-11-09 21:44:29
AuteurStarg <starg@user...>
CommiterStarg

Message de Log

Work around the link error on clang-cl

Change Summary

Modification

--- a/timidity/CMakeLists.txt
+++ b/timidity/CMakeLists.txt
@@ -6,6 +6,11 @@ add_definitions(
66 # calcnewton
77
88 add_executable(calcnewton calcnewt.c)
9+
10+if(MSVC AND "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
11+ target_compile_options(calcnewton PRIVATE /Oi-)
12+endif()
13+
914 add_custom_command(
1015 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/newton_table.c"
1116 COMMAND calcnewton "${CMAKE_CURRENT_BINARY_DIR}/newton_table.c"
Afficher sur ancien navigateur de dépôt.