Skip to content

Commit 17cb544

Browse files
committed
CppUnit is optional
1 parent 370f9dc commit 17cb544

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ cmake_minimum_required(VERSION 2.8)
55
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
66

77
find_package(OpenSSL REQUIRED)
8-
find_package(CppUnit REQUIRED)
98
find_package(JSONC REQUIRED)
109
find_package(CURL REQUIRED)
10+
find_package(CppUnit)
1111

12-
set( OPT_INCS ${CPPUNIT_INCLUDE_DIR} )
12+
IF ( CPPUNIT_FOUND )
13+
set( OPT_INCS ${CPPUNIT_INCLUDE_DIR} )
14+
ENDIF ( CPPUNIT_FOUND )
1315

1416
include_directories(
1517
${grive_SOURCE_DIR}/src

0 commit comments

Comments
 (0)