Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
f587dfe9
Commit
f587dfe9
authored
Mar 05, 2015
by
Ghislain MARY
Browse files
Fix detection of antlr3 when building with CMake.
parent
39044153
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f587dfe9
...
...
@@ -45,6 +45,7 @@ include(CheckIncludeFile)
include
(
CheckLibraryExists
)
include
(
CheckSymbolExists
)
include
(
CheckCSourceCompiles
)
include
(
CMakePushCheckState
)
set
(
MSVC_INCLUDE_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/MSVC"
)
if
(
MSVC
)
...
...
@@ -81,13 +82,11 @@ endif()
find_package
(
Threads
)
find_package
(
Antlr3 REQUIRED
)
if
(
ANTLR3C_FOUND
)
cmake_push_check_state
(
RESET
)
set
(
CMAKE_REQUIRED_INCLUDES
${
ANTLR3C_INCLUDE_DIRS
}
)
set
(
CMAKE_REQUIRED_LIBRARIES
${
ANTLR3C_LIBRARIES
}
)
check_symbol_exists
(
"antlr3StringStreamNew"
"antlr3.h"
HAVE_ANTLR_STRING_STREAM_NEW
)
cmake_pop_check_state
()
endif
()
cmake_push_check_state
(
RESET
)
set
(
CMAKE_REQUIRED_INCLUDES
${
ANTLR3C_INCLUDE_DIRS
}
)
set
(
CMAKE_REQUIRED_LIBRARIES
${
ANTLR3C_LIBRARIES
}
)
check_symbol_exists
(
"antlr3StringStreamNew"
"antlr3.h"
HAVE_ANTLR_STRING_STREAM_NEW
)
cmake_pop_check_state
()
if
(
ENABLE_TLS
)
find_package
(
PolarSSL REQUIRED
)
...
...
cmake/FindAntlr3.cmake
View file @
f587dfe9
...
...
@@ -22,7 +22,7 @@
#
# - Find the antlr3c include file and library and antlr.jar
#
# ANTLR3
C
_FOUND - system has antlr3c
# ANTLR3_FOUND - system has antlr3c
# ANTLR3C_INCLUDE_DIR - the antlr3c include directory
# ANTLR3C_LIBRARIES - The libraries needed to use antlr3c
# ANTLR3_COMMAND - The command to run the antlr jar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment