Skip to content

Commit ae37d47

Browse files
committed
use unicode
1 parent 659742a commit ae37d47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ set(LIBGLTF_PLATFORM_LINUX FALSE)
1414
set(LIBGLTF_PLATFORM_MACOS FALSE)
1515

1616
option(LIBGLTF_COVERAGE_GCOV "Coverage gcov (debug, Linux builds only)" OFF)
17+
option(LIBGLTF_WITH_UNICODE "Build with UNICODE" OFF)
1718

1819
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
1920
set(LIBGLTF_PLATFORM_WINDOWS TRUE)
@@ -78,7 +79,7 @@ if((CMAKE_COMPILER_IS_GNUCC STREQUAL "1") OR (CMAKE_COMPILER_IS_GNUCXX STREQUAL
7879
add_definitions(-DCOMPILER_IS_GCC)
7980
endif()
8081

81-
if(${LIBGLTF_PLATFORM_WINDOWS})
82+
if(${LIBGLTF_WITH_UNICODE} OR ${LIBGLTF_PLATFORM_WINDOWS})
8283
add_definitions(-DUNICODE -D_UNICODE)
8384
endif()
8485

0 commit comments

Comments
 (0)