Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Get ready for more versions of ns3"
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 23 Feb 2023 21:36:16 +0000 (22:36 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 23 Feb 2023 21:37:44 +0000 (22:37 +0100)
This reverts commit 1b8e178fc3f8b3339d25692dfb552f79d349f671.

Also, adds a small comment to avoid this trap in the future.

tools/cmake/Modules/FindNS3.cmake

index 0a807b8..7154c2b 100644 (file)
@@ -42,7 +42,7 @@ if(NS3_FOUND) # Starting from 3.36, ns3 provides a working pkg-config file, maki
 else()
   set(NS3_HINT ${ns3_path} CACHE PATH "Path to search for NS3 lib and include")
 
-  set(NS3_KNOWN_VERSIONS "3-dev" "3.28" "3.29" "3.30" "3.31" "3.32" "3.33" "3.34" "3.35" "3.36" "3.37" "3.38" "3.39")
+  set(NS3_KNOWN_VERSIONS "3-dev" "3.28" "3.29" "3.30" "3.31" "3.32" "3.33" "3.34" "3.35") # subsequent versions use pkg-config
 
   foreach (_ns3_ver ${NS3_KNOWN_VERSIONS})
     list(APPEND _ns3_LIB_SEARCH_DIRS "ns${_ns3_ver}-core" "ns${_ns3_ver}-core-optimized" "ns${_ns3_ver}-core-debug" "ns${_ns3_ver}-core-default")