Merge pull request #33 from assimp/msvc-pch

- CMake: enable multicore compilation with vc.
pull/34/head^2
Alexander Gessler 2013-04-21 06:05:06 -07:00
commit 8b7fdb3a39
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-fPIC) # this is a very important switch and some libraries seem now to have it....
## hide all not-exported symbols
add_definitions( -fvisibility=hidden -Wall )
elseif(MSVC)
# enable multi-core compilation with MSVC
add_definitions(/MP)
endif()
INCLUDE (FindPkgConfig)