Skip to content

Commit 0628a48

Browse files
committed
attempt to fix build on CentOS
1 parent b8c9771 commit 0628a48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

OMParser/3rdParty/antlr4/runtime/Cpp/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ endif()
4444

4545
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
4646
find_package(PkgConfig REQUIRED)
47-
pkg_check_modules(UUID REQUIRED uuid)
47+
pkg_check_modules(UUID uuid)
48+
# try with ossp-uuid for CentOS
49+
if (NOT UUID_FOUND)
50+
pkg_check_modules(UUID REQUIRED ossp-uuid)
51+
endif()
4852
endif()
53+
4954
if(APPLE)
5055
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
5156
endif()

0 commit comments

Comments
 (0)