The title says it all. I couldn’t see anything about this in the docs?
I’m using:
target_compile_definitions(${target} PUBLIC JUCE_ASIO=1)
1 Like
Would you mind sharing how you set this up in CMake? I’ve added the target_compile_definitions(${target} PUBLIC JUCE_ASIO=1)
as well as include_directories(${ASIO_SDK_PATH}/common)
but when I build and run, I still don’t get ASIO as an option. Any help would be greatly appreciated. Thanks!
This is exactly how I set it up, with the exception that I use:
target_include_directories(${target} PRIVATE ${sdksDir}/ASIO/common)
To make sure I don’t ‘infect’ other targets with the ASIO include directories.
Maybe obvious, but make sure ${target}
actually resolves to your target?
message(${target})
is a good way to check that.
Also make sure you clear the CMake caches (CMakeCache.txt) in the build folder before regenerating.
1 Like