Commit 248fd9a9 authored by Patrik Huber's avatar Patrik Huber

Added /bigobj to the examples on MSVC

Probably needed because OpenCV needs it, and we depend on OpenCV.
parent 3509234e
...@@ -29,6 +29,10 @@ else(Boost_FOUND) ...@@ -29,6 +29,10 @@ else(Boost_FOUND)
message(FATAL_ERROR "Boost not found") message(FATAL_ERROR "Boost not found")
endif() endif()
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
endif()
# Model fitting (affine cam & shape to landmarks) example: # Model fitting (affine cam & shape to landmarks) example:
add_executable(fit-model fit-model.cpp) add_executable(fit-model fit-model.cpp)
target_link_libraries(fit-model ${OpenCV_LIBS} ${Boost_LIBRARIES}) target_link_libraries(fit-model ${OpenCV_LIBS} ${Boost_LIBRARIES})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment