I have a cmake c++ project which consists of several executables and dlls. Because the dlls get injected into another application, they have to be built with config=Release, even when the executables are built with debug info.
Is there any way to force cmake to do that? I tried set(CMAKE_BUILD_TYPE "Release")
right before the call to add_library()
, but that didn't work.
Any help appreciated, thanks.