fix OpenCascade library list for use with shared libs; added list and options for static lib

This commit is contained in:
Laurens Voerman
2017-02-24 16:34:30 +01:00
parent ad0e6a0f81
commit 75e6889366
2 changed files with 55 additions and 0 deletions

View File

@@ -13,5 +13,9 @@ SET(TARGET_LIBRARIES_VARS OPENCASCADE_LIBRARY)
# requires CMake 3.1 to do the following:
set (CMAKE_CXX_STANDARD 11)
if (NOT "${OPENCASCADE_LIBRARY_TYPE}" STREQUAL "Shared")
ADD_DEFINITIONS(-DHAVE_NO_DLL)
endif (NOT "${OPENCASCADE_LIBRARY_TYPE}" STREQUAL "Shared")
#### end var setup ###
SETUP_PLUGIN(opencascade)