summaryrefslogtreecommitdiff
path: root/cmake/FindANTLR3.cmake
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-11-04 11:43:42 -0700
committerGitHub <noreply@github.com>2021-11-04 18:43:42 +0000
commite1f69a43e9ee7e4a63f3c4a1881001bc650c9df7 (patch)
treef5293f7fdc47f773466185585a8c41d85a258562 /cmake/FindANTLR3.cmake
parent6aef06e6fed867eb014e08859139c8c610c7cce4 (diff)
Refactor cmake to build either static or shared (#7534)
This PR simplifies the cmake setup to only build either shared or statically. It also attempts to fix windows builds, both shared and static.
Diffstat (limited to 'cmake/FindANTLR3.cmake')
-rw-r--r--cmake/FindANTLR3.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindANTLR3.cmake b/cmake/FindANTLR3.cmake
index bc4afda23..dc8a63255 100644
--- a/cmake/FindANTLR3.cmake
+++ b/cmake/FindANTLR3.cmake
@@ -33,7 +33,7 @@ if(ANTLR3_JAR AND ANTLR3_INCLUDE_DIR AND ANTLR3_LIBRARIES)
check_system_version("ANTLR3")
endif()
-if(ENABLE_STATIC_BUILD AND ANTLR3_FOUND_SYSTEM)
+if(NOT BUILD_SHARED_LIBS AND ANTLR3_FOUND_SYSTEM)
force_static_library()
find_library(ANTLR3_STATIC_LIBRARIES NAMES antlr3c)
if(NOT ANTLR3_STATIC_LIBRARIES)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback