summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-09-21 11:22:16 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-09-21 11:22:16 -0700
commitbd7196f084593e7aa92e48ffac3c5a06cb3c4f2c (patch)
treebcd540bed070e3407ab93c070b8bb48f0e6f3d38 /cmake
parentb014fb6e26d9a363870b477dccc9dfafd890eac0 (diff)
parentd885776952e6b1177d71be8f65b1979a7f87620d (diff)
Merge branch 'next' into python3
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindCppUnit.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/Modules/FindCppUnit.cmake b/cmake/Modules/FindCppUnit.cmake
index f93ade3412..4e9469f9f6 100644
--- a/cmake/Modules/FindCppUnit.cmake
+++ b/cmake/Modules/FindCppUnit.cmake
@@ -37,3 +37,10 @@ LIST(APPEND CPPUNIT_LIBRARIES ${CMAKE_DL_LIBS})
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPPUNIT DEFAULT_MSG CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS)
MARK_AS_ADVANCED(CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS)
+
+
+# set version to be useable by calling script
+
+IF(CPPUNIT_FOUND)
+ set(CPPUNIT_VERSION ${PC_CPPUNIT_VERSION} CACHE INTERNAL "CppUnit Version" FORCE)
+ENDIF()