Setting CLion build and binary directory
I'm trying to build libwebsockets inside of my project in CLion. During build libwebsockets creates a header file that is required by other files and puts it in PROJECT_BINARY_DIR. CLion builds everything inside a random build directory it creates for the project and the header file ends up in that directory. I've tried: Setting the websockets_BINARY_DIR variable Setting the CMAKE_RUNTIME_OUTPUT_DIRECTORY variable Setting CMAKE_LIBRARY_OUTPUT_DIRECTORY variable Changing every variable in the CMake cache to point away from CLion's random directory Changing the build output path setting in CLion