• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ

よく使われているワード(クリックで追加)

javaandroidc++linuxc#objective-ccocoa誰得qtrubybathyscaphegamephpguiwindowsc翻訳pythonomegattwitterframeworkbtronarduinovb.net計画中(planning stage)directxpreviewertestゲームエンジンdom

TiMidity++ 改造版 (Windows 専用)


コミットメタ情報

リビジョンda10441727fbcd643f1179232d79b7769f5cd869 (tree)
日時2017-11-11 17:59:25
作者Starg <starg@user...>
コミッターStarg

ログメッセージ

Tweaked compile flags.

変更サマリ

差分

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -103,18 +103,29 @@ if(MSVC)
103103 add_compile_options(-W4 -Zi -fp:fast)
104104
105105 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /GL /GS /guard:cf")
106+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL /GS /guard:cf")
106107
107- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
108108 set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /DEBUG:FASTLINK")
109+ set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /DEBUG:FASTLINK")
109110 set(CMAKE_EXE_LINKER_FLAGS_RELEASE
110111 "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /OPT:REF /OPT:ICF /LTCG:incremental /DEBUG:FULL /GUARD:CF"
111112 )
113+ set(CMAKE_SHARED_LINKER_FLAGS_RELEASE
114+ "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /OPT:REF /OPT:ICF /LTCG:incremental /DEBUG:FULL /GUARD:CF"
115+ )
116+ set(CMAKE_STATIC_LINKER_FLAGS_RELEASE "${CMAKE_STATIC_LINKER_FLAGS_RELEASE} /LTCG:incremental")
112117 set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
113118 "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} /OPT:REF /DEBUG:FASTLINK"
114119 )
120+ set(CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
121+ "${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO} /OPT:REF /DEBUG:FASTLINK"
122+ )
115123 else()
116124 add_compile_options(-Wall -Wextra)
125+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -flto")
126+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto")
117127 set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -s")
128+ set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} -s")
118129 endif()
119130
120131 include_directories("." interface libarc libunimod timidity utils)
--- a/timidity/CMakeLists.txt
+++ b/timidity/CMakeLists.txt
@@ -158,7 +158,11 @@ endif()
158158 if(TIMIDITY_INTERFACE_W32GUI)
159159 add_executable(timw32g WIN32 ${TiMiditySources})
160160 target_link_libraries(timw32g ${TiMidityLibs})
161+ get_property(linkFlags TARGET timw32g PROPERTY LINK_FLAGS)
162+ set_target_properties(timw32g PROPERTIES LINK_FLAGS "${linkFlags} /MANIFEST:NO")
161163 elseif(TIMIDITY_INTERFACE_WINSYN)
162164 add_executable(twsyng WIN32 ${TiMiditySources})
163- target_link_libraries(timidity ${TiMidityLibs})
165+ target_link_libraries(twsyng ${TiMidityLibs})
166+ get_property(linkFlags TARGET twsyng PROPERTY LINK_FLAGS)
167+ set_target_properties(twsyng PROPERTIES LINK_FLAGS "${linkFlags} /MANIFEST:NO")
164168 endif()