Commit 3e9f1114 authored by Robert Maynard's avatar Robert Maynard

Unset the local version of BUILD_SHARED_LIBS that moab creates.

Certain version of MOAB will create a variable called BUILD_SHARED_LIBS that
will hide the cache version inside SMTK. This mean that if you are building
smtk shared and with a static moab, you will actually build smtk statically.

The fix is to remove the local version of the variable after importing
the moab config file.
parent 7da6895e
......@@ -61,6 +61,12 @@ if(MOAB_FOUND)
#Certain version of moab define a scope variable called BUILD_SHARED_LIBS
#which hides the cache version of said variable. So we defend against
#this by unsetting the variable
set_target_properties(MOAB PROPERTIES
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment