Skip to content

Commit 33f05c4

Browse files
committed
build(cmake): target compile option call
For: target_compile_options may only set INTERFACE properties on IMPORTED targets
1 parent 2a6bd85 commit 33f05c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docker/itk-wasm/ITKWebAssemblyInterface.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function(add_executable target)
3737
set(wasm_target ${target})
3838
_add_executable(${wasm_target} ${ARGN})
3939
# Suppress CLI11 Encoding_inl.hpp std::wstring_convert deprecation warning
40-
target_compile_options(${wasm_target} PRIVATE "-Wno-deprecated-declarations")
40+
set_property(TARGET ${wasm_target} APPEND PROPERTY COMPILE_OPTIONS "-Wno-deprecated-declarations")
4141
if(EMSCRIPTEN)
4242
kebab_to_camel(${target} targetCamel)
4343
get_property(_link_flags TARGET ${target} PROPERTY LINK_FLAGS)

0 commit comments

Comments
 (0)