diff --git a/CMakeLists.txt b/CMakeLists.txt index 50b8e39a..976ad8f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ apply_project_settings() include_directories( "${ENGINE_SOURCE_DIR}" ) include_directories( "${ENGINE_SOURCE_DIR}/public" ) -include_directories( "${ENGINE_SOURCE_DIR}/thirdparty" ) +include_directories( "${THIRDPARTY_SOURCE_DIR}" ) # Include the subdirectories that contain the individual projects add_subdirectory( "${ENGINE_SOURCE_DIR}" ) diff --git a/r5dev/cmake/Macros.cmake b/r5dev/cmake/Macros.cmake index f2a76cee..01f7aad5 100644 --- a/r5dev/cmake/Macros.cmake +++ b/r5dev/cmake/Macros.cmake @@ -134,18 +134,22 @@ endmacro() macro( thirdparty_suppress_warnings ) if( MSVC OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) target_compile_options( ${PROJECT_NAME} PRIVATE + /wd4057 # 'function': 'int *' differs in indirection to slightly different base types from 'unsigned int [4]' /wd4100 # Unreferenced formal parameter. /wd4131 # Using old-style declarations /wd4152 # Function/data pointer conversion in expression. /wd4200 # Zero-sized array in union; SDL2 uses this for compiler compatibility. /wd4201 # Nameless struct/union. /wd4244 # Type conversion truncation; protobuf has many, but this appears intentional. + /wd4245 # 'return': conversion signed/unsigned mismatch /wd4267 # Type conversion truncation; protobuf has many, but this appears intentional. /wd4307 # Integral constant overflow. /wd4389 # Signed/unsigned mismatch. /wd4456 # Declaration hides previous local declaration. /wd4457 # Declaration hides function parameter. /wd4505 # Unreferenced local function has been removed. + /wd4701 # potentially uninitialized local variable. + /wd4702 # Unreachable code. ) endif() warnings_as_errors( ${PROJECT_NAME} FALSE ) diff --git a/r5dev/cmake/Options.cmake b/r5dev/cmake/Options.cmake index ad962f30..4a2d4fb2 100644 --- a/r5dev/cmake/Options.cmake +++ b/r5dev/cmake/Options.cmake @@ -103,9 +103,9 @@ macro( apply_project_settings ) include_directories( "${ENGINE_SOURCE_DIR}/" "${ENGINE_SOURCE_DIR}/public/" - "${ENGINE_SOURCE_DIR}/thirdparty/" - "${ENGINE_SOURCE_DIR}/thirdparty/imgui/" - "${ENGINE_SOURCE_DIR}/thirdparty/recast/" + "${THIRDPARTY_SOURCE_DIR}/" + "${THIRDPARTY_SOURCE_DIR}/imgui/" + "${THIRDPARTY_SOURCE_DIR}/recast/" ) endmacro()