Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ detect_package_backend()
find_package(ROCmCMakeBuildTools REQUIRED)
find_package(Threads REQUIRED)

include(CMakeDependentOption)

cmake_dependent_option(MIGRAPHX_MSVC_STATIC_RUNTIME "Link MSVC runtime library statically instead of dynamically" OFF "WIN32" OFF)

if(NOT MIGRAPHX_MSVC_STATIC_RUNTIME)
set(MIGRAPHX_MSVC_RUNTIME_SUFFIX "DLL")
endif()

if(NOT CMAKE_MSVC_RUNTIME_LIBRARY)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>${MIGRAPHX_MSVC_RUNTIME_SUFFIX}")
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
option(MIGRAPHX_USE_BINSKIM_COMPLIANT_COMPILE_FLAGS "Prepare MIGraphX for BinSkim Binary Analyzer" OFF)
option(MIGRAPHX_USE_SPECTRE_MITIGATED_LIBRARIES "Use Spectre-mitigated libraries" OFF)
Expand All @@ -97,6 +85,13 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
message(WARNING "Spectre-mitigated libraries are not yet available for Clang in this project.")
endif()
endif()
option(MIGRAPHX_USE_MSVC_STATIC_RUNTIME "Link MSVC runtime library statically instead of dynamically" OFF)
if(NOT MIGRAPHX_USE_MSVC_STATIC_RUNTIME)
set(MIGRAPHX_MSVC_RUNTIME_SUFFIX "DLL")
endif()
if(NOT CMAKE_MSVC_RUNTIME_LIBRARY)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>${MIGRAPHX_MSVC_RUNTIME_SUFFIX}")
endif()
endif()

option(MIGRAPHX_USE_ROCBLAS "Enable MIGraphX to use rocBLAS" ON)
Expand Down
Loading