mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 07:27:59 -05:00
force -Werror=return-type on mods
Some checks failed
Build Binaries / Build Windows (push) Has been cancelled
Build Binaries / Build macOS (push) Has been cancelled
Build Binaries / Build Android (64-bit) (push) Has been cancelled
Build Binaries / Build Android (32-bit) (push) Has been cancelled
Build Binaries / Publish (push) Has been cancelled
Some checks failed
Build Binaries / Build Windows (push) Has been cancelled
Build Binaries / Build macOS (push) Has been cancelled
Build Binaries / Build Android (64-bit) (push) Has been cancelled
Build Binaries / Build Android (32-bit) (push) Has been cancelled
Build Binaries / Publish (push) Has been cancelled
This commit is contained in:
parent
60a528a76a
commit
6add0cbfec
1 changed files with 5 additions and 0 deletions
|
@ -212,6 +212,11 @@ if (WIN32)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
# force an error on a missing return type, as this is unfortunately a common mistake people make
|
||||
target_compile_options(${PROJECT_NAME} INTERFACE -Werror=return-type)
|
||||
endif()
|
||||
|
||||
# if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
# set_property(TARGET ${PROJECT_NAME} PROPERTY LINKER_TYPE LLD)
|
||||
# target_link_options(${PROJECT_NAME} INTERFACE -fuse-ld=lld)
|
||||
|
|
Loading…
Reference in a new issue