-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR to fix build erro…
…rs when used as submodule. (#54)
- Loading branch information
1 parent
1b6bef5
commit 8f4b90e
Showing
1 changed file
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,8 +255,8 @@ if(NOT DEFINED CPACK_PACKAGE_NAME) | |
|
||
SET(CPACK_PACKAGE_NAME ${PROJECT_NAME}) | ||
SET(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/siemens/gencmpclient") | ||
SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") | ||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt") | ||
SET(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") | ||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt") | ||
SET(CPACK_PACKAGE_VENDOR "Siemens") | ||
set(CPACK_PACKAGE_CONTACT "David von Oheimb <[email protected]>") | ||
set(CPACK_PACKAGE_VERSION ${GENCMPCLIENT_VERSION}) | ||
|
@@ -435,7 +435,7 @@ if(NOT YOCTO_BUILD) | |
message(STATUS "fetching git submodule libsecutils") | ||
execute_process(COMMAND | ||
git submodule update ${GIT_PROGRESS} --init ${GIT_DEPTH} libsecutils | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
RESULT_VARIABLE GIT_SUBMODULE_RESULT | ||
) | ||
if(NOT GIT_SUBMODULE_RESULT EQUAL "0") | ||
|
@@ -456,7 +456,7 @@ if(NOT YOCTO_BUILD) | |
message(STATUS "fetching git submodule cmpossl") | ||
execute_process(COMMAND | ||
git submodule update ${GIT_PROGRESS} --init ${GIT_DEPTH} cmpossl | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
RESULT_VARIABLE GIT_SUBMODULE_RESULT | ||
) | ||
if(NOT GIT_SUBMODULE_RESULT EQUAL "0") | ||
|