fix: corrected to compile definitions instead of options

This commit is contained in:
Krishna Vedala
2020-07-07 09:56:49 -04:00
parent 7735b89891
commit ffba9bca91

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} PRIVATE NO_OPENGL)
target_compile_definitions(${testname} PRIVATE NO_OPENGL)
endif(OpenGL_FOUND)
if(APPLE)