diff --git a/CMakeLists.txt b/CMakeLists.txt index cafed217e9..a842d4f219 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1181,8 +1181,8 @@ IF(MSVC) SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa") ENDIF(FREECAD_RELEASE_SEH) - OPTION(MP_COMPILE_FLAG "Add /MP flag to the compiler definitions. Speeds up the compile on multi processor machines" OFF) - if( MP_COMPILE_FLAG ) + OPTION(FREECAD_USE_MP_COMPILE_FLAG "Add /MP flag to the compiler definitions. Speeds up the compile on multi processor machines" OFF) + if(FREECAD_USE_MP_COMPILE_FLAG) # set "Build with Multiple Processes" SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")