@@ -292,11 +292,11 @@ if (WIN32)
292292 target_compile_options (
293293 mrdocs-core
294294 PUBLIC
295- /permissive- # strict C++
296- /W4 # enable all warnings
297- /MP # multi-processor compilation
298- /EHs # C++ Exception handling
299- $<$<CONFIG:Debug>:/Oy-> # Disable frame pointer omission
295+ /permissive- # strict C++
296+ /W4 # enable all warnings
297+ $<$<CXX_COMPILER_ID: MSVC >: /MP> # multi-processor compilation
298+ /EHs # C++ Exception handling
299+ $<$<CONFIG:Debug>:/Oy-> # Disable frame pointer omission
300300 )
301301 endif ()
302302endif ()
@@ -326,7 +326,6 @@ list(APPEND TOOL_SOURCES
326326 ${CMAKE_CURRENT_BINARY_DIR} /src/tool/PublicToolArgs.cpp)
327327
328328add_executable (mrdocs ${TOOL_SOURCES} )
329- target_compile_definitions (mrdocs PRIVATE -DMRDOCS_TOOL)
330329
331330target_include_directories (mrdocs
332331 PUBLIC
@@ -338,7 +337,6 @@ target_include_directories(mrdocs
338337 "${PROJECT_BINARY_DIR} /src"
339338)
340339
341- target_compile_definitions (mrdocs PRIVATE -DMRDOCS_TOOL)
342340target_link_libraries (mrdocs PUBLIC mrdocs-core)
343341if (MRDOCS_CLANG)
344342 target_compile_options (
@@ -532,6 +530,7 @@ if (MRDOCS_INSTALL)
532530 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
533531 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
534532 COMPONENT development
533+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
535534 )
536535
537536 install (EXPORT mrdocs-targets
0 commit comments