Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Aug 6, 2023
1 parent eb6a65e commit addf642
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ option(LIBRAPID_NO_WINDOWS_H "Don't include the Windows.h header" OFF)

option(LIBRAPID_MKL_CONFIG_PATH "Path to the 'MKLConfig.cmake' file" "")


# Native arch does not work on MacOS
if (IS_MACOS AND LIBRAPID_NATIVE_ARCH)
message(WARNING "[ LIBRAPID ] Native architecture optimisation is not currently supported on MacOS")
set(LIBRAPID_NATIVE_ARCH OFF)
endif ()

MACRO(SUBDIRLIST result curdir)
FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
SET(dirlist "")
Expand Down Expand Up @@ -131,6 +124,12 @@ if (LIBRAPID_STRICT AND LIBRAPID_QUIET)
message(FATAL_ERROR "LIBRAPID_STRICT and LIBRAPID_QUIET cannot be enabled at the same time")
endif ()

# Native arch does not work on MacOS
if (IS_MACOS AND LIBRAPID_NATIVE_ARCH)
message(WARNING "[ LIBRAPID ] Native architecture optimisation is not currently supported on MacOS")
set(LIBRAPID_NATIVE_ARCH OFF)
endif ()

if (LIBRAPID_STRICT)
# Enable all warnings and treat them as errors
if (MSVC)
Expand Down

0 comments on commit addf642

Please sign in to comment.