diff options
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e38725..87f3d76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -71,7 +71,7 @@ message(STATUS "Lua library: ${LUA_LIBRARIES}") | |||
| 71 | enable_language(C CXX) | 71 | enable_language(C CXX) |
| 72 | include_directories(src src/3rdParty ${LUA_INCLUDE_DIR}) | 72 | include_directories(src src/3rdParty ${LUA_INCLUDE_DIR}) |
| 73 | if (MSVC) | 73 | if (MSVC) |
| 74 | add_definitions(/O2 /DYUE_UTF8_IMPL) | 74 | add_definitions(/O2 /DYUE_UTF8_IMPL /Zc:__cplusplus) |
| 75 | else () | 75 | else () |
| 76 | add_definitions(-O3 -fPIC -DYUE_UTF8_IMPL) | 76 | add_definitions(-O3 -fPIC -DYUE_UTF8_IMPL) |
| 77 | endif () | 77 | endif () |
| @@ -197,7 +197,6 @@ endif() | |||
| 197 | 197 | ||
| 198 | if (MSVC) | 198 | if (MSVC) |
| 199 | target_compile_definitions(yue PRIVATE _SCL_SECURE_NO_WARNINGS) | 199 | target_compile_definitions(yue PRIVATE _SCL_SECURE_NO_WARNINGS) |
| 200 | target_compile_options(yue PRIVATE /Zc:__cplusplus) | ||
| 201 | else () | 200 | else () |
| 202 | target_compile_options(yue PRIVATE -Wall -Wno-long-long -fPIC) | 201 | target_compile_options(yue PRIVATE -Wall -Wno-long-long -fPIC) |
| 203 | set_source_files_properties(src/3rdParty/colib/ljson.c PROPERTIES COMPILE_FLAGS "-std=c99") | 202 | set_source_files_properties(src/3rdParty/colib/ljson.c PROPERTIES COMPILE_FLAGS "-std=c99") |
