Fix some cmake issues.

(cherry picked from commit f5364331eb)
This commit is contained in:
Antonio Sánchez
2022-09-02 16:43:14 +00:00
committed by Antonio Sanchez
parent ab6f39e1e3
commit 11dacc4802
3 changed files with 18 additions and 25 deletions

View File

@@ -125,6 +125,7 @@ else()
endif()
option(EIGEN_BUILD_BTL "Build benchmark suite" OFF)
option(EIGEN_BUILD_SPBENCH "Build sparse benchmark suite" OFF)
# Disable pkgconfig only for native Windows builds
if(NOT WIN32 OR NOT CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
@@ -547,7 +548,7 @@ if(EIGEN_BUILD_BTL)
add_subdirectory(bench/btl EXCLUDE_FROM_ALL)
endif()
if(NOT WIN32)
if(NOT WIN32 AND EIGEN_BUILD_SPBENCH)
add_subdirectory(bench/spbench EXCLUDE_FROM_ALL)
endif()