File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ else (EIGEN3_INCLUDE_DIR)
6363
6464  find_path (EIGEN3_INCLUDE_DIR NAMES  signature_of_eigen3_matrix_library
6565      PATHS 
66- 	  ${PROJECT_PATH } /extern/eigen
66+ 	  ${PROJECT_SOURCE_DIR } /extern/eigen
6767      ${CMAKE_INSTALL_PREFIX} /include 
6868      ${KDE4_INCLUDE_DIR} 	  
6969      PATH_SUFFIXES  eigen3 eigen
Original file line number Diff line number Diff line change 2323endif ()	
2424
2525include (ExternalProject)
26- set (EigenDir "${CMAKE_SOURCE_DIR} /extern/eigen" )
2726
27+ ## Eigen3 is used by most of the libraries that follow 
28+ find_package (Eigen3 REQUIRED)
2829
2930set (EXT_CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} )
3031if  (NOT  ${CMAKE_BUILD_TYPE}  STREQUAL  "Debug" )
4445	   INSTALL_DIR ${ExternalInstallDir} /Discregrid
4546	   CMAKE_ARGS -DCMAKE_BUILD_TYPE:STRING =${EXT_CMAKE_BUILD_TYPE}  -DCMAKE_INSTALL_PREFIX:PATH =${ExternalInstallDir} /Discregrid
4647	   -DBUILD_AS_SHARED_LIBS:BOOL =0
47- 	   -DBUILD_CMD_EXECUTABLE:BOOL =0 -DEIGEN3_INCLUDE_DIR:PATH =${EigenDir } 
48+ 	   -DBUILD_CMD_EXECUTABLE:BOOL =0 -DEIGEN3_INCLUDE_DIR:PATH =${EIGEN3_INCLUDE_DIR } 
4849	) 
4950	ExternalProject_Get_Property(Ext_Discregrid INSTALL_DIR)
5051	set (Discregrid_INCLUDE_DIR ${INSTALL_DIR} /include )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments