mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-26 07:31:05 +00:00
18 lines
448 B
CMake
18 lines
448 B
CMake
# Set the default compile features and properties for a target.
|
|
|
|
if (NOT TARGET)
|
|
message(FATAL_ERROR "TARGET not set before including DefaultTargetOptions")
|
|
endif()
|
|
|
|
target_compile_features(${TARGET}
|
|
PRIVATE
|
|
cxx_std_11
|
|
)
|
|
|
|
set_target_properties(${TARGET}
|
|
PROPERTIES
|
|
EXPORT_COMPILE_COMMANDS ON
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
|
|
INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib"
|
|
)
|