Update CMakeLists.txt
Changed "add_definitions" to "add_compile_options" to fix building with NMake. Using "add_definitions" adds "/MP" to the resource compiler options which results in a fatal error when run with NMake.pull/821/head
parent
3a7c3a5698
commit
8314a20c56
|
@ -72,7 +72,7 @@ if((CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) AND NOT CMAKE_COMPILER_
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall" )
|
||||
elseif(MSVC)
|
||||
# enable multi-core compilation with MSVC
|
||||
add_definitions(/MP)
|
||||
add_compile_options(/MP)
|
||||
endif()
|
||||
|
||||
INCLUDE (FindPkgConfig)
|
||||
|
|
Loading…
Reference in New Issue