--- hatari/src/gui-sdl/CMakeLists.txt 2019/04/09 08:48:52 1.1 +++ hatari/src/gui-sdl/CMakeLists.txt 2019/04/09 08:55:54 1.1.1.3 @@ -1,10 +1,12 @@ include_directories(. ../.. ../debug ../includes ${SDL_INCLUDE_DIR}) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings") +if(CMAKE_COMPILER_IS_GNUCC) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings") +endif(CMAKE_COMPILER_IS_GNUCC) add_library(GuiSdl - dlgAbout.c dlgAlert.c dlgDevice.c dlgFileSelect.c dlgFloppy.c + dlgAbout.c dlgHalt.c dlgAlert.c dlgDevice.c dlgFileSelect.c dlgFloppy.c dlgHardDisk.c dlgJoystick.c dlgKeyboard.c dlgMain.c dlgMemory.c dlgNewDisk.c dlgRom.c dlgScreen.c dlgSound.c dlgSystem.c sdlgui.c