From 178aea2224315e0a3aae79301b3d85c2513729a4 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 18 Jul 2020 13:44:52 +0200 Subject: [PATCH] Only remove previous warning for gcc. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5d976f..1b7281b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,10 @@ if (WINDOWS) ADD_DEFINITIONS(-D WINDOWS=1) endif (WINDOWS) +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + add_compile_options(-Wno-error=cast-function-type) +endif () + message(STATUS "Using: \t C ${CMAKE_C_COMPILER} \t C++ ${CMAKE_CXX_COMPILER}