Skip to content

Commit 777e6d4

Browse files
committed
cmake: fix install include directory
1 parent aa1bf6a commit 777e6d4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

build/cmake/CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,24 @@ if(IOS)
2020

2121
set(ruisapp_build_opengl_variant False)
2222
set(ruisapp_build_opengles_variant True)
23+
24+
set(ruisapp_opengl_install_include_directory)
25+
set(ruisapp_opengles_install_include_directory ../../src/${name})
2326
elseif(APPLE)
2427
enable_language(OBJCXX)
2528
list(APPEND srcs ../../src/${name}/glue/macos/glue.mm)
2629

2730
set(ruisapp_build_opengl_variant True)
2831
set(ruisapp_build_opengles_variant False)
32+
33+
set(ruisapp_opengl_install_include_directory ../../src/${name})
34+
set(ruisapp_opengles_install_include_directory)
2935
else()
3036
set(ruisapp_build_opengl_variant True)
3137
set(ruisapp_build_opengles_variant True)
38+
39+
set(ruisapp_opengl_install_include_directory ../../src/${name})
40+
set(ruisapp_opengles_install_include_directory)
3241
endif()
3342

3443
if(ruisapp_build_opengl_variant)
@@ -38,7 +47,7 @@ if(ruisapp_build_opengl_variant)
3847
PUBLIC_INCLUDE_DIRECTORIES
3948
../../src
4049
INSTALL_INCLUDE_DIRECTORIES
41-
../../src/${name}
50+
${ruisapp_opengl_install_include_directory}
4251
PREPROCESSOR_DEFINITIONS
4352
"RUISAPP_RENDER_OPENGL"
4453
DEPENDENCIES
@@ -59,9 +68,8 @@ if(ruisapp_build_opengles_variant)
5968
${srcs}
6069
PUBLIC_INCLUDE_DIRECTORIES
6170
../../src
62-
# header files are installed by ${name}-opengl target
63-
# INSTALL_INCLUDE_DIRECTORIES
64-
# ../../src/${name}
71+
INSTALL_INCLUDE_DIRECTORIES
72+
${ruisapp_opengles_install_include_directory}
6573
PREPROCESSOR_DEFINITIONS
6674
"RUISAPP_RENDER_OPENGLES"
6775
DEPENDENCIES

0 commit comments

Comments
 (0)