Re: [CMake] $ is not empty even if configuration has no PDB

2018-08-03 Thread Nils Gladitz
On Fri, Aug 3, 2018 at 11:31 AM Louis-Paul CORDIER wrote: > How can I detect using generator expression if a file exists? > Since there is no first class CMake feature controlling if PDB files are generated and since CMake does not try to interpret custom compiler flags projects or users might b

[CMake] $ is not empty even if configuration has no PDB

2018-08-03 Thread Louis-Paul CORDIER
Hi everybody, I am currently trying to add reproducible MSVC build to my project using ducible tool. ducible can take in optional parameter, a pdb file. I am using the following command:   set(DUCIBLE_BINARY "${CMAKE_CURRENT_LIST_DIR}/bin/ducible.exe")   add_custom_command(TARGET ${MYTARGET}