Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
The flag '-fPIC' is needed on Unix platforms, for all supported compilers: GNU and Intel
  • Loading branch information
pablo-benito authored Mar 29, 2023
1 parent 0af90e2 commit 555e5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/map/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(WIN32 OR CYGWIN OR MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMAP_DLL_EXPORTS -DCMINPACK_NO_DLL -DNDEBUG -D_WINDOWS -D_USRDLL")
endif()

if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR (${CMAKE_Fortran_COMPILER_ID} MATCHES "^Intel")) AND NOT WIN32)
if (NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()
Expand Down

0 comments on commit 555e5a3

Please sign in to comment.