Skip to content

Commit 968c12a

Browse files
committed
cmake/unit: fix incorrect antlr include path
1 parent 517fc11 commit 968c12a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if(NOT CMAKE_BUILD_TYPE)
77
set(CMAKE_BUILD_TYPE "Release")
88
endif()
99

10-
set(ANTLR_DIR ../libs/antlr-2.7.7)
10+
set(ANTLR_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../libs/antlr-2.7.7)
1111
add_subdirectory(${ANTLR_DIR} ${CMAKE_CURRENT_BINARY_DIR}/antlr)
1212

1313
if(USE_QT5)
@@ -39,7 +39,7 @@ if(NOT USE_QT5)
3939
QT4_WRAP_CPP(SQLB_MOC ${SQLB_MOC_HDR})
4040
endif()
4141

42-
include_directories(${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR})
42+
include_directories(${ANTLR_DIR})
4343

4444
add_executable(${PROJECT_NAME} ${SQLB_MOC} ${SQLB_HDR} ${SQLB_SRC})
4545

0 commit comments

Comments
 (0)