Skip to content

Commit

Permalink
raise minimum Cmake version to 3.5 to remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tgastine committed May 27, 2024
1 parent da98c79 commit 379afe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required (VERSION 3.0)
cmake_minimum_required (VERSION 3.5)
project (magic)
enable_language (Fortran C)
cmake_policy(SET CMP0054 NEW)

# generate a Git version string
execute_process(COMMAND git describe --abbrev=7 --always --tags OUTPUT_VARIABLE GIT_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
Expand Down
4 changes: 2 additions & 2 deletions cmake/FindSSE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# the project is compiled.

IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
EXEC_PROGRAM(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO)
execute_process(COMMAND cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO)

STRING(REGEX REPLACE "^.*(sse2).*$" "\\1" SSE_THERE ${CPUINFO})
STRING(COMPARE EQUAL "sse2" "${SSE_THERE}" SSE2_TRUE)
Expand Down Expand Up @@ -58,7 +58,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
ENDIF (AVX2_TRUE)

ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
EXEC_PROGRAM("/usr/sbin/sysctl -n machdep.cpu.features" OUTPUT_VARIABLE
execute_process(COMMAND "/usr/sbin/sysctl -n machdep.cpu.features" OUTPUT_VARIABLE
CPUINFO)

STRING(REGEX REPLACE "^.*[^S](SSE2).*$" "\\1" SSE_THERE ${CPUINFO})
Expand Down

0 comments on commit 379afe2

Please sign in to comment.