File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ if (MIMALLOC_SHARE_DIR MATCHES "/share/")
44 string (REPLACE "/share/" "/lib/" MIMALLOC_LIBRARY_DIR ${MIMALLOC_SHARE_DIR} )
55 string (REPLACE "/share/" "/include/" MIMALLOC_INCLUDE_DIR ${MIMALLOC_SHARE_DIR} )
66else ()
7- # if MI_INSTALL_TOPLEVEL= =ON
8- set (MIMALLOC_LIBRARY_DIR " ${MIMALLOC_SHARE_DIR} /lib" )
9- set ( MIMALLOC_INCLUDE_DIR "${MIMALLOC_SHARE_DIR} /include " )
7+ # installed with -DMI_INSTALL_TOPLEVEL =ON
8+ string (REPLACE " /lib/cmake" "/lib" MIMALLOC_LIBRARY_DIR " ${MIMALLOC_SHARE_DIR} " )
9+ string (REPLACE "/lib/cmake" "/include" MIMALLOC_INCLUDE_DIR "${MIMALLOC_SHARE_DIR} " )
1010endif ()
1111set (MIMALLOC_TARGET_DIR "${MIMALLOC_LIBRARY_DIR} " ) # legacy
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.0)
22project (mimalloc-test C CXX)
33
4+ set (CMAKE_C_STANDARD 11)
5+ set (CMAKE_CXX_STANDARD 17)
6+
47# Set default build type
58if (NOT CMAKE_BUILD_TYPE )
69 if ("${CMAKE_BINARY_DIR} " MATCHES ".*(D|d)ebug$" )
You can’t perform that action at this time.
0 commit comments