Skip to content

Commit

Permalink
Merge branch 'irsl-msvc-omp-fix' into release-3.10
Browse files Browse the repository at this point in the history
Merge-request: !1588
  • Loading branch information
bradking committed Dec 12, 2017
2 parents 19d5969 + 4dae55f commit 38b4209
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Modules/InstallRequiredSystemLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@
# Specify the :command:`install(PROGRAMS)` command ``COMPONENT``
# option. If not specified, no such option will be used.

cmake_policy(PUSH)
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced

set(_IRSL_HAVE_Intel FALSE)
set(_IRSL_HAVE_MSVC FALSE)
foreach(LANG IN ITEMS C CXX Fortran)
if(CMAKE_${LANG}_COMPILER_ID STREQUAL Intel)
if("${CMAKE_${LANG}_COMPILER_ID}" STREQUAL "Intel")
if(NOT _IRSL_HAVE_Intel)
get_filename_component(_Intel_basedir "${CMAKE_${LANG}_COMPILER}" PATH)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
Expand All @@ -81,7 +84,7 @@ foreach(LANG IN ITEMS C CXX Fortran)
endif()
set(_IRSL_HAVE_Intel TRUE)
endif()
elseif(CMAKE_${LANG}_COMPILER_ID STREQUAL MSVC)
elseif("${CMAKE_${LANG}_COMPILER_ID}" STREQUAL "MSVC")
set(_IRSL_HAVE_MSVC TRUE)
endif()
endforeach()
Expand Down Expand Up @@ -740,3 +743,5 @@ if(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS)
)
endif()
endif()

cmake_policy(POP)

0 comments on commit 38b4209

Please sign in to comment.