@@ -300,11 +300,11 @@ if (WIN32)
300
300
target_compile_options (
301
301
mrdocs-core
302
302
PUBLIC
303
- /permissive- # strict C++
304
- /W4 # enable all warnings
305
- /MP # multi-processor compilation
306
- /EHs # C++ Exception handling
307
- $<$<CONFIG:Debug>:/Oy-> # Disable frame pointer omission
303
+ /permissive- # strict C++
304
+ /W4 # enable all warnings
305
+ $<$<CXX_COMPILER_ID: MSVC >: /MP> # multi-processor compilation
306
+ /EHs # C++ Exception handling
307
+ $<$<CONFIG:Debug>:/Oy-> # Disable frame pointer omission
308
308
)
309
309
endif ()
310
310
endif ()
@@ -334,7 +334,6 @@ list(APPEND TOOL_SOURCES
334
334
${CMAKE_CURRENT_BINARY_DIR} /src/tool/PublicToolArgs.cpp)
335
335
336
336
add_executable (mrdocs ${TOOL_SOURCES} )
337
- target_compile_definitions (mrdocs PRIVATE -DMRDOCS_TOOL)
338
337
339
338
target_include_directories (mrdocs
340
339
PUBLIC
@@ -346,7 +345,6 @@ target_include_directories(mrdocs
346
345
"${PROJECT_BINARY_DIR} /src"
347
346
)
348
347
349
- target_compile_definitions (mrdocs PRIVATE -DMRDOCS_TOOL)
350
348
target_link_libraries (mrdocs PUBLIC mrdocs-core)
351
349
if (MRDOCS_CLANG)
352
350
target_compile_options (
@@ -537,9 +535,14 @@ if (MRDOCS_INSTALL)
537
535
#-------------------------------------------------
538
536
install (TARGETS mrdocs-core
539
537
EXPORT mrdocs-targets
538
+ RUNTIME_DEPENDENCIES
539
+ PRE_EXCLUDE_REGEXES "^api-ms-.*\\ .dll$" "^ext-ms-.*\\ .dll$"
540
+ POST_EXCLUDE_REGEXES ".*system32/.*\\ .dll$"
540
541
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
541
542
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
542
- COMPONENT development
543
+ COMPONENT development
544
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
545
+ FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
543
546
)
544
547
545
548
install (EXPORT mrdocs-targets
0 commit comments