Skip to content

Commit

Permalink
Merge pull request #1693 from OPAE/amarroqu/update-external-target
Browse files Browse the repository at this point in the history
Use `set` for defining legacy branch target
  • Loading branch information
asgardkm committed Sep 18, 2020
2 parents b31201e + 2ac94b0 commit 776b2b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -40,7 +40,7 @@ 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)
set(OPAE_LEGACY_TAG "release/2.0.0" CACHE STRING "Desired branch for opae-legacy")
mark_as_advanced(OPAE_LEGACY_TAG)
endif(OPAE_BUILD_LEGACY)

Expand Down
4 changes: 2 additions & 2 deletions opae-libs/CMakeLists.txt
Expand Up @@ -102,12 +102,12 @@ 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" release/2.0.0)
set(OPAE_TEST_TAG "release/2.0.0" CACHE STRING "Desired branch for opae-test")
mark_as_advanced(OPAE_TEST_TAG)
endif(OPAE_BUILD_TESTS)

if(OPAE_BUILD_SIM)
option(OPAE_SIM_TAG "Desired branch for opae-sim" release/2.0.0)
set(OPAE_SIM_TAG "release/2.0.0" CACHE STRING "Desired branch for opae-sim")
mark_as_advanced(OPAE_SIM_TAG)
endif(OPAE_BUILD_SIM)

Expand Down
4 changes: 2 additions & 2 deletions opae-libs/include/opae/cxx/core/pvalue.h
Expand Up @@ -164,7 +164,7 @@ struct pvalue {
typedef typename std::conditional<std::is_same<T, char *>::value,
typename std::string, T>::type copy_t;

pvalue() : props_(0), is_set_(false), get_(nullptr), set_(nullptr), copy_() {}
pvalue() : props_(0), is_set_(false), get_(nullptr), set_(nullptr) {}

/**
* @brief pvalue contructor that takes in a reference to fpga_properties
Expand All @@ -175,7 +175,7 @@ struct pvalue {
* @param s The setter function
*/
pvalue(fpga_properties *p, getter_t g, setter_t s)
: props_(p), is_set_(false), get_(g), set_(s), copy_() {}
: props_(p), is_set_(false), get_(g), set_(s) {}

/**
* @brief Overload of `=` operator that calls the wrapped setter
Expand Down

0 comments on commit 776b2b2

Please sign in to comment.