Using jit.gl.simple code from github fails
Hi,
i want to use the jit.gl.simple code from github as basis for my next external. I just have renamed the jit.gl.simple to connector.resist.c and max.jit.gl.simple.c to max.connector.resist.c
When i try to build the external i get following error:
Any Ideas?
You need to link to OpenGL. In the the base-sdk max-posttarget.cmake this is handled by using the following logic based on the project name. you'll just have to add the target_link_libraries in your object cmake (only if Apple) if you're not following that naming convention.
if ("${PROJECT_NAME}" MATCHES "jit.gl.*")
target_link_libraries(${PROJECT_NAME} PUBLIC "-framework OpenGL")
endif()