Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 4, 2023
1 parent 432948c commit dbffbca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ find_package(OpenEXR)
find_package(LibRaw)
find_package(SeExpr2)


set(CMAKE_CXX_STANDARD 11)
if(NOT ${OpenImageIO_VERSION} VERSION_LESS 2.3)
# C++14 required for OpenImageIO >= 2.3
set(CMAKE_CXX_STANDARD 14)
endif()

# Use -Ofast when applicable (implies -ffast-math)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
Expand Down

0 comments on commit dbffbca

Please sign in to comment.