Issue
I'm trying to reuse the CMakeLists.txt
of a third-party project whose source I don't want to change (href="https://github.com/alamaison/winsparkle/blob/master/3rdparty/expat/CMakeLists.txt" rel="noreferrer">expat, to be exact). I've added the project as a subproject of the top level using add_subdirectory
.
This works but now I would like to set the value of some of the subproject's option
s in the top level CMakeLists.txt
. How do I do this?
Solution
See the similar question with a good answer.
Answer in short:
SET(SOME_EXPAT_OPTION OFF CACHE BOOL "Use some expat option")
Answered By - ronkot Answer Checked By - Mildred Charles (WPSolving Admin)