Commit 20af6f5a by Stefan Philips

[FIX] Use system include to suppress warnings (during compilation) caused by the…

[FIX] Use system include to suppress warnings (during compilation) caused by the faulty OpenIGTLink header file
parent 3a7eb55a
Pipeline #849 passed with stages
in 57 minutes 20 seconds
...@@ -38,7 +38,8 @@ Find_Package( OpenIGTLink QUIET ) ...@@ -38,7 +38,8 @@ Find_Package( OpenIGTLink QUIET )
IF( OpenIGTLink_FOUND ) IF( OpenIGTLink_FOUND )
# 2: INCLUDE_DIRECTORIES( ${LIBYOUNEED_INCLUDE_DIR} ) # 2: INCLUDE_DIRECTORIES( ${LIBYOUNEED_INCLUDE_DIR} )
INCLUDE_DIRECTORIES( ${OpenIGTLink_INCLUDE_DIRS} ) # Use system include to suppress warnings (during compilation) caused by the faulty OpenIGTLink header file
INCLUDE_DIRECTORIES( SYSTEM ${OpenIGTLink_INCLUDE_DIRS} )
# 3: LINK_DIRECTORIES( ${LIBYOUNEED_LIBRARY_DIRS} ) # 3: LINK_DIRECTORIES( ${LIBYOUNEED_LIBRARY_DIRS} )
LINK_DIRECTORIES( ${OpenIGTLink_LIBRARY_DIRS} ) LINK_DIRECTORIES( ${OpenIGTLink_LIBRARY_DIRS} )
......
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