为msvc排除编译选项

main
lensfrex 3 years ago
parent ebae589e37
commit dd3cd0db58
Signed by: lensfrex
GPG Key ID: 0F69A0A2FBEE98A0
  1. 4
      work20220325/CMakeLists.txt

@ -2,5 +2,9 @@ cmake_minimum_required(VERSION 3.21)
project(work20220325)
set(CMAKE_CXX_STANDARD 14)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-finput-charset=GBK -fexec-charset=GBK)
endif ()
add_executable(work20220325 main.cpp person/Person.cpp person/Person.h date/Date.cpp date/Date.h person/students/Student.cpp person/students/Student.h person/teachers/Teacher.cpp person/teachers/Teacher.h person/students/Graduate.cpp person/students/Graduate.h date/Date.cpp date/Date.h person/students/Student.cpp person/students/Student.h person/teachers/Teacher.cpp person/teachers/Teacher.h person/students/Graduate.cpp person/students/Graduate.h person/students/TeachAssistant.cpp person/students/TeachAssistant.h)

Loading…
Cancel
Save