diff options
| author | John Hurst <jhurst@cinecert.com> | 2021-05-20 16:00:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-20 16:00:18 -0700 |
| commit | 5eeb31054d76a2b20e6c5a89814df2dd36d54d4d (patch) | |
| tree | c170c8b5b31eaa9d4885826a7e7b00087ea92dae /src | |
| parent | 14cd84d4f259aea8461e90eba339e37aee041432 (diff) | |
| parent | 1b851da3d111beca7acd376e00c6179c179045ba (diff) | |
Merge pull request #85 from IMFTool/cmake-xml-patch
CMake patches for WITHOUT_XML option and building static libs
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e40f7b1..85883a1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,7 +21,7 @@ else() message(STATUS "Building without encryption support")
endif()
-if (XercescppLib_PATH AND XercescppLib_Debug_PATH AND XercescppLib_include_DIR)
+if (NOT WITHOUT_XML AND XercescppLib_PATH AND XercescppLib_Debug_PATH AND XercescppLib_include_DIR)
set (HAVE_XERCES_C 1)
message(STATUS "Building with XML parse support")
add_definitions(/DHAVE_XERCES_C=1)
@@ -30,9 +30,14 @@ else() endif()
# This lib. doesn't export from dll with __declspec(dllexport). So this lib. must be built statically on Windows.
-if(NOT WIN32)
- set(BUILD_SHARED_LIBS true CACHE BOOL "Build shared or static libs?" FORCE)
-endif(NOT WIN32)
+if(WIN32)
+ if (BUILD_SHARED_LIBS) # from command line
+ message(STATUS "Building shared libs is not supported for WIN32")
+ set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared or static libs?" FORCE)
+ endif()
+else()
+ set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared or static libs?")
+endif()
# ----------libkumu----------
# source
|
