Skip to content

Commit

Permalink
Merge pull request #807 from BenjamenMeyer/bugfix_windows-build_0-8-x
Browse files Browse the repository at this point in the history
Bug Fix: Windows Build on 0.8.x
  • Loading branch information
BenjamenMeyer authored Nov 11, 2023
2 parents beff0dd + ca95fbd commit 6906435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,14 @@ ELSE (ENABLE_PIE)
ENDIF (ENABLE_PIE)

IF (MSVC)
SET(COMPILER_SPECIFIC_CFLAGS " ")
SET(COMPILER_SPECIFIC_FLAGS "/FI\"${Vega_Strike_BINARY_DIR}\"/config.h -D__x86_64__ ")
SET(COMPILER_SPECIFIC_DEBUG_FLAGS "/Z7 ") # also used for release-with-debug -- can change later
SET(COMPILER_SPECIFIC_PROFILER_FLAGS "/Z7 /GL ") # not tested -- requires additional linker flag specialization for profiling run ( /FASTGENPROFILE) and profile use ( /USEPROFILE)
SET(COMPILER_SPECIFIC_RELEASE_FLAGS " ")
SET(TOOLCHAIN_SPECIFIC_LINK_FLAGS "/DEBUG:FULL ")
ELSE (MSVC)
SET(COMPILER_SPECIFIC_CFLAGS " -Wno-unused-function -Wno-unused-variable ")
SET(COMPILER_SPECIFIC_FLAGS "-include config.h -pipe -Wall -std=c++11 -fvisibility=hidden ")
SET(COMPILER_SPECIFIC_DEBUG_FLAGS "-Og -g3 ")
SET(COMPILER_SPECIFIC_PROFILER_FLAGS "-Og -pg -g2 ")
Expand All @@ -325,7 +327,7 @@ SET(CMAKE_CXX_FLAGS_DEBUG "${COMPILER_SPECIFIC_FLAGS} ${COMPILER_SPECIFIC_DEBUG_
"Flags used by the C++ compiler during debug builds."
FORCE
)
SET(CMAKE_C_FLAGS_DEBUG "${COMPILER_SPECIFIC_FLAGS} ${COMPILER_SPECIFIC_DEBUG_FLAGS} ${BUILD_OPT} ${CPU_OPTS} ${DEFINES} -Wno-unused-function -Wno-unused-variable" CACHE STRING
SET(CMAKE_C_FLAGS_DEBUG "${COMPILER_SPECIFIC_FLAGS} ${COMPILER_SPECIFIC_CFLAGS} ${COMPILER_SPECIFIC_DEBUG_FLAGS} ${BUILD_OPT} ${CPU_OPTS} ${DEFINES}" CACHE STRING
"Flags used by the C compiler during debug builds."
FORCE
)
Expand Down

0 comments on commit 6906435

Please sign in to comment.