Skip to content

Commit e7f0eb9

Browse files
Leo1690Leonardo Sarmiento
andauthored
cmake: Fix output dir for Visual Studio generator and for when ANTLR_BUILD_CPP_TESTS is not set (#4121)
Signed-off-by: Leonardo Sarmiento <[email protected]> Co-authored-by: Leonardo Sarmiento <[email protected]>
1 parent 009f925 commit e7f0eb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/Cpp/cmake/ExternalAntlr4Cpp.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ endif()
2020
file(MAKE_DIRECTORY "${ANTLR4_INCLUDE_DIRS}")
2121

2222
if(${CMAKE_GENERATOR} MATCHES "Visual Studio.*")
23-
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist/$(Configuration))
23+
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/runtime/$(Configuration))
2424
elseif(${CMAKE_GENERATOR} MATCHES "Xcode.*")
25-
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist/$(CONFIGURATION))
25+
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/runtime/$(CONFIGURATION))
2626
else()
27-
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/dist)
27+
set(ANTLR4_OUTPUT_DIR ${ANTLR4_ROOT}/runtime/Cpp/runtime)
2828
endif()
2929

3030
if(MSVC)

0 commit comments

Comments
 (0)