This commit is contained in:
blueloveTH 2023-07-15 14:23:34 +08:00
parent 84c35b85e0
commit e319c715e4
4 changed files with 0 additions and 6 deletions

View File

@ -21,9 +21,6 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR- /EHsc /utf-8 /O2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR- /EHsc /utf-8 /O2")
else() else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fexceptions -O2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fexceptions -O2")
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
endif() endif()
include_directories(${CMAKE_CURRENT_LIST_DIR}/include) include_directories(${CMAKE_CURRENT_LIST_DIR}/include)

View File

@ -41,7 +41,6 @@ To compile it with your project, these flags must be set:
+ `--std=c++17` flag must be set + `--std=c++17` flag must be set
+ Exception must be enabled + Exception must be enabled
+ RTTI is not required + RTTI is not required
+ If clang is used, `-stdlib=libc++` must be set
### Example ### Example

View File

@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.17)
project(test_c_bindings) project(test_c_bindings)
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
option(PK_BUILD_STATIC_LIB "Build static library" ON) option(PK_BUILD_STATIC_LIB "Build static library" ON)

View File

@ -23,7 +23,6 @@ To compile it with your project, these flags must be set:
+ `--std=c++17` flag must be set + `--std=c++17` flag must be set
+ Exception must be enabled + Exception must be enabled
+ RTTI is not required + RTTI is not required
+ If clang is used, `-stdlib=libc++` must be set
### Example ### Example