mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-10 16:16:16 +00:00
cmake: rename MOMO_BUILD_AS_LIBRARY to SOGEN_BUILD_STATIC
Also adds FATAL_ERROR guard when SOGEN_STATIC_CRT=ON without SOGEN_BUILD_STATIC=ON, since static CRT with shared libraries causes heap corruption (each DLL gets its own allocator but sogen passes ownership across boundaries). These options are designed to be used together for full static linking, useful for embedding sogen in projects like IDA Pro plugins.
This commit is contained in:
@@ -44,7 +44,7 @@ endif()
|
||||
|
||||
##########################################
|
||||
|
||||
option(MOMO_BUILD_AS_LIBRARY "Configure and Build the sogen as a shared library (without the samples and tests)" ${MOMO_IS_SUBPROJECT})
|
||||
option(SOGEN_BUILD_STATIC "Build sogen as static libraries for embedding (e.g., IDA plugins)" ${MOMO_IS_SUBPROJECT})
|
||||
|
||||
##########################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user