Some of our CMake rules target individual files. We use the GLOB directive to put these files in a variable, and then install them. One example is with the following syntax, which can be seen in our root level CMakelists.txt:
The problem here is that the install directive will not issue an error if libqmacstyle.dylib is not found. This leads broken installer without issuance of an error at build-time.
Untested theory: The TARGETS directive may be the more appropriate tool for this case.
Some of our CMake rules target individual files. We use the GLOB directive to put these files in a variable, and then install them. One example is with the following syntax, which can be seen in our root level CMakelists.txt:
The problem here is that the
install
directive will not issue an error iflibqmacstyle.dylib
is not found. This leads broken installer without issuance of an error at build-time.Untested theory: The TARGETS directive may be the more appropriate tool for this case.