Skip to content
Permalink
Browse files

CMake: fix cpu detection

  • Loading branch information...
dlevin256 committed Mar 20, 2019
1 parent d1ef651 commit cbe8c79107e1575766cf6a1134b8f524794a1f0b
Showing with 2 additions and 2 deletions.
  1. +2 −2 CMakeLists.txt
@@ -76,9 +76,9 @@ if (CPU_ARCH STREQUAL "detect" AND X86)
message(STATUS "Detecting native cpu...")
try_run(
RUN_RESULT COMPILE_RESULT
"${CMAKE_BINARY_DIR}/tmpdir"
"${CMAKE_CURRENT_BINARY_DIR}/tmpdir"
${CMAKE_CURRENT_SOURCE_DIR}/cmake/detect_cpu.cpp
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${CMAKE_SOURCE_DIR}/include" -DCMAKE_CXX_STANDARD=14
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${CMAKE_CURRENT_SOURCE_DIR}/include" -DCMAKE_CXX_STANDARD=14
-DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=ON
COMPILE_OUTPUT_VARIABLE COMPILE_OUT
RUN_OUTPUT_VARIABLE RUN_OUT

0 comments on commit cbe8c79

Please sign in to comment.
You can’t perform that action at this time.