Skip to content

Commit

Permalink
OIIO/OSL : Specify C++ version
Browse files Browse the repository at this point in the history
CMake's convention is to omit the "c++" prefix and just use the number, so we also need to adjust the format of our variable.
  • Loading branch information
johnhaddon committed Feb 15, 2021
1 parent a08d386 commit 9474f57
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Boost/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"commands" : [

"./bootstrap.sh --prefix={buildDir} --with-python={buildDir}/bin/python --with-python-root={buildDir} --without-libraries=log --without-icu",
"./bjam -d+2 -j {jobs} --disable-icu cxxflags='-std={c++Standard}' variant=release link=shared threading=multi install",
"./bjam -d+2 -j {jobs} --disable-icu cxxflags='-std=c++{c++Standard}' variant=release link=shared threading=multi install",

],

Expand Down
2 changes: 1 addition & 1 deletion Cortex/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"scons install installDoc"
" -j {jobs}"
" CXX=`which g++`"
" CXXSTD={c++Standard}"
" CXXSTD=c++{c++Standard}"
" INSTALL_PREFIX={buildDir}"
" INSTALL_DOC_DIR={buildDir}/doc/cortex"
" INSTALL_RMANPROCEDURAL_NAME={buildDir}/renderMan/procedurals/iePython"
Expand Down
1 change: 1 addition & 0 deletions OpenImageIO/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"mkdir gafferBuild",
"cd gafferBuild &&"
" cmake"
" -D CMAKE_CXX_STANDARD={c++Standard}"
" -D CMAKE_INSTALL_PREFIX={buildDir}"
" -D CMAKE_INSTALL_LIBDIR={buildDir}/lib"
" -D CMAKE_PREFIX_PATH={buildDir}"
Expand Down
1 change: 1 addition & 0 deletions OpenShadingLanguage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"mkdir gafferBuild",
"cd gafferBuild &&"
" cmake"
" -D CMAKE_CXX_STANDARD={c++Standard}"
" -D CMAKE_INSTALL_PREFIX={buildDir}"
" -D CMAKE_INSTALL_LIBDIR={buildDir}/lib"
" -D CMAKE_PREFIX_PATH={buildDir}"
Expand Down
2 changes: 1 addition & 1 deletion TBB/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

"commands" : [

"make -j {jobs} stdver={c++Standard}",
"make -j {jobs} stdver=c++{c++Standard}",
"cp -r include/tbb {buildDir}/include",
"{installLibsCommand}",

Expand Down
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def walk( project, configs, buildDir ) :
"version" : __version,
"platform" : "osx" if sys.platform == "darwin" else "linux",
"sharedLibraryExtension" : ".dylib" if sys.platform == "darwin" else ".so",
"c++Standard" : "c++14",
"c++Standard" : "14",
"variants" : "".join( "-{}{}".format( key, variants[key] ) for key in sorted( variants.keys() ) ),
}

Expand Down

0 comments on commit 9474f57

Please sign in to comment.