Skip to content

Commit a4c530c

Browse files
committed
cmake: fix new option API
1 parent e5e94b2 commit a4c530c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jrl_option(INITIALIZE_EIGEN_WITH_NAN "Initialize Eigen objects with NAN values"
4444
jrl_option(CHECK_RUNTIME_MALLOC "Check if some memory allocations are performed at runtime" OFF)
4545
jrl_option(SUFFIX_SO_VERSION "Suffix library name with its version" ON)
4646
jrl_option(BUILD_WITH_VECTORIZATION_SUPPORT "Build the library with the support of modern SIMD instructions" OFF)
47-
jrl_option(BUILD_BINDINGS_WITH_AVX2_SUPPORT "Build the bindings with AVX2 support" ON DEPENDS "BUILD_WITH_VECTORIZATION_SUPPORT")
48-
jrl_option(BUILD_BINDINGS_WITH_AVX512_SUPPORT "Build the bindings with AVX512 support" ON DEPENDS "BUILD_WITH_VECTORIZATION_SUPPORT")
47+
jrl_option(BUILD_BINDINGS_WITH_AVX2_SUPPORT "Build the bindings with AVX2 support" ON CONDITION "BUILD_WITH_VECTORIZATION_SUPPORT" FALLBACK OFF)
48+
jrl_option(BUILD_BINDINGS_WITH_AVX512_SUPPORT "Build the bindings with AVX512 support" ON CONDITION "BUILD_WITH_VECTORIZATION_SUPPORT" FALLBACK OFF)
4949
jrl_option(TEST_JULIA_INTERFACE "Run the julia examples as unittest" OFF)
5050
jrl_option(BUILD_WITH_OPENMP_SUPPORT "Build the library with the OpenMP support" OFF)
51-
jrl_option(LINK_PYTHON_INTERFACE_TO_OPENMP "Link OpenMP to the Python interface" ON DEPENDS "BUILD_WITH_OPENMP_SUPPORT")
52-
jrl_option(BUILD_WITH_SERIALIZATION "Build with serialization support" ON DEPENDS "BUILD_PYTHON_INTERFACE")
51+
jrl_option(LINK_PYTHON_INTERFACE_TO_OPENMP "Link OpenMP to the Python interface" ON CONDITION "BUILD_WITH_OPENMP_SUPPORT" FALLBACK OFF)
52+
jrl_option(BUILD_WITH_SERIALIZATION "Build with serialization support" ON CONDITION "BUILD_PYTHON_INTERFACE" FALLBACK OFF)
5353
jrl_option(GENERATE_PYTHON_STUBS "Generate Python stubs" OFF)
5454

5555
############################################################

0 commit comments

Comments
 (0)