mirror of https://github.com/AlexeyAB/darknet.git
Set option ENABLE_SSE_AND_AVX_FLAGS after all dependent variables have been defined. (#8597)
This commit is contained in:
parent
2fa6307b17
commit
eb313288a5
|
@ -74,8 +74,6 @@ else()
|
|||
set(IS_X86 FALSE)
|
||||
endif()
|
||||
|
||||
cmake_dependent_option(ENABLE_SSE_AND_AVX_FLAGS "Enable AVX and SSE optimizations (x86-only)" ON "CMAKE_COMPILER_IS_GNUCC_OR_CLANG;IS_X86" OFF)
|
||||
|
||||
if(ENABLE_VCPKG_INTEGRATION AND DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
||||
set(X_VCPKG_APPLOCAL_DEPS_INSTALL ON)
|
||||
|
@ -150,6 +148,8 @@ else()
|
|||
set(CMAKE_COMPILER_IS_CLANG FALSE)
|
||||
endif()
|
||||
|
||||
cmake_dependent_option(ENABLE_SSE_AND_AVX_FLAGS "Enable AVX and SSE optimizations (x86-only)" ON "CMAKE_COMPILER_IS_GNUCC_OR_CLANG;IS_X86" OFF)
|
||||
|
||||
set(default_build_type "Release")
|
||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
|
||||
|
|
Loading…
Reference in New Issue