@@ -95,7 +95,7 @@ else ()
9595endif ()
9696set (OSL_LIBNAME_SUFFIX "" CACHE STRING
9797 "Optional name appended to ${PROJECT_NAME} libraries that are built" )
98- option (OSL_BUILD_TESTS "Build the unit tests, testshade, testrender" ON )
98+ option (OSL_BUILD_TESTS "Build the unit tests, testminimal, testshade, testrender" ON )
9999if (WIN32 )
100100 option (USE_LLVM_BITCODE "Generate embedded LLVM bitcode" OFF )
101101else ()
@@ -113,10 +113,14 @@ set (OSL_SHADER_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/shade
113113set (OSL_PTX_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR} /${PROJECT_NAME} /ptx"
114114 CACHE STRING "Directory where OptiX PTX files will be installed" )
115115set (CMAKE_DEBUG_POSTFIX "" CACHE STRING "Library naming postfix for Debug builds (e.g., '_debug')" )
116- option (OSL_USTRINGREP_IS_HASH "Always use ustringhash for strings" OFF )
116+ option (OSL_USTRINGREP_IS_HASH "Always use ustringhash for strings" ON )
117117
118118
119119set (OSL_NO_DEFAULT_TEXTURESYSTEM OFF CACHE BOOL "Do not use create a raw OIIO::TextureSystem" )
120+
121+ if (OSL_USTRINGREP_IS_HASH)
122+ add_definitions ("-DOSL_USTRINGREP_IS_HASH=1" )
123+ endif ()
120124if (OSL_NO_DEFAULT_TEXTURESYSTEM)
121125 add_definitions ("-DOSL_NO_DEFAULT_TEXTURESYSTEM=1" )
122126endif ()
@@ -220,6 +224,7 @@ add_subdirectory (src/oslc)
220224add_subdirectory (src/oslinfo)
221225
222226if (OSL_BUILD_TESTS AND BUILD_TESTING)
227+ add_subdirectory (src/testminimal)
223228 add_subdirectory (src/testshade)
224229 add_subdirectory (src/testrender)
225230endif ()
0 commit comments