Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed May 27, 2024
1 parent a5d9ec8 commit 827cefa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,13 @@ function(AddApplication)
target_link_libraries(test-${A_Target} GTest::gmock)
endif()

if (NOSTRICTALIASING)
set_source_files_properties(${NOSTRICTALIASING}
PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL GNU)
foreach(NOSTRICTALIASINGFILE ${NOSTRICTALIASINGLIST})
if (${NOSTRICTALIASINGFILE} IN_LIST A_Files)
set_source_files_properties(${NOSTRICTALIASING}
PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
endif()
endforeach()
endif()

ADD_PRECOMPILED_HEADER(${A_Target}-objects)
Expand Down
9 changes: 5 additions & 4 deletions src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ set(QCOMMONLIST
${ENGINE_DIR}/qcommon/translation.cpp
)

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL GNU)
set(NOSTRICTALIASING ${ENGINE_DIR}/qcommon/msg.cpp)
endif()

if (USE_CURSES)
set(ENGINELIST ${ENGINELIST}
${ENGINE_DIR}/sys/con_curses.cpp
Expand Down Expand Up @@ -368,4 +364,9 @@ set(DEDSERVERLIST
${ENGINE_DIR}/null/null_input.cpp
)

set(NOSTRICTALIASINGLIST
${ENGINE_DIR}/qcommon/msg.cpp
${ENGINE_DIR}renderer/tr_bsp.cpp
)

set(WIN_RC ${ENGINE_DIR}/sys/windows-resource/icon.rc)

0 comments on commit 827cefa

Please sign in to comment.