Skip to content

Commit

Permalink
cherry-pick master changes (#1529)
Browse files Browse the repository at this point in the history
* cmake: add OPAE_LEGACY_TAG

Specifies which branch in opae-legacy to load when refreshing the
external repository.

* cmake: add OPAE_LEGACY_TAG

Specifies which branch in opae-legacy to load when refreshing the
external repository.

* Merge commit '58e7e81ab124a779bd547852f58e845c7ac1895c' into tswhison/legacy_tag

* Merge pull request #1527 from OPAE/tswhison/legacy_tag

Tswhison/legacy tag

Co-authored-by: Tim Whisonant <tim.whisonant@intel.com>
  • Loading branch information
anandaravuri and tswhison committed Apr 15, 2020
1 parent a38a5f8 commit 415f4eb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ include(OPAE)
option(OPAE_BUILD_LEGACY "Enable building of OPAE legacy tools" OFF)
mark_as_advanced(OPAE_BUILD_LEGACY)

if(OPAE_BUILD_LEGACY)
option(OPAE_LEGACY_TAG "Desired branch for opae-legacy" master)
mark_as_advanced(OPAE_LEGACY_TAG)
endif(OPAE_BUILD_LEGACY)

############################################################################
## Other setup and dependencies ############################################
############################################################################
Expand Down
5 changes: 4 additions & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ cmake_minimum_required(VERSION 2.8.12)

if(OPAE_BUILD_LEGACY)
opae_external_project_add(PROJECT_NAME opae-legacy
GIT_URL https://github.com/OPAE/opae-legacy.git)
GIT_URL https://github.com/OPAE/opae-legacy.git
GIT_TAG ${OPAE_LEGACY_TAG}
PRESERVE_REPOS ${OPAE_PRESERVE_REPOS})

endif(OPAE_BUILD_LEGACY)
10 changes: 10 additions & 0 deletions opae-libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ mark_as_advanced(OPAE_BUILD_SIM)
option(OPAE_PRESERVE_REPOS "Disable refresh of external repos" OFF)
mark_as_advanced(OPAE_PRESERVE_REPOS)

if(OPAE_BUILD_TESTS)
option(OPAE_TEST_TAG "Desired branch for opae-test" master)
mark_as_advanced(OPAE_TEST_TAG)
endif(OPAE_BUILD_TESTS)

if(OPAE_BUILD_SIM)
option(OPAE_SIM_TAG "Desired branch for opae-sim" master)
mark_as_advanced(OPAE_SIM_TAG)
endif(OPAE_BUILD_SIM)

############################################################################
## Add Subdirectories ######################################################
############################################################################
Expand Down
2 changes: 2 additions & 0 deletions opae-libs/external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ cmake_minimum_required(VERSION 2.8.12)
if(OPAE_BUILD_TESTS)
opae_external_project_add(PROJECT_NAME opae-test
GIT_URL https://github.com/OPAE/opae-test.git
GIT_TAG ${OPAE_TEST_TAG}
PRESERVE_REPOS ${OPAE_PRESERVE_REPOS})
endif(OPAE_BUILD_TESTS)

if(OPAE_BUILD_SIM)
opae_external_project_add(PROJECT_NAME opae-sim
GIT_URL https://github.com/OPAE/opae-sim.git
GIT_TAG ${OPAE_SIM_TAG}
PRESERVE_REPOS ${OPAE_PRESERVE_REPOS})
endif(OPAE_BUILD_SIM)

0 comments on commit 415f4eb

Please sign in to comment.