From 82cb2f2a49ab068262b15d17a64cb8397b915bf1 Mon Sep 17 00:00:00 2001 From: Jon Haitz Legarreta Date: Tue, 6 Dec 2016 11:27:34 +0100 Subject: [PATCH] BUG: Fix BUILD_SHARED_LIBS overwritting identical name flags. The BUILD_SHARED_LIBS option for Xdmf was overwritting any flags having the same name being used by other toolkits using Xdmf. Since BUILD_SHARED_LIBS is a built-in CMake variable, this patch set prevents xdmf overwritting the BUILD_SHARED_LIBS flag value by simply removing the option. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c22b94e2..0fe339c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ if(MSVC10) endif() set(XDMF_LIBNAME "Xdmf" CACHE STRING "Name for this xdmf library to avoid collision") -option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF) + if(BUILD_SHARED_LIBS) set(LIBTYPE SHARED) set(BUILD_SHARED 1) -- GitLab