-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
In commit 1355b98 CMAKE_CXX_FLAGS is compared against a default value, however, the default value starts with a space which is not what you have when you run cmake to generate project files for visual studio.
Your Environment
- Operating System and version: Windows 10
- Compiler: VS2013
- PCL Version: 1.8.1, 1.8.0
- CMake: 3.8.1
Expected Behavior
When CMAKE_CXX_FLAGS is not specified explicitly from cmake, the /MP option should be added for Visual Studio to enable parallel compile.
Remove the leading space in that commit, and the /MP option is added as expected.
Current Behavior
Possible Solution
- if("${CMAKE_CXX_FLAGS}" STREQUAL " /DWIN32 /D_WINDOWS /W3 /GR /EHsc") ## Check against default flags
+ if("${CMAKE_CXX_FLAGS}" STREQUAL "/DWIN32 /D_WINDOWS /W3 /GR /EHsc") ## Check against default flags
Code to Reproduce
Context
UnaNancyOwen and bjornpiltz
Metadata
Metadata
Assignees
Labels
No labels