mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 05:39:30 +08:00
a14e462ef9
* Patch VS project file with CRT linkage * [antlr4] Support build on Linux and MacOS
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
diff -urN a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
|
|
--- a/runtime/CMakeLists.txt 2017-11-29 09:51:54.000000000 +0800
|
|
+++ b/runtime/CMakeLists.txt 2018-08-30 19:06:03.718401800 +0800
|
|
@@ -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,10 +63,10 @@
|
|
set(extra_share_compile_flags "-DANTLR4CPP_EXPORTS")
|
|
set(extra_static_compile_flags "-DANTLR4CPP_STATIC")
|
|
endif(WIN32)
|
|
-if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
- target_compile_options(antlr4_shared PRIVATE "/MD$<$<CONFIG:Debug>:d>")
|
|
- target_compile_options(antlr4_static PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
|
-endif()
|
|
+# if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
+# target_compile_options(antlr4_shared PRIVATE "/MD$<$<CONFIG:Debug>:d>")
|
|
+# target_compile_options(antlr4_static PRIVATE "/MT$<$<CONFIG:Debug>:d>")
|
|
+# endif()
|
|
|
|
set(static_lib_suffix "")
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
|