cmake: Only set -Werror on UNIX
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
0656f8a43d
Коммит
6aa9392699
@ -270,7 +270,9 @@ int main(void) {
|
||||
###########################################################
|
||||
# For detecting attributes we need to treat warnings as
|
||||
# errors
|
||||
set(CMAKE_REQUIRED_FLAGS "-Werror")
|
||||
if (UNIX)
|
||||
set(CMAKE_REQUIRED_FLAGS "-Werror")
|
||||
endif (UNIX)
|
||||
|
||||
check_c_source_compiles("
|
||||
void test_constructor_attribute(void) __attribute__ ((constructor));
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user