Skip to content

Commit

Permalink
Move /utf-8 flag to INTERFACE options on OpenImageIO::OpenImageIO target
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Oct 8, 2024
1 parent 814f758 commit 31cebfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
find_package(OpenImageIO CONFIG REQUIRED)

target_compile_options(OpenImageIO::OpenImageIO INTERFACE $<$<CXX_COMPILER_ID:MSVC>:/utf-8>)

add_library(mandel
include/mandel/mandel.h
mandel.cpp)
target_include_directories(mandel PUBLIC include)
target_compile_options(mandel PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/utf-8>)
target_link_libraries(mandel PUBLIC OpenImageIO::OpenImageIO)
set_property(TARGET mandel PROPERTY FOLDER Libraries)

0 comments on commit 31cebfe

Please sign in to comment.