mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 23:39:07 +08:00
9f2bb70914
* [antlr4] update to 4.8 * [antlr4] Add supports * [antlr4] Regenerate patch files * [antlr4] Remove spaces from patch files Co-authored-by: wangli28 <wangli28@beyondsoft.com>
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
diff -urN a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
|
|
--- a/runtime/CMakeLists.txt
|
|
+++ b/runtime/CMakeLists.txt
|
|
@@ -25,7 +25,7 @@
|
|
add_library(antlr4_shared SHARED ${libantlrcpp_SRC})
|
|
add_library(antlr4_static STATIC ${libantlrcpp_SRC})
|
|
|
|
-set(LIB_OUTPUT_DIR "${CMAKE_HOME_DIRECTORY}/dist") # put generated libraries here.
|
|
+# set(LIB_OUTPUT_DIR "${CMAKE_HOME_DIRECTORY}/dist") # put generated libraries here.
|
|
message(STATUS "Output libraries to ${LIB_OUTPUT_DIR}")
|
|
|
|
# make sure 'make' works fine even if ${LIB_OUTPUT_DIR} is deleted.
|
|
@@ -63,15 +63,15 @@
|
|
set(extra_share_compile_flags "-DANTLR4CPP_EXPORTS")
|
|
set(extra_static_compile_flags "-DANTLR4CPP_STATIC")
|
|
endif(WIN32)
|
|
-if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
- if(WITH_STATIC_CRT)
|
|
- target_compile_options(antlr4_shared PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
|
- target_compile_options(antlr4_static PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
|
- else()
|
|
- target_compile_options(antlr4_shared PRIVATE "/MD$<$<CONFIG:Debug>:d>")
|
|
- target_compile_options(antlr4_static PRIVATE "/MD$<$<CONFIG:Debug>:d>")
|
|
- endif()
|
|
-endif()
|
|
+# if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
+# if(WITH_STATIC_CRT)
|
|
+# target_compile_options(antlr4_shared PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
|
+# target_compile_options(antlr4_static PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
|
+# else()
|
|
+# target_compile_options(antlr4_shared PRIVATE "/MD$<$<CONFIG:Debug>:d>")
|
|
+# target_compile_options(antlr4_static PRIVATE "/MD$<$<CONFIG:Debug>:d>")
|
|
+# endif()
|
|
+# endif()
|
|
|
|
set(static_lib_suffix "")
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
|