Skip to content

Commit

Permalink
Merge pull request #1506 from pablo-benito/fix/CompileWithLinuxIntel
Browse files Browse the repository at this point in the history
Fix compilation issue, using Intel OneAPI on Linux
  • Loading branch information
andrew-platt authored Apr 10, 2023
2 parents a209327 + 555e5a3 commit c6cbb54
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" 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 c6cbb54

Please sign in to comment.