Skip to content

Add CTK_MSVC_ENABLE_MP to root CMakeLists and enable /MP /FS for MSVC#1349

Open
jiannanya wants to merge 1 commit intocommontk:masterfrom
jiannanya:add_msvc_mp
Open

Add CTK_MSVC_ENABLE_MP to root CMakeLists and enable /MP /FS for MSVC#1349
jiannanya wants to merge 1 commit intocommontk:masterfrom
jiannanya:add_msvc_mp

Conversation

@jiannanya
Copy link
Copy Markdown

Add CTK_MSVC_ENABLE_MP to root CMakeLists and enable /MP /FS for MSVC

  • Add global handling: if enabled (default ON) add /MP and /FS for MSVC or clang-cl frontend.
  • Help mitigate PDB write conflicts on Windows (error C1090).

- Add global handling: if enabled (default ON) add /MP and /FS for MSVC or clang-cl frontend.
- Help mitigate PDB write conflicts on Windows (error C1090).
@lassoan
Copy link
Copy Markdown
Member

lassoan commented Feb 1, 2026

Can this be achieved by using existing CMake variables?

See for example how 3D Slicer configures CTK build: https://github.com/Slicer/Slicer/blob/8e556d8e1a20aa3d7af6a7f42d5ee669922c6d58/SuperBuild/External_CTK.cmake#L102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants