Fix cmake 3.12 error: CMP0077 was not defined until 3.13.

This commit is contained in:
Kristian Bendiksen 2020-11-04 10:44:07 +01:00 committed by Gaute Lindkvist
parent 76896827cd
commit c8c32efba2

View File

@ -6,7 +6,9 @@ project (ResInsight)
set (VIZ_MODULES_FOLDER_NAME Fwk/VizFwk)
cmake_policy(SET CMP0020 NEW)
cmake_policy(SET CMP0077 OLD)
if (POLICY CMP0077)
cmake_policy(SET CMP0077 OLD)
endif()
if (UNIX)
option(RESINSIGHT_PREFER_LEGACY_OPENGL "Link with Legacy OpenGL libraries. This may be necessary in some virtualization environments" ON)