jrl-umi3218 / jrl-cmakemodules

CMake utility toolbox
https://jrl-cmakemodules.readthedocs.io/en/master/
Other
56 stars 46 forks source link

fix ENV syntax for set_default_cmake_build_type #605

Closed nim65s closed 1 year ago

nim65s commented 1 year ago

ref. https://cmake.org/cmake/help/latest/variable/ENV.html:

To test whether an environment variable is defined, use the signature if(DEFINED ENV{<name>}) of the if() command.