From 33a0759479665ead74cca0a7fdf44f2795d1bed8 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Sat, 5 Dec 2020 10:37:41 +0100 Subject: [PATCH] Fix cmake config with no opengl and win include dir --- SofaKernel/modules/SofaHelper/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/SofaKernel/modules/SofaHelper/CMakeLists.txt b/SofaKernel/modules/SofaHelper/CMakeLists.txt index 9a9504e0278d..0d0023b3454e 100644 --- a/SofaKernel/modules/SofaHelper/CMakeLists.txt +++ b/SofaKernel/modules/SofaHelper/CMakeLists.txt @@ -332,6 +332,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC "$") target_include_directories(${PROJECT_NAME} PUBLIC "$") if(CMAKE_SYSTEM_NAME STREQUAL Windows) + target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC "$") target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC "$") endif() # The default binary suffix for libraries/plugins is "_d" when using a debug build.