Skip to content

Commit

Permalink
try to fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Montura committed Jan 30, 2024
1 parent a8bc62d commit 27df5e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/c/jni-lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ endif ()

if (WIN32)
# Set the DLLEXPORT variable to export symbols
# set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
# if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
# endif()
set(CRITICAL_SECTION_IMPL src/utils/vm/CriticalSectionWindows.cpp)
else ()
set(CRITICAL_SECTION_IMPL src/utils/vm/CriticalSectionMacOS.cpp)
Expand Down Expand Up @@ -106,7 +108,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
/W3
/bigobj
/EHsc
"$<$<CONFIG:Release>:/GL>"
# "$<$<CONFIG:Release>:/GL>"
"$<$<CONFIG:Release>:/Ox>"
"$<$<CONFIG:Release>:/Ob2>"
"$<$<CONFIG:Release>:/Ot>"
Expand Down

0 comments on commit 27df5e5

Please sign in to comment.