File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function(target_dll_compile_definitions TARGET)
3636 endif ()
3737
3838
39- if (BUILD_SHARED_LIBS AND MSVC )
39+ if (( BUILD_SHARED_LIBS OR BUILD_CORE_DLL) AND MSVC )
4040 if (PARSE_EXPORT)
4141 target_compile_definitions (${TARGET} PRIVATE ${PARSE_EXPORT} )
4242 endif ()
Original file line number Diff line number Diff line change 5353endif ()
5454
5555option (BUILD_CORE_DLL "Build lib as cppcheck-core.dll with Visual Studio" OFF )
56- if (BUILD_CORE_DLL AND NOT MSVC )
57- message (FATAL_ERROR "Building of lib as DLL is only supported with Visual Studio" )
58- endif ()
5956option (BUILD_TESTS "Build tests" OFF )
6057option (REGISTER_TESTS "Register tests in CTest" ON )
6158option (ENABLE_CHECK_INTERNAL "Enable internal checks" OFF )
Original file line number Diff line number Diff line change 1+ if (BUILD_CORE_DLL)
2+ set (BUILD_SHARED_LIBS On )
3+ endif ()
4+
15file (GLOB_RECURSE hdrs "*.h" )
26file (GLOB_RECURSE srcs "*.cpp" )
37
You can’t perform that action at this time.
0 commit comments