1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 15:17:13 +02:00

Plugin development mode.

Temporary workaround untill a better approach is implemented.
This commit is contained in:
Sandu Liviu Catalin
2020-05-10 12:19:46 +03:00
parent ca1f6cda50
commit 22c882639b
4 changed files with 24 additions and 10 deletions

View File

@ -22,6 +22,10 @@ else()
endif()
# Set library compiler options
target_compile_definitions(Sqrat PUBLIC SCRAT_USE_EXCEPTIONS=1 SCRAT_USE_CXX11_OPTIMIZATIONS=1)
# Switch to plugin-development mode
if(PLUGIN_DEVEL)
target_compile_definitions(Sqrat PUBLIC SQMOD_PLUGIN_API=1)
end()
# Set specific compiler options
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
#target_compile_options(Sqrat PRIVATE -w