Closed dschwoerer closed 2 months ago
Oddly the default option value is not being used, and instead the default default (?) 'OFF' is used
CMake Error at CMakeLists.txt:47 (add_subdirectory):
add_subdirectory given source "OFF" which is not an existing directory.
Is it a particularly old version of cmake?
My bad, I should have tested more thoroughly.
option
is ignored if the value is set, thus I have not noticed.
option
is only for bool, thus the string is converted to a boolean, and apparently that folder is false.
It can be convinient if you want your own version of BOUT++, but want to compile both BOUT++ and hermes for different architectures / os or with different flags. This allows to have only one source for BOUT++ and on for hermes-3. You only need to invoke cmake and make/ninja just once per build and get always updates from BOUT++ and hermes-3 code changes.
An example cmake invocation can now look like this:
or for a build with debugging:
This ensures that BOUT++ and hermes-3 also use the same flags for compilation, which makes it easier to check the impact of such changes.