Details
Description
Problem
Build fails with cmake 3.20.0:
`CMake Error at /Users/patrick/Code/Dev/analytics/copy_jre.cmake:31 (endif):
|
Flow control statements are not properly nested.
|
CMake Error: Error processing file: /Users/patrick/Code/Dev/analytics/copy_jre.cmake
|
Suggested fix
Looks like copy_jre.cmake is wrong and has a endif () that does not match a if
"${_jre_inst}/lib/jfr.jar"
|
)
|
|
endif ()
|
If the endif () is removed it builds successfully. I assume the newer version of cmake as bit stricter.