Fix some cmake issues.

This commit is contained in:
Antonio Sánchez
2022-09-02 16:43:14 +00:00
committed by Rasmus Munk Larsen
parent d816044b6e
commit f5364331eb
3 changed files with 18 additions and 25 deletions

View File

@@ -134,6 +134,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)
@@ -561,7 +562,7 @@ foreach(DIR ${FORMAT_SUBDIRS})
DEPENDS ${FORMAT_SOURCES})
endif()
if(NOT WIN32)
if(NOT WIN32 AND EIGEN_BUILD_SPBENCH)
add_subdirectory(bench/spbench EXCLUDE_FROM_ALL)
endif()