File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ else ()
4141endif  ()
4242if  (NOT  DEFINED  GTEST_INCLUDE_DIR)
4343    message (FATAL_ERROR "Could not find headers for gtest!" )
44+ else ()
45+     message (STATUS  "gtest include directory: ${GTEST_INCLUDE_DIR} " )
4446endif  ()
4547
4648if  ((EXISTS  "${GTEST_ROOT} /lib/libgtest_main.a" 
@@ -54,12 +56,14 @@ else ()
5456endif  ()
5557if  (NOT  DEFINED  GTEST_LIBRARY_DIR)
5658    message (FATAL_ERROR "Could not find library for gtest!" )
59+ else ()
60+     message (STATUS  "gtest library directory: ${GTEST_LIBRARY_DIR} " )
5761endif  ()
5862
5963message (STATUS  "googletest root directory: ${GTEST_ROOT} " )
6064
6165include_directories (SYSTEM  ${GTEST_INCLUDE_DIR} )
62- link_directories (${CMAKE_LIBRARY_DIR }  ${GTEST_ROOT} /bin)
66+ link_directories (${GTEST_LIBRARY_DIR }  ${GTEST_ROOT} /bin)
6367
6468
6569#--------------------------- 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments