From b328f9f87a905fc8be96fabc1b7415a1c00267c3 Mon Sep 17 00:00:00 2001 From: Sylvain Lefebvre Date: Sun, 10 Dec 2023 21:59:41 +0100 Subject: [PATCH] compiling qrepack statically --- demos/q5k/qrepack/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/demos/q5k/qrepack/CMakeLists.txt b/demos/q5k/qrepack/CMakeLists.txt index 8f0ce56..c4c8585 100644 --- a/demos/q5k/qrepack/CMakeLists.txt +++ b/demos/q5k/qrepack/CMakeLists.txt @@ -9,6 +9,12 @@ include_directories( link_directories( ) +if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") + +else() +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --static") +endif() + add_definitions(-DSRC_PATH=\"${CMAKE_CURRENT_SOURCE_DIR}/\") SET(SOURCES