mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0025713: CMake configuring procedure should allow to build OCCT as static libraries
BUILD_LIBRARY_TYPE variable added
This commit is contained in:
parent
2683e647de
commit
c259930b8e
@ -10,6 +10,18 @@ endif()
|
|||||||
|
|
||||||
set (CMAKE_CONFIGURATION_TYPES ${BUILD_CONFIGURATION} CACHE INTERNAL "" FORCE)
|
set (CMAKE_CONFIGURATION_TYPES ${BUILD_CONFIGURATION} CACHE INTERNAL "" FORCE)
|
||||||
|
|
||||||
|
# set type of OCCT libraries
|
||||||
|
if (NOT BUILD_LIBRARY_TYPE)
|
||||||
|
set (BUILD_LIBRARY_TYPE "Shared" CACHE STRING "The type of OCCT libraries" FORCE)
|
||||||
|
SET_PROPERTY(CACHE BUILD_LIBRARY_TYPE PROPERTY STRINGS Shared Static)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if ("${BUILD_LIBRARY_TYPE}" STREQUAL "Shared")
|
||||||
|
set (BUILD_SHARED_LIBS ON)
|
||||||
|
else()
|
||||||
|
unset (BUILD_SHARED_LIBS)
|
||||||
|
endif()
|
||||||
|
|
||||||
# the name of the project
|
# the name of the project
|
||||||
project (OCCT)
|
project (OCCT)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user