Merge pull request #114 from andlaus/misc_fixes

Misc fixes
This commit is contained in:
Arne Morten Kvarving
2016-05-11 13:53:56 +02:00
2 changed files with 8 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ include(CheckCSourceCompiles)
cmake_push_check_state()
set(SUPERLU_FOUND "FALSE")
# find out the size of a pointer. this is required to only search for
# libraries in the directories relevant for the architecture
if (CMAKE_SIZEOF_VOID_P)

View File

@@ -28,6 +28,12 @@ if (POLICY CMP0048)
cmake_policy(SET CMP0048 OLD)
endif()
# set the behavior of the policy 0054 to NEW. (i.e. do not implicitly
# expand variables in if statements)
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
# include special
if (CMAKE_VERSION VERSION_LESS "2.8.3")
message (STATUS "Enabling compatibility modules for CMake 2.8.3")