Skip to content

Commit 2cb418d

Browse files
committed
WIP: [Do not merge] Change the default char type to unsigned
Just as an experiment!
1 parent cd1fc64 commit 2cb418d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ cmake_minimum_required(
1818
FATAL_ERROR
1919
)
2020

21+
## For experimental purpose only!
22+
message(
23+
WARNING
24+
"Experimental build: Changes the default char type to unsigned!"
25+
)
26+
if(CMAKE_GENERATOR MATCHES "Visual Studio")
27+
add_compile_options(/J)
28+
else()
29+
add_compile_options(-funsigned-char)
30+
endif()
31+
2132
#
2233
# Now enumerate specific policies newer than ITK_NEWEST_VALIDATED_POLICIES_VERSION
2334
# that may need to be individually set to NEW/OLD

0 commit comments

Comments
 (0)