Code Review: a) revert TinyGLTF #defines, b) call vkDeviceWaitIdle() in macOS/iOS termination handlers, c) remove OpenMP target_compile_options() in CMakeLists
This commit is contained in:
parent
46b2027dd1
commit
c89d4eb776
7 changed files with 10 additions and 18 deletions
|
|
@ -59,15 +59,11 @@ function(buildExample EXAMPLE_NAME)
|
|||
endif(WIN32)
|
||||
|
||||
set_target_properties(${EXAMPLE_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
|
||||
#if(OpenMP_CXX_FOUND)
|
||||
# SRS - target_compile_options is not needed when using target_link_libraries(<target> OpenMP::OpenMP_CXX) syntax below
|
||||
#target_compile_options(${EXAMPLE_NAME} PRIVATE ${OpenMP_CXX_FLAGS})
|
||||
IF(${EXAMPLE_NAME} STREQUAL "texture3d")
|
||||
if(OpenMP_CXX_FOUND)
|
||||
target_link_libraries(${EXAMPLE_NAME} OpenMP::OpenMP_CXX)
|
||||
endif()
|
||||
if(${EXAMPLE_NAME} STREQUAL "texture3d")
|
||||
if(OpenMP_CXX_FOUND)
|
||||
target_link_libraries(${EXAMPLE_NAME} OpenMP::OpenMP_CXX)
|
||||
endif()
|
||||
#endif()
|
||||
endif()
|
||||
|
||||
if(RESOURCE_INSTALL_DIR)
|
||||
install(TARGETS ${EXAMPLE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue