From 0d956fc4f8521f0510d156f6e12da365d466d8f3 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 28 Dec 2012 11:07:37 -0500 Subject: [PATCH] fixed icc build --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1bc0aa..ce2fbcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,8 +57,8 @@ if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS /wd4018 /wd4244 /wd4267 /wd4305 /wd4308 /wd4307 /wd4554 /wd4996 /nologo") endif() -if(${CMAKE_C_COMPILER} STREQUAL "/usr/bin/icc") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd279 -wd2196") +if(${CMAKE_CXX_COMPILER} STREQUAL "/opt/intel/bin/icpc") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-intel -wd2196") endif() # Configure build -- libgit2 0.21.4