From a69d0220853d723c9892825a57a9254b14a8f8de Mon Sep 17 00:00:00 2001 From: Berenger Bramas Date: Tue, 9 Aug 2016 16:29:54 +0200 Subject: [PATCH] Update cmake -- ensure we can choose the iSDE arch for the cmake detection stage --- CMakeModules/GetCpuInfos.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeModules/GetCpuInfos.cmake b/CMakeModules/GetCpuInfos.cmake index 5dda651..34806d9 100644 --- a/CMakeModules/GetCpuInfos.cmake +++ b/CMakeModules/GetCpuInfos.cmake @@ -25,8 +25,11 @@ OPTION( INASTEMP_ISDE_CPU "Set to ON to run the CPU detection over sde64" OFF ) # Compile and execute the file if(INASTEMP_ISDE_CPU) + SET( INASTEMP_ISDE_CPU_ARGS "-knl" CACHE STRING "Arguments for sde64" ) + if($ENV{VERBOSE}) message(STATUS "GetCpuInfosFile -- use intel SDE") + message(STATUS "GetCpuInfosFile -- INASTEMP_ISDE_CPU_ARGS = ${INASTEMP_ISDE_CPU_ARGS}") endif() get_filename_component( @@ -47,7 +50,7 @@ if(INASTEMP_ISDE_CPU) message(FATAL_ERROR "The GetCpuInfosFile compiled file does not exist (${GetCpuInfosFileExec})") endif() - exec_program("sde64 -- ${GetCpuInfosFileExec}" ${CMAKE_CURRENT_BINARY_DIR} + exec_program("sde64 ${INASTEMP_ISDE_CPU_ARGS} -- ${GetCpuInfosFileExec}" ${CMAKE_CURRENT_BINARY_DIR} OUTPUT_VARIABLE run RETURN_VALUE RUN_RESULT_VAR) endif() -- GitLab