From d5076326f553441df8a93d07b0cf10431ec66f92 Mon Sep 17 00:00:00 2001 From: InsanityBringer <1504999+InsanityBringer@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:05:31 -0500 Subject: [PATCH] Remove LTCG for now, interferring with things --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 077cf38..2c607ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,10 +60,10 @@ IF (WIN32) SET(D3_GAMEDIR "c:/games/Descent3/") set (CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "lib/win" "lib/win/directx" "thirdparty/OpenAL/libs/Win32") SET(CMAKE_CXX_FLAGS_DEBUG "/Od /EHsc /RTC1 /MTd /MP /W3 /nologo /c /Zi /errorReport:prompt") - SET(CMAKE_CXX_FLAGS_RELEASE "/O2 /GL /FD /EHsc /MT /MP /W3 /nologo /c /Zi /errorReport:prompt") + SET(CMAKE_CXX_FLAGS_RELEASE "/O2 /FD /EHsc /MT /MP /W3 /nologo /c /Zi /errorReport:prompt") SET(CMAKE_MODULE_LINKER_FLAGS "/SAFESEH:NO /SUBSYSTEM:WINDOWS /NODEFAULTLIB:LIBC") - SEt(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /DEBUG") #[ISB] Since /GL is specified at compile time, give the linker a bit of help here. Also generate debug information (how well does that work with LTCG?) + SEt(CMAKE_EXE_LINKER_FLAGS_RELEASE " /DEBUG") #[ISB] Generate debug information ADD_DEFINITIONS (-DIS_WINDOWS -D_CRT_SECURE_NO_WARNINGS -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE) @@ -233,7 +233,7 @@ target_compile_definitions(PiccuEngine PUBLIC -DMONO "$<$ add_library(dmfc SHARED ${DMFC_SOURCES}) target_compile_definitions(dmfc PUBLIC -DOUTRAGE_VERSION -DDMFC_DLL) target_include_directories(dmfc PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/netgames/includes") -add_dependencies(PiccuEngine revision_check piccuengine_hog TCP-IP Tracker) +add_dependencies(PiccuEngine revision_check piccuengine_hog TCP-IP Tracker dmfc) install(TARGETS PiccuEngine DESTINATION ${D3_GAMEDIR})