Skip to content

Commit 9dc722c

Browse files
committed
cmake: fix misspellings, patch deps resolution
1 parent 6f2c7a0 commit 9dc722c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

CMakeLists.txt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
1717
##################
1818

1919
# These are essential componets that are better to be turned on.
20-
option(WITH_INET "Build Artery with Inet framework integration" ON)
20+
option(WITH_INET "Build Artery with INET framework integration" ON)
2121
option(WITH_VEINS "Build Artery with Veins framework integration" ON)
2222

2323
# Various extensions, adjust them as needed.
@@ -37,20 +37,20 @@ option(VSCODE_LAUNCH_INTEGRATION "Generate VS Code configuration for debugging A
3737
#################################
3838

3939
if(NOT WITH_INET)
40-
# SimuLTE extends Inet network (see src/artery/lte/World.ned)
40+
# SimuLTE extends INET network (see src/artery/lte/World.ned)
4141
if(WITH_SIMULTE)
42-
message(ERROR "SimuLTE requires Inet framework integration (WITH_INET must be set to ON)")
42+
message(ERROR "SimuLTE requires INET framework integration (WITH_INET must be set to ON)")
4343
endif()
4444

45-
# Components below use Inet classes
45+
# Components below use INET classes
4646
if(WITH_OTS)
47-
message(ERROR "OpenTrafficSim requires Inet framework integration (WITH_INET must be set to ON)")
47+
message(ERROR "OpenTrafficSim requires INET framework integration (WITH_INET must be set to ON)")
4848
endif()
4949
if(WITH_TESTBED)
50-
message(ERROR "Testbed requires Inet framework integration (WITH_INET must be set to ON)")
50+
message(ERROR "Testbed requires INET framework integration (WITH_INET must be set to ON)")
5151
endif()
5252
if(WITH_ENVMOD)
53-
message(ERROR "Environment model requires Inet framework integration (WITH_INET must be set to ON)")
53+
message(ERROR "Environment model requires INET framework integration (WITH_INET must be set to ON)")
5454
endif()
5555
endif()
5656

@@ -71,12 +71,15 @@ include(GNUInstallDirs)
7171
if(WITH_TRANSFUSION OR WITH_OTS)
7272
find_package(Protobuf REQUIRED)
7373
endif()
74+
75+
if(WITH_OTS)
76+
find_package(PkgConfig MODULE REQUIRED)
77+
pkg_check_modules(ZEROMQ REQUIRED libzmq)
78+
endif()
7479

7580
if(WITH_TESTBED)
7681
find_package(SEA_V2X CONFIG)
7782
mark_as_advanced(SEA_V2X_DIR)
78-
find_package(PkgConfig MODULE REQUIRED)
79-
pkg_check_modules(ZEROMQ REQUIRED libzmq)
8083
endif()
8184

8285
add_subdirectory(extern)

0 commit comments

Comments
 (0)