From 1516e047aecbf38dca9f8c7271a2a6f6041fd988 Mon Sep 17 00:00:00 2001 From: maidis Date: Sat, 9 Mar 2019 19:18:39 +0300 Subject: [PATCH] fix cmake error on linux With these changes a static library can be produced on Linux. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16c37aa..849df36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.12) + project(DataStructure) set(CMAKE_CXX_STANDARD 20) -add_library(DataStructure CounterHashMap.h Cache/CacheNode.h Cache/CacheLinkedList.h Cache/LRUCache.h Graph/Node.h Graph/Edge.h Graph/Graph.h Graph/SingleSourceShortestPath.h Graph/AllPairsShortestPath.h) \ No newline at end of file +add_library(DataStructure CounterHashMap.h Cache/CacheNode.h Cache/CacheLinkedList.h Cache/LRUCache.h Graph/Node.h Graph/Edge.h Graph/Graph.h Graph/SingleSourceShortestPath.h Graph/AllPairsShortestPath.h) + +set_target_properties(DataStructure PROPERTIES LINKER_LANGUAGE CXX)