[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix typo in FP16_TARGET_ENABLE_CXX11
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat Dukhan committed Feb 24, 2018
1 parent fb64e16 commit 43d6d17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ IF(FP16_BUILD_TESTS)
ENABLE_TESTING()
ENDIF()

MACRO(FP16_TARGET_ENABLE_CXX99 target)
MACRO(FP16_TARGET_ENABLE_CXX11 target)
IF(${CMAKE_VERSION} VERSION_LESS "3.1")
IF(NOT MSVC)
TARGET_COMPILE_OPTIONS(${target} PRIVATE -std=c++11)
Expand Down Expand Up @@ -156,22 +156,22 @@ IF(FP16_BUILD_BENCHMARKS)
TARGET_LINK_LIBRARIES(alt-element-bench fp16 psimd benchmark)

ADD_EXECUTABLE(from-ieee-array-bench bench/from-ieee-array.cc)
FP16_TARGET_ENABLE_CXX99(from-ieee-array-bench)
FP16_TARGET_ENABLE_CXX11(from-ieee-array-bench)
TARGET_COMPILE_DEFINITIONS(from-ieee-array-bench PRIVATE FP16_COMPARATIVE_BENCHMARKS=1)
TARGET_INCLUDE_DIRECTORIES(from-ieee-array-bench PRIVATE ${PROJECT_SOURCE_DIR})
TARGET_LINK_LIBRARIES(from-ieee-array-bench fp16 psimd benchmark)

ADD_EXECUTABLE(from-alt-array-bench bench/from-alt-array.cc)
FP16_TARGET_ENABLE_CXX99(from-alt-array-bench)
FP16_TARGET_ENABLE_CXX11(from-alt-array-bench)
TARGET_LINK_LIBRARIES(from-alt-array-bench fp16 psimd benchmark)

ADD_EXECUTABLE(to-ieee-array-bench bench/to-ieee-array.cc)
FP16_TARGET_ENABLE_CXX99(to-ieee-array-bench)
FP16_TARGET_ENABLE_CXX11(to-ieee-array-bench)
TARGET_COMPILE_DEFINITIONS(to-ieee-array-bench PRIVATE FP16_COMPARATIVE_BENCHMARKS=1)
TARGET_INCLUDE_DIRECTORIES(to-ieee-array-bench PRIVATE ${PROJECT_SOURCE_DIR})
TARGET_LINK_LIBRARIES(to-ieee-array-bench fp16 psimd benchmark)

ADD_EXECUTABLE(to-alt-array-bench bench/to-alt-array.cc)
FP16_TARGET_ENABLE_CXX99(to-alt-array-bench)
FP16_TARGET_ENABLE_CXX11(to-alt-array-bench)
TARGET_LINK_LIBRARIES(to-alt-array-bench fp16 psimd benchmark)
ENDIF()

0 comments on commit 43d6d17

Please sign in to comment.