From 7735b898910cec001f229455398b34ed2542df1a Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Tue, 7 Jul 2020 09:53:01 -0400 Subject: [PATCH] add private option to compile definition --- graphics/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/CMakeLists.txt b/graphics/CMakeLists.txt index c3d05adda..de2c3d546 100644 --- a/graphics/CMakeLists.txt +++ b/graphics/CMakeLists.txt @@ -51,7 +51,7 @@ foreach( testsourcefile ${APP_SOURCES} ) target_link_libraries(${testname} PRIVATE OpenGL::GL ${GLUT_LIBRARIES}) endif() else(OpenGL_FOUND) - target_compile_options(${testname} NO_OPENGL) + target_compile_options(${testname} PRIVATE NO_OPENGL) endif(OpenGL_FOUND) if(APPLE)