Skip to content

Commit

Permalink
Merge pull request #1929 from bitshares/jmj_cmake
Browse files Browse the repository at this point in the history
Reset flag after testing compiler
  • Loading branch information
jmjatlanta authored Aug 20, 2019
2 parents 96e3177 + 0f505d4 commit f7f9363
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ macro(FIND_CURL)
endif (NOT WIN32 AND NOT APPLE AND CURL_STATICLIB)
endmacro()

# Save the old value of CMAKE_REQUIRED_FLAGS
set( TEMP_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} )

# Fortify source
if (CMAKE_COMPILER_IS_GNUCXX)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
Expand Down Expand Up @@ -108,6 +111,8 @@ else()
endif()
endif()

set(CMAKE_REQUIRED_FLAGS ${TEMP_REQUIRED_FLAGS} )

# position independent executetable (PIE)
# position independent code (PIC)
add_definitions (-fPIC)
Expand Down

0 comments on commit f7f9363

Please sign in to comment.