Skip to content

Commit

Permalink
fixed some issues with new FindPETSc script
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed Nov 16, 2018
1 parent bcf68e4 commit f12ef2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/FindPETSc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#

cmake_policy(VERSION 3.3)
# cmake_policy(VERSION 3.3)

set(PETSC_VALID_COMPONENTS
C
CXX)

if(NOT PETSc_FIND_COMPONENTS)
get_property (_enabled_langs GLOBAL PROPERTY ENABLED_LANGUAGES)
if ("C" IN_LIST _enabled_langs)
list(FIND _enabled_langs "C" _lang_index)
if (${_lang_index} GREATER -1)
set(PETSC_LANGUAGE_BINDINGS "C")
else ()
set(PETSC_LANGUAGE_BINDINGS "CXX")
Expand Down

0 comments on commit f12ef2f

Please sign in to comment.