Commit fb2a5ac3 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

Merge branch 'enableAllWarnings' into 'master'

COMP: Enable compiler flags to report most warnings

See merge request !313
parents 0d78faa2 12ae32f7
Pipeline #139199 running with stage
......@@ -75,6 +75,15 @@ function(imstk_add_library target)
${target_BUILD_INTERFACE_LIST}
$<INSTALL_INTERFACE:${iMSTK_INSTALL_INCLUDE_DIR}>
)
#-----------------------------------------------------------------------------
# Set compile flags for the target
#-----------------------------------------------------------------------------
target_compile_options(${target} PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
-Wall>
$<$<CXX_COMPILER_ID:MSVC>:
-W4>)
#-----------------------------------------------------------------------------
# Install headers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment