WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a195a1e

Browse files
committed
cmake: no opengles apps if no opengles
1 parent 63d14f9 commit a195a1e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

build/cmake/apps.cmake

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,18 @@ function(ruis_declare_app name)
5555
ruisapp::ruisapp-opengl
5656
)
5757

58-
myci_declare_application(ruis-${name}-app-opengles
59-
GUI
60-
SOURCES
61-
${srcs}
62-
RESOURCE_DIRECTORY
63-
${resources_dir}
64-
DEPENDENCIES
65-
ruisapp::ruisapp-opengles
66-
)
58+
# not all platforms have OpenGL ES, so check if opengles variant of ruisapp is defined
59+
if(TARGET ruisapp-opengles)
60+
myci_declare_application(ruis-${name}-app-opengles
61+
GUI
62+
SOURCES
63+
${srcs}
64+
RESOURCE_DIRECTORY
65+
${resources_dir}
66+
DEPENDENCIES
67+
ruisapp::ruisapp-opengles
68+
)
69+
endif()
6770
endfunction()
6871

6972
ruis_declare_app(align)

0 commit comments

Comments
 (0)