diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-27 00:35:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-27 02:30:45 +0100 |
| commit | d2ad7233b97e22b3344cd6eba4ff20da4115606f (patch) | |
| tree | 451d5031328095bfb146601895fc0d3db14d78c6 /src | |
| parent | 33b4fe5de9c44acb81dd88f369d2615384204a00 (diff) | |
Fix mingw build.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 842f44a..1f05c1e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,7 +51,9 @@ include_directories("${PROJECT_SOURCE_DIR}/src" "${OpenSSLLib_include_DIR}" "${X add_definitions(/DPACKAGE_VERSION=\"${VERSION_STRING}\" /DHAVE_XERCES_C=1)
if(WIN32)
add_definitions(/DKM_WIN32 /D_CONSOLE /DASDCP_PLATFORM=\"win32\" /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
+ if(MSVC)
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
+ endif(MSVC)
elseif(UNIX)
add_definitions(/DASDCP_PLATFORM=\"unix\")
endif(WIN32)
|
