Skip to content

Commit f8c7ead

Browse files
committed
Switched to C++17
1 parent 792c73d commit f8c7ead

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ message(" ASMTK_PRIVATE_CFLAGS_REL=${ASMTK_PRIVATE_CFLAGS_REL}")
165165

166166
if (NOT ASMTK_EMBED)
167167
add_library(asmtk ${ASMTK_TARGET_TYPE} ${ASMTK_SRC})
168-
target_compile_features(asmtk PUBLIC cxx_std_11)
168+
target_compile_features(asmtk PUBLIC cxx_std_17)
169169
target_compile_options(asmtk PUBLIC ${ASMTK_CFLAGS})
170170
target_compile_options(asmtk PRIVATE ${ASMTK_PRIVATE_CFLAGS}
171171
$<$<CONFIG:Debug>:${ASMTK_PRIVATE_CFLAGS_DBG}>
172172
$<$<NOT:$<CONFIG:Debug>>:${ASMTK_PRIVATE_CFLAGS_REL}>)
173173

174174
if(ASMJIT_EXTERNAL)
175175
target_link_libraries(asmtk PUBLIC ${ASMJIT_LIBRARY})
176-
find_path(ASMJIT_INCLUDE_DIR NAMES asmjit/asmjit.h)
176+
find_path(ASMJIT_INCLUDE_DIR NAMES asmjit/core.h)
177177
target_include_directories(asmtk PRIVATE ${ASMJIT_INCLUDE_DIR})
178178
else()
179179
target_link_libraries(asmtk PUBLIC asmjit::asmjit)
@@ -219,7 +219,7 @@ if (NOT ASMTK_EMBED)
219219
foreach(_target ${ASMTK_SAMPLES_SRC})
220220
add_executable(${_target} "${ASMTK_DIR}/test/${_target}.cpp")
221221
target_link_libraries(${_target} asmjit::asmjit asmjit::asmtk)
222-
target_compile_features(${_target} PUBLIC cxx_std_11)
222+
target_compile_features(${_target} PUBLIC cxx_std_17)
223223
set_property(TARGET ${_target} PROPERTY CXX_VISIBILITY_PRESET hidden)
224224
endforeach()
225225
endif()

0 commit comments

Comments
 (0)