How to prevent Cmake from creating Debug/Release folders under EXECUTABLE_OUTPUT_PATH?

Viewed 3770

I set EXECUTABLE_OUTPUT_PATH as ${CMAKE_BINARY_DIR}/bin but the executable is created in ${CMAKE_BINARY_DIR}/bin/Debug or ${CMAKE_BINARY_DIR}/bin/Release.

How can I make it put all output under ${CMAKE_BINARY_DIR}/bin without Debug/Release folders?

3 Answers

CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE all letter must be capital,i wrote as CMAKE_RUNTIME_OUTPUT_DIRECTORY_Release and it didn't work.so stupid i am

Related