From ffba9bca91bf1656656d9eaa7b3c3aa565bf32ac Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Tue, 7 Jul 2020 09:56:49 -0400 Subject: [PATCH] fix: corrected to compile definitions instead of options --- graphics/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/CMakeLists.txt b/graphics/CMakeLists.txt index de2c3d546..f07dfc52a 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} PRIVATE NO_OPENGL) + target_compile_definitions(${testname} PRIVATE NO_OPENGL) endif(OpenGL_FOUND) if(APPLE)