<div dir="ltr">    I puzzled out that I was missing,,,<div><br></div><div><div>--- CMakeLists.txt.last2<span class="" style="white-space:pre">        </span>2014-05-31 13:06:06.000000000 -0400</div><div>+++ CMakeLists.txt<span class="" style="white-space:pre">      </span>2014-05-31 15:52:15.000000000 -0400</div>
<div>@@ -137,6 +137,10 @@</div><div> </div><div> add_custom_target(gen_kmp_i18n DEPENDS kmp_i18n_id.inc kmp_i18n_default.inc omp.h z_Linux_asm.o)</div><div> </div><div>+if(NOT APPLE)</div><div>+  set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports_so.txt")</div>
<div>+endif()</div><div>+</div><div> add_library(iomp5 SHARED ${SOURCES} z_Linux_asm.o)</div><div> add_dependencies(iomp5 gen_kmp_i18n)</div><div> </div></div><div>which now allows libiomp5.so to link properly using the cmake build on x86_64 Fedora 15 against clang-omp. It also builds libiomp5.dylib fine on darwin12.</div>
<div>     IMHO, the attached CMakeLists is a reasonable starting point and we can refactor into separate CMakelist.txt's if necessary. The main omission at the moment is the lack of support for handling exported symbols within cmake. I think we would have to resort to a rather complex set of add_custom_command()'s in order to duplicate the manual generation of exported symbol lists as done in the 'make compiler=clang' build. I can take a look at implementing this if we really need it. Let me know if anyone has trouble with using this as…</div>
<div><br></div><div>% cd openmp/runtime/src</div><div>% mkdir build</div><div>% cd build</div><div>% cmake ..</div><div>% make VERBOSE=1</div><div><br></div><div>on darwin or linux.</div><div>              Jack</div></div>