cmake: fix reset to ROOT_PATH back in

This commit is contained in:
Dirk Olbrich
2023-08-31 11:25:59 +02:00
committed by Thomas Krijnen
parent a3ecde3ad9
commit e6d48cd37f
+5
View File
@@ -617,6 +617,11 @@ if(NOT MINIMAL_BUILD AND HDF5_SUPPORT)
set(SWIG_DEFINES ${SWIG_DEFINES} -DWITH_HDF5)
endif()
if(WASM_BUILD)
# reset to use sysroot
set(CMAKE_FIND_ROOT_PATH "${CMAKE_FIND_ROOT_PATH_BACKUP}")
endif()
if(ENABLE_BUILD_OPTIMIZATIONS)
if(MSVC)
# NOTE: RelWithDebInfo and Release use O2 (= /Ox /Gl /Gy/ = Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy) by default,