-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes CMakeLists.txt use `BUILD_TESTING` as well as `CMAKE_CROSSCOMPILING`. Signed-off-by: Reuben Cartwright <[email protected]>
- Loading branch information
1 parent
1679f0c
commit 78c58e1
Showing
4 changed files
with
68 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,9 @@ | |
# <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
if(CMAKE_CROSSCOMPILING) | ||
if(BUILD_TESTING AND NOT CMAKE_CROSSCOMPILING) | ||
# left empty for future mocks. | ||
else () | ||
set(iot_socket_SOURCE_DIR | ||
${CMAKE_CURRENT_LIST_DIR}/library | ||
CACHE INTERNAL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,13 @@ | |
# <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
if(CMAKE_CROSSCOMPILING) | ||
if(BUILD_TESTING AND NOT CMAKE_CROSSCOMPILING) | ||
# left empty for future mocks. | ||
else () | ||
set(freertos_pkcs11_psa_SOURCE_DIR | ||
${CMAKE_CURRENT_LIST_DIR}/library | ||
CACHE INTERNAL | ||
"Path to FreeRTOS PKCS#11 to PSA shim layer source code" | ||
${CMAKE_CURRENT_LIST_DIR}/library | ||
CACHE INTERNAL | ||
"Path to FreeRTOS PKCS#11 to PSA shim layer source code" | ||
) | ||
|
||
add_subdirectory(integration) | ||
|