File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ add_executable(${TARGET} main.cpp)
33install (TARGETS ${TARGET} RUNTIME)
44target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} )
55target_compile_features (${TARGET} PRIVATE cxx_std_17)
6+ target_link_options (${TARGET} PUBLIC /PROFILE)
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ include(CheckIncludeFileCXX)
44
55set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
66
7+ set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF /PROFILE" )
8+ set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF /PROFILE" )
9+
710if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE )
811 set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
912 set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo" )
3235 endif ()
3336endif ()
3437
35- # remove the lib prefix on win32 mingw
38+
3639if (WIN32 )
3740 set (CMAKE_STATIC_LIBRARY_PREFIX "" )
3841 set (CMAKE_SHARED_LIBRARY_PREFIX "" )
You can’t perform that action at this time.
0 commit comments