Commit 12ae32f7 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla

COMP: Enable compiler flags to report most warnings

parent 045d054e
......@@ -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