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$<$:d>") - target_compile_options(antlr4_static PRIVATE "/MT$<$:d>") - else() - target_compile_options(antlr4_shared PRIVATE "/MD$<$:d>") - target_compile_options(antlr4_static PRIVATE "/MD$<$:d>") - endif() -endif() +# if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") +# if(WITH_STATIC_CRT) +# target_compile_options(antlr4_shared PRIVATE "/MT$<$:d>") +# target_compile_options(antlr4_static PRIVATE "/MT$<$:d>") +# else() +# target_compile_options(antlr4_shared PRIVATE "/MD$<$:d>") +# target_compile_options(antlr4_static PRIVATE "/MD$<$:d>") +# endif() +# endif() set(static_lib_suffix "") if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")