File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ if(NOT WIN32)
22 add_subdirectory (netlib)
33endif ()
44#add_subdirectory(grisu2)
5-
5+ find_library (MATH_LIBRARY m)
66include (FetchContent)
77include (ExternalProject)
88
@@ -79,8 +79,8 @@ FetchContent_MakeAvailable(dragonbox)
7979
8080FetchContent_Declare(
8181 dragon4
82- GIT_REPOSITORY https://github.com/ahaldane /Dragon4.git
83- GIT_TAG 670a3827651c68c9f329d394898b1204cb5ec46f
82+ GIT_REPOSITORY https://github.com/lemire /Dragon4.git
83+ GIT_TAG 0ce72aa
8484 GIT_SHALLOW TRUE
8585)
8686FetchContent_GetProperties(dragon4)
@@ -90,9 +90,13 @@ endif()
9090set (dragon4_SOURCE_DIR ${dragon4_SOURCE_DIR} PARENT_SCOPE)
9191add_library (dragon4_lib STATIC
9292 ${dragon4_SOURCE_DIR} /Dragon4.cpp
93- ${dragon4_SOURCE_DIR} /Math .cpp
93+ ${dragon4_SOURCE_DIR} /DragonMath .cpp
9494 ${dragon4_SOURCE_DIR} /PrintFloat.cpp
9595)
96+ if (MATH_LIBRARY)
97+ target_link_libraries (dragon4_lib PUBLIC ${MATH_LIBRARY} )
98+ endif ()
99+
96100target_include_directories (dragon4_lib PUBLIC
97101 ${dragon4_SOURCE_DIR}
98102)
You can’t perform that action at this time.
0 commit comments