File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 77# The full license is in the file LICENSE, distributed with this software. # 
88############################################################################ 
99
10+ set (CMAKE_CXX_EXTENSIONS OFF )
11+ 
1012cmake_minimum_required (VERSION  3.29)
1113project (xtensor-blas)
1214
15+ if (NOT  CMAKE_CXX_STANDARD)
16+     set (CMAKE_CXX_STANDARD 20)
17+ endif ()
18+ 
1319set (INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include )
1420set (XTENSOR_BLAS_INCLUDE_DIR ${INCLUDE_DIR} )
1521
@@ -80,6 +86,7 @@ target_include_directories(xtensor-blas
8086    $<INSTALL_INTERFACE:include >)
8187
8288target_compile_features (xtensor-blas INTERFACE  cxx_std_20)
89+ set_target_properties (xtensor-blas PROPERTIES CMAKE_CXX_EXTENSIONS OFF )
8390
8491OPTION (CXXBLAS_DEBUG "print cxxblas debug information"  OFF )
8592OPTION (XTENSOR_USE_FLENS_BLAS "use FLENS generic implementation instead of cblas"  OFF )
Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ set(XTENSOR_BLAS_TESTS
120120)
121121
122122add_executable (test_xtensor_blas ${XTENSOR_BLAS_TESTS}  ${XTENSOR_BLAS_HEADERS}  ${XTENSOR_HEADERS} )
123- #target_link_libraries (test_xtensor_blas ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES} doctest::doctest ${CMAKE_THREAD_LIBS_INIT} )
124- target_link_libraries (test_xtensor_blas ${BLAS_LIBRARIES}   doctest::doctest ${CMAKE_THREAD_LIBS_INIT} )
123+ set_target_properties (test_xtensor_blas PROPERTIES CMAKE_CXX_EXTENSIONS  OFF )
124+ target_link_libraries (test_xtensor_blas ${BLAS_LIBRARIES}  ${LAPACK_LIBRARIES}  doctest::doctest ${CMAKE_THREAD_LIBS_INIT} )
125125
126126add_custom_target (xtest COMMAND  test_xtensor_blas DEPENDS  test_xtensor_blas)
127127add_test (NAME  xtest COMMAND  test_xtensor_blas)
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments