@@ -95,7 +95,7 @@ else ()
95
95
endif ()
96
96
set (OSL_LIBNAME_SUFFIX "" CACHE STRING
97
97
"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 )
99
99
if (WIN32 )
100
100
option (USE_LLVM_BITCODE "Generate embedded LLVM bitcode" OFF )
101
101
else ()
@@ -113,10 +113,14 @@ set (OSL_SHADER_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/shade
113
113
set (OSL_PTX_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR} /${PROJECT_NAME} /ptx"
114
114
CACHE STRING "Directory where OptiX PTX files will be installed" )
115
115
set (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 )
117
117
118
118
119
119
set (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 ()
120
124
if (OSL_NO_DEFAULT_TEXTURESYSTEM)
121
125
add_definitions ("-DOSL_NO_DEFAULT_TEXTURESYSTEM=1" )
122
126
endif ()
@@ -220,6 +224,7 @@ add_subdirectory (src/oslc)
220
224
add_subdirectory (src/oslinfo)
221
225
222
226
if (OSL_BUILD_TESTS AND BUILD_TESTING)
227
+ add_subdirectory (src/testminimal)
223
228
add_subdirectory (src/testshade)
224
229
add_subdirectory (src/testrender)
225
230
endif ()
0 commit comments