Open amosjoshua opened 6 years ago
For reference: CMP0006
Hi, I wonder how did you overcome this problem. Perhaps you can share the cmake line where you define BUNDLE DESTINATION, I've tried to specify explicitly in install
command but it didn't work.
install(
TARGETS ${target}
BUNDLE DESTINATION blabla)
Something like this maybe?
install(TARGETS ${target} RUNTIME DESTINATION . BUNDLE DESTINATION ${CMAKE_SOURCE_DIR})
When building for iOS using polly and the toolchain that comes with xcode 9.1 I see the following error:
This is caused by
INSTALL(TARGETS json_reformat RUNTIME DESTINATION bin)
inreformatter/CMakeLists.txt
, which is relying on CMP0006's OLD behavior to get around the missingBUNDLE DESTINATION bin
.It can be fixed either by modifying the line to read
INSTALL(TARGETS json_reformat RUNTIME DESTINATION bin) BUNDLE DESTINATION bin
or by explicitly settingCMAKE_POLICY(SET CMP0006 OLD)
in yajl/CMakeLists.txt.The most correct solution is probably the former. Verify/CMakeLists.txt suffers from the same problem and must be corrected as well if the first solution is used.