]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Helped FindCPPUNIT to detect native CPPUNIT on Ubuntu 20 and Debian 10
authormichael <michael@localhost.localdomain>
Thu, 17 Dec 2020 14:44:21 +0000 (15:44 +0100)
committermichael <michael@localhost.localdomain>
Thu, 17 Dec 2020 14:44:21 +0000 (15:44 +0100)
cmake_files/FindCPPUNIT.cmake

index 4193644cd9ae3235f0966f111c200d939f80e641..9f4d145c39bc3b3b8833143affa15d4c98fa098f 100755 (executable)
@@ -115,7 +115,10 @@ IF(CPPUNIT_STATUS)
       FIND_LIBRARY(CPPUNIT_LIB cppunit_dll PATHS ${CPPUNIT_LIB_PATHS} ${CPPUNIT_FIND_PATHS_OPTION})
     ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
   ELSE(WINDOWS)
-    FIND_LIBRARY(CPPUNIT_LIB cppunit PATHS ${CPPUNIT_LIB_PATHS} ${CPPUNIT_FIND_PATHS_OPTION})
+    FIND_LIBRARY(CPPUNIT_LIB cppunit PATHS ${CPPUNIT_LIB_PATHS} ${CPPUNIT_FIND_PATHS_OPTION}
+                                           /usr/lib/x86_64-linux-gnu # Path for ubuntu 20 and debian 10
+                                           /usr/lib64                # Path for CentOs 8
+                                               )
   ENDIF(WINDOWS)
   SET(CPPUNIT_LIBS)
   IF(CPPUNIT_LIB)