Fixed compilation on Visual Studio in Debug mode.

This commit is contained in:
bubnikv 2019-01-26 14:12:57 +01:00
parent 302a51f6cb
commit 48d64b0842

View file

@ -70,10 +70,12 @@ if(TBB_FOUND)
# The Intel TBB library will use the std::exception_ptr feature of C++11. # The Intel TBB library will use the std::exception_ptr feature of C++11.
target_compile_definitions(libnest2d INTERFACE -DTBB_USE_CAPTURED_EXCEPTION=0) target_compile_definitions(libnest2d INTERFACE -DTBB_USE_CAPTURED_EXCEPTION=0)
find_package(Threads REQUIRED) target_link_libraries(libnest2d INTERFACE tbb)
target_link_libraries(libnest2d INTERFACE ${TBB_LIBRARIES} ${CMAKE_DL_LIBS} # The following breaks compilation on Visual Studio in Debug mode.
Threads::Threads #find_package(Threads REQUIRED)
) #target_link_libraries(libnest2d INTERFACE ${TBB_LIBRARIES} ${CMAKE_DL_LIBS}
# Threads::Threads
# )
else() else()
find_package(OpenMP QUIET) find_package(OpenMP QUIET)