vcpkg/ports/antlr4/fixed_build.patch

38 lines
1.5 KiB
Diff
Raw Normal View History

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")