Skip to content

Commit

Permalink
fPIC have issues with latest Emscripten LLVM backend
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcuvillier committed Jun 7, 2019
1 parent a913e60 commit 41ec23c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions neo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,12 @@ include_directories(${CMAKE_SOURCE_DIR})

add_library(idlib STATIC ${src_idlib})

if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
set_target_properties(idlib PROPERTIES COMPILE_FLAGS "-fPIC")
endif ()
# fPIC have issues with latest Emscripten LLVM backend
if (NOT EMSCRIPTEN)
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
set_target_properties(idlib PROPERTIES COMPILE_FLAGS "-fPIC")
endif ()
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX neo FILES ${src_idlib})

Expand Down

0 comments on commit 41ec23c

Please sign in to comment.