diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-01-29 02:08:27 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-01-29 02:08:27 +0800 |
| commit | 0141e282aae5e071c006041014c786f5ca97435f (patch) | |
| tree | 7f1ca0fd8b8710c7ba79f836a24c3731995ff32c | |
| parent | 18911743710e933e6fd8d8dd8c9ad8808aa11b83 (diff) | |
| download | yuescript-0141e282aae5e071c006041014c786f5ca97435f.tar.gz yuescript-0141e282aae5e071c006041014c786f5ca97435f.tar.bz2 yuescript-0141e282aae5e071c006041014c786f5ca97435f.zip | |
Fixed MSVC build.
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ec45f5..0e38725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -197,6 +197,7 @@ 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) | ||
| 200 | else () | 201 | else () |
| 201 | target_compile_options(yue PRIVATE -Wall -Wno-long-long -fPIC) | 202 | target_compile_options(yue PRIVATE -Wall -Wno-long-long -fPIC) |
| 202 | set_source_files_properties(src/3rdParty/colib/ljson.c PROPERTIES COMPILE_FLAGS "-std=c99") | 203 | set_source_files_properties(src/3rdParty/colib/ljson.c PROPERTIES COMPILE_FLAGS "-std=c99") |
