Skip to content

Commit 53eb9ba

Browse files
committed
s
1 parent eb877f2 commit 53eb9ba

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

cmake/findDependencies.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ if(HAVE_RULES)
3434
if(NOT PCRE_LIBRARY OR NOT PCRE_INCLUDE)
3535
message(FATAL_ERROR "pcre dependency for RULES has not been found")
3636
endif()
37+
else()
38+
set(PCRE_LIBRARY "")
3739
endif()
3840

3941
set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -70,6 +72,9 @@ if(NOT USE_BUNDLED_TINYXML2)
7072
endif()
7173

7274
find_package(Threads REQUIRED)
75+
if(NOT DEFINED CMAKE_THREAD_LIBS_INIT)
76+
set(CMAKE_THREAD_LIBS_INIT "")
77+
endif()
7378

7479
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.30")
7580
# avoid legacy warning about Boost lookup in CMake

cmake/printInfo.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ message(STATUS)
9090
message(STATUS "USE_BOOST = ${USE_BOOST}")
9191
if(USE_BOOST)
9292
message(STATUS "Boost_FOUND = ${Boost_FOUND}")
93-
message(STATUS "Boost_VERSION_STRING = ${Boost_VERSION_STRING}")
94-
message(STATUS "Boost_INCLUDE_DIRS = ${Boost_INCLUDE_DIRS}")
95-
message(STATUS "USE_BOOST_INT128 = ${USE_BOOST_INT128}")
93+
if(Boost_FOUND)
94+
message(STATUS "Boost_VERSION_STRING = ${Boost_VERSION_STRING}")
95+
message(STATUS "Boost_INCLUDE_DIRS = ${Boost_INCLUDE_DIRS}")
96+
message(STATUS "USE_BOOST_INT128 = ${USE_BOOST_INT128}")
97+
endif()
9698
endif()
9799
message(STATUS)
98100
message(STATUS "USE_LIBCXX = ${USE_LIBCXX}")

0 commit comments

Comments
 (0)