summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-09-21 11:21:07 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-09-21 11:21:07 -0700
commit535e0082964206fe76d24a4ea13eb3f61f0ce0a9 (patch)
tree79c87b69c49308f667b3a83dc00e5d0e7b249846 /cmake
parentec71327d2949649866d85b1b80356481693ca38e (diff)
parent296be93db3396bef243c4a6dd54061de07f36079 (diff)
Merge remote-tracking branch 'github/pr/1424' into maint
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()