add private option to compile definition

This commit is contained in:
Krishna Vedala
2020-07-07 09:53:01 -04:00
parent e56539ea73
commit 7735b89891

View File

@@ -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)