From 1a4b9cbee64834e02a216b6e66b3e1bd05041adf Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 14 Mar 2017 11:12:31 -0500 Subject: [PATCH] CMake: Do not compile examples on Windows targets --- cmake/checks/check_02_system_features.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/checks/check_02_system_features.cmake b/cmake/checks/check_02_system_features.cmake index 655e5eb561..be9aec24c2 100644 --- a/cmake/checks/check_02_system_features.cmake +++ b/cmake/checks/check_02_system_features.cmake @@ -141,6 +141,9 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows") "BUILD_SHARED_LIBS forced to OFF\n\n" ) SET(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) + + # And disable compilation of examples: + SET(DEAL_II_COMPILE_EXAMPLES OFF CACHE BOOL "" FORCE) ENDIF() ENDIF() -- 2.39.5