larsch / cmake-precompiled-header

Visual Studio and GCC precompiled header macro for CMake
160 stars 42 forks source link

Create config files in binary dir instead source dir for MSVC #8

Closed ilqvya closed 7 years ago

larsch commented 7 years ago

I see the problem, but your fix is basically a revert of 843c5cf0. I have instead removed the file(MAKE_DIRECTORY) to prevent creating the empty directories in the source directory. MSVC automatically creates the correct folders in CMAKE_CFG_INTDIR instead.